Setting up a RTR500BM Data Logger with Azure IoT Hub

Laura Martin 0 Reputation points
2024-07-02T15:52:30.5133333+00:00

For reference, here's the product I am talking about!
https://tandd.com/product/rtr500bm/

Hi all,

I am looking to set up an Azure-based solution to logging a voltage captured by the above device.

I have successfully got it to connect to the company's own cloud, which I assume is done by HTTP(S) protocol under the hood, so there aren't connection issues. However, I am an IoT newbie and need advice on how to set things up in Azure IoT.

I have:

  • my own Azure account and sub where I have full admin rights
  • IoT Hub resource
  • Set up my RTR500BM device + have the keys and such

In the device itself, the HTTP(S) settings are as follows. Previously this was set to be the company's own cloud:

RTRconnectiondetailshttps

I don't seem to be able to establish a connection to the IopT Hub. I assume this is because I haven't been able to provide the key to authenticate the device. I am reasonably sure my host/server name and destination path is correct but confirmation would be appreciated. Any thoughts?

Cheers!

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
400 questions
Azure IoT Central
Azure IoT Central
An Azure hosted internet of things (IoT) application platform.
364 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,198 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 32,811 Reputation points MVP
    2024-07-02T22:03:13.3666667+00:00

    Hello @Laura Martin,

    welcome to this moderated Azure community forum.

    The short answer is to skip the IoT Hub as cloud gateway for this device and go for an HTTP triggered Azure function.

    Make sure you enable HTTPS for increased security.

    The long answer is that there are several reasons why the IoT hub is not the first choice for this specific device.

    First, I checked the specs and this device is limited in the protocols compared what an IoT Hub offers:

    User's image

    The Azure IoT Hub is optimized for two-way communication using protocols like MQTT and AMQP. This can even be routed over websockets so only port 443 is needed.

    Yes, it also support HTTPS but this is done in a very specific way. See this old blog post for details.

    The IoT Hub offers a great way to connect devices, each with their own identity and extra features like the device twin and internal routing.

    The device you propose just sends files over the 4G/LTE network. Why should you make it more complicated?

    You mention Azure IoT Central. This is a great SaaS solution with basic dashboarding and alerting.

    If this is your way to visualize the IoT data, take a look at this bridge. It show how an Azure Function can forward data to an Azure IoT Central app solution. You need to transform your incoming data as seen in the example but technically it's doable.

    Personally, I would go for the combination of an Azure Function and forward all messages to an Eventhub so you can ingest the data with a free Azure Data Explorer so you learn about your requirements.

    I hope this gives you a starting point to add value and insights based on the real-time data.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.