FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
347 views 2 comments
by anonymous
To send modbus register value to Azure IoT was easy, great documentation! But how do we write new parameter values to a modbus register from Azure? Would it be through the MQTT on the RUT955?

Any other page than this that describes this? https://wiki.teltonika-networks.com/view/RUT955_Modbus#MQTT_Gateway

1 Answer

0 votes
by anonymous
Hello,

You have answered your question by yourself. You will need to configure the MQTT gateway to write a new value to Modbus register from Azure.

Regards.
by anonymous

Well yes that is what I understand as well, but the only documentation I have is an example with som definitions:

0 <COOKIE> <IP_TYPE> <IP> <PORT> <TIMEOUT> <SLAVE_ID> <MODBUS_FUNCTION> <REGISTER_NUMBER> <REGISTER_COUNT/VALUE>

I'm missing the prespective from the Azure IoT Hub perspective. 

E.g.

* <cookie> is that mandatory, and is that defined, other than "a 64-bit unsigned integer in range [0..264]). A cookie is ...". Can Azure application use any cookie value?

* <ip>, in the example, 192.168.1.1 is used. Not really useful for the Azure application right?

So my follow up question is How to configure the MQTT gateway (I assume you mean the RUT955 MQTT GW) to write a new value to modbus register from Azure?

Best regards

 

by anonymous

How to configure the MQTT gateway using Azure Hub to write ModBus data?? Do we have a solution or direction for this???