I need to connect to node-red with my teltonika trb141 via MQTT.
I have tried a lot of things, but nothing seems to work. Am I making it harder than it is?
All I need is to show the value of the analog current loop(7) in node-red.
Can anyone explain like I am 5 years old how to do it?
Hello again,
I have tried to follow the guide (Using Teltonika device as an MQTT broker), but can not make it work. I belive there is a problem with the text i am injecting in node-red. Is there a better explanation to this table? I need to know something more specific for the TRB141?
Could you specify which aspects of the table you find unclear? You can check this forum post here, maybe it will help.
For troubleshooting, I would recommend using MQTT explorer. Specifically, connect to TRB via MQTT explorer and check if you can get data from it. This way, you will be able to see if the issue is related to your TRB or Node-RED configurations.
To understand the returned values, you need to convert the results. You can find information on how to convert different types of data returned via Modbus on our wiki here.
I have looked at the link that you gave me. It is the same problem I have. The value i get when reading the Analog input value is wrong. Atleast not the same as the value i send in the TRB141.
Could you please clarify what do you mean by ‘Node-red with the 4G antenna’ ? Are you looking to reach your TRB over the internet (over mobile network)? If so, you should be able to do so. For TRB to be accessible over a public internet, you will need a public IP address or alternatively, use VPNs.
When I read the 347 register I also get numbers that doesn’t makes sense acording to the mA signal sent in the TRB141.
You sent an anwser to this ealier. But I cant find a solution to the problem. No conversion makes sense and I cant find anything on the internet.
What is the difference between these to and how do I read the value i am reading from them? TRB141 Modbus Registers