代理Azure IoT中心上的其他设备 [英] Act for other devices on Azure IoT Hub

查看:90
本文介绍了代理Azure IoT中心上的其他设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的方案中,我们有一堆与网关本地通信的设备.网关负责汇总来自设备的事件并将其发送到云.它还应从云中接收设备配置更改并将其传输到特定设备.

In our scenario, we have a bunch of devices that communicate locally with a gateway. The gateway is responsible to aggregate events from the devices and send it to the cloud. It should also receive device configuration changes from the the cloud and transport it to the specific device.

根据我的阅读,我认为这实际上是典型的IoT中心场景.而且我们非常想使用IoT中心提供的设备管理,消息传递甚至双胞胎服务.

Based on my reading I would think that this is actually a typical IoT Hub scenario. And we would very much like to use the device management, messaging and maybe even twins that IoT Hub provides.

但是,设备的通信方式已经实现,并且不得更改.这意味着设备本身无法创建连接并无法提供IoT中心凭据.这可以使用 azure-iot-protocol-gateway 或类似方法排除.

However, the way the devices communicate is already implemented and shall not be changed. That means the devices themselves cannot create connections and provide IoT Hub credentials. This rules out using the azure-iot-protocol-gateway or similar.

我们宁愿需要网关充当可以代表其他设备的设备.网关将检测到其局域网中有哪些设备,并通过MQTT或AMQP订阅它们的主题.

We would rather need the gateway to act as a device that can act on behalf of other devices. The gateway would detect which devices are in his local network and subscribe to their topics (via MQTT or AMQP).

这甚至有可能吗?设备可以代替其他设备发送事件或收听云到设备"消息吗?

Is this even possible? Can devices send events or listen to Cloud-To-Device messages in place of other devices?

推荐答案

您的方案非常适合Azure IoT Edge:

Your scenario is a perfect fit for Azure IoT Edge:

https://docs.microsoft.com/en-us/azure/iot-edge/

"Azure IoT Edge是基于IoT中心构建的物联网(IoT)服务.此服务适用于希望在设备上(即边缘")而不是在云中分析数据的客户通过将部分工作负载移到边缘,您的设备可以花费更少的时间将消息发送到云中,并对状态变化做出更快的反应."

"Azure IoT Edge is an Internet of Things (IoT) service that builds on top of IoT Hub. This service is meant for customers who want to analyze data on devices, a.k.a. "at the edge", instead of in the cloud. By moving parts of your workload to the edge, your devices can spend less time sending messages to the cloud and react more quickly to changes in status."

我建议您将IoT Edge用作身份或协议转换网关:

And I would suggest that you use IoT Edge as an identity or protocol translation Gateway:

https://docs.microsoft. com/zh-CN/azure/iot-edge/iot-edge-as-gateway

"物联网解决方案中的网关为不具备这些功能的物联网设备提供设备连接和边缘分析.AzureIoT Edge可用于满足物联网网关的所有需求,无论它们是否与连接性,身份相关或边缘分析."

"Gateways in IoT solutions provide device connectivity and edge analytics to IoT devices that otherwise wouldn't have those capabilities. Azure IoT Edge can be used to satisfy all needs for an IoT gateway regardless of whether they are related to connectivity, identity, or edge analytics. "

这篇关于代理Azure IoT中心上的其他设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆