解决方案构想 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
下载此体系结构的SVG 。
Download an SVG of this architecture.
数据流Data Flow
- 客户端向设施管理 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.
- 客户端的 web 服务对自身进行身份验证,以便 Azure Active Directory。The client's web service authenticates itself to Azure Active Directory.
- 然后,将 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.
- 应用服务检索有关客户端指定的区域中存在的 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.
- 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.
- 客户端应用程序完成环境的可视扫描,并检索其在区域中的位置。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.
- 客户端应用程序请求将 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.
- 更新 IoT 传感器数据时,Azure 数字孪生会将其推送到事件中心。When IoT sensor data is updated, Azure Digital Twins pushes it to Event Hubs.
- 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
- 空间锚:创建多用户、空间丰富的混合现实体验Spatial Anchors: Create multi-user, spatially aware mixed reality experiences
- Azure Active Directory:同步本地目录并启用单一登录Azure Active Directory: Synchronize on-premises directories and enable single sign-on
- Azure Cosmos DB:全球分布式多模型数据库,适用于任何规模Azure Cosmos DB: Globally distributed, multi-model database for any scale
- 应用服务:快速创建适用于 web 和移动的强大云应用App Service: Quickly create powerful cloud apps for web and mobile
- 事件中心:从数百万台设备接收遥测数据Event Hubs: Receive telemetry from millions of devices
- Azure 数字孪生:构建下一代 IoT 空间智能解决方案Azure Digital Twins: Build next-generation IoT spatial intelligence solutions
后续步骤Next steps
- 跨设备共享空间锚Share Spatial Anchors across devices
- 在 Azure Active Directory 中创建一个新租户Create a new tenant in Azure Active Directory
- 使用 SQL API 和 Azure 门户 Azure Cosmos DB 生成 .NET web 应用Build a .NET web app with Azure Cosmos DB using the SQL API and the Azure portal
- 在 Azure 应用服务中对用户进行端到端身份验证和授权Authenticate and authorize users end-to-end in Azure App Service
- Azure 事件中心-大数据流式处理平台和事件引入服务Azure Event Hubs - A big data streaming platform and event ingestion service
- 部署 Azure 数字孪生并配置空间图Deploy Azure Digital Twins and configure a spatial graph