Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Act for other devices on Azure IoT Hub

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.

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.

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.

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?

like image 984
Thomas F. Avatar asked Jan 23 '19 13:01

Thomas F.


People also ask

How many devices can be connected to Azure IoT hub?

The total number of devices plus modules that can be registered to a single IoT hub is capped at 1,000,000.

How an IoT device is connected to other devices?

In most cases, IoT devices connect to a Dynamic Host Configuration Protocol server and acquire an IP address that the device can use to function on the network. Some IoT devices are directly accessible over the public internet, but most are designed to operate exclusively on private networks.

How does Azure IoT hub control a device?

IoT Hub supports multiple messaging patterns such as device-to-cloud telemetry, file upload from devices, and request-reply methods to control your devices from the cloud. IoT Hub monitors and tracks events such as device creation, device failures, and device connections.

Can IoT devices communicate with each other?

IoT devices use embedded sensors to collect, exchange, and share data with other devices, applications, and systems, in real-time. Internet of Things is a collaboration of custom-designed technologies to interconnect internet-enabled physical devices and enable communication with each other through a wireless network.


1 Answers

Your scenario is a perfect fit for Azure IoT Edge:

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

"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."

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

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

"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. "

like image 83
asergaz Avatar answered Sep 24 '22 00:09

asergaz