您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

设备管理由混合现实和 IoT 提供支持

Cosmos DB
数字孪生
事件中心
函数
空间定位点

解决方案构想 Solution Idea

若要查看有关详细信息、实现细节、定价指南或代码示例的信息,请向我们提供 GitHub 反馈If you'd like to see us expand this article with more information, implementation details, pricing guidance, or code examples, let us know with GitHub Feedback!

通过混合现实和 IoT 改善宾馆、制造、零售等的运行时间和操作。Improve uptime and operations in hospitality, manufacturing, retail, and more with mixed reality and IoT. 此方案展示了如何使用环境环境中的实时数据可视化物理空间的虚拟副本。This scenario shows how you can visualize a virtual replica of your physical space with real-time data in the context of your environment. 它构建于 Azure 空间锚azure 数字孪生上。It is built on Azure Spatial Anchors and Azure Digital Twins.

体系结构Architecture

体系结构关系图 下载此体系结构的SVGArchitecture diagram Download an SVG of this architecture.

数据流Data Flow

  1. 客户端向设施管理 web 服务进行身份验证,并指定其位于 Azure 数字孪生对象模型中的空间的名称。The client authenticates to the facilities management web service and specifies the name of the space where it's located in the Azure Digital Twins object model.
  2. 客户端的 web 服务对自身进行身份验证,以便 Azure Active Directory。The client's web service authenticates itself to Azure Active Directory.
  3. 然后,将 Azure AD 令牌发送到 Azure 空间锚定服务,以检索供客户端以后使用的访问令牌。The Azure AD token is then sent to the Azure Spatial Anchors service to retrieve an access token for the client to later use.
  4. 应用服务检索有关客户端指定的区域中存在的 IoT 传感器的信息,并返回 IoT 传感器 Id 以及它们在 Azure 空间锚中对应的定位点 Id。Your app service retrieves information about the IoT sensors present in the area specified by the client and returns IoT sensor IDs, as well as the anchor IDs they correspond to in Azure Spatial Anchors.
  5. Azure 空间锚点授权令牌与 IoT 传感器的定位 Id 和客户端应用程序所需的其他元数据一起返回到客户端。The Azure Spatial Anchors authorization token is returned to the client alongside the anchor IDs of the IoT sensors and additional metadata required by the client application.
  6. 客户端应用程序完成环境的可视扫描,并检索其在区域中的位置。The client application completes a visual scan of the environment and retrieves its position in the area. 使用 Azure 空间锚点附近的 API,它检索所有附近锚的位置。Using the nearby API of Azure Spatial Anchors, it retrieves the position of all nearby anchors.
  7. 客户端应用程序请求将 IoT 传感器数据和控件显示为空间中的全息影像,其中传感器位于其中,使操作员能够轻松地检测并修复任何问题。The client application requests IoT sensor data and controls to be displayed as holograms in the space, where the sensors are located, making it easy for the operator to detect and fix any issues. 数据由应用程序的 web 服务从 Azure Cosmos DB 获取,该服务存储此数据。The data is fetched by the app's web service from Azure Cosmos DB, the service storing this data.
  8. 更新 IoT 传感器数据时,Azure 数字孪生会将其推送到事件中心。When IoT sensor data is updated, Azure Digital Twins pushes it to Event Hubs.
  9. Azure Functions 使用事件中心触发器根据需要处理 Azure Cosmos DB 中的更改和更新数据。Azure Functions uses an Event Hubs trigger to process the change and update data in Azure Cosmos DB as needed.

组件Components

后续步骤Next steps