Rut955 GPS Modbus

Hello
I have a rut955, with the firmware RUT9_R_00.07.06.16
I would like to have Modbus register no. Read out 182 satellite numbers. 0 is always displayed, even though the GPS map says 6 or 9.
I set the data point to 32 bit unsigned integer
Greetings Arno

Hello,

Thank you for your request.

I have tested the scenario you described on a RUT955 with the same firmware version and was able to reproduce the issue. It appears that the Modbus client is not reading the GPS satellite count value correctly. Our R&D team is already aware of this persisting issue. However, since the RUT955 is an End-of-Life (EOL) device, we cannot guarantee that any further actions or updates will be made to address this problem.

Additionally, could you please try running the following command in the router’s CLI:
gpsctl -xiep
This command should display detailed GPS information, including the satellite count, which should appear on the last line of the output. Kindly check if the correct number of satellites is displayed.

Please let us know if you have any additional questions or require further assistance.

Best Regards,

Hello
Thanks for the quick reply.
I entered the command. that is the result
root@Teltonika-RUT955:~# gpsctl -xiep
3.805493
51.735843
2024-09-17 21:25:17
8
root@Teltonika-RUT955:~#

The 8 at the end is certainly the number of satellites.
Is there a way to get this value differently???
According to MQTT, or Modbus???
Greetings Arno

Hello,

Thank you for your reply.

Unfortunately, there isn’t a method to obtain GPS data via MQTT directly. However, an alternative way to monitor GPS data is by using Modbus custom registers. You can find more useful information and a configuration example in this wiki article.

I’ve also written a quick script to save the gpsctl -xiep output to /tmp/regfile.
The script is attached below.
gps_data.zip (410 Bytes)
When configuring the Modbus client, select the data type as HEX, and set the register count/values to 21. This will provide the GPS data in HEX format, which you can then decode into text using an online converter like this one.

Feel free to reach out if you have any further questions or need assistance.

Best regards,

Hello
Unfortunately Linux is not my world
I used Putty as shown in the wiki
enter vi bin/sh/gps_data,
inserted the text from the zip file.
to save “esc” “:w bin/sh/gps_data
entered.
or ZZ or :wq”
but the message always comes
“no such file or directory”
I need instructions for stupid people
Greetings Arno

Hello,

It seems you’re using the wrong directory when creating the script. You should use:

vi /bin/gps_data

Then press I to insert the text, paste it, and use ESC → :wq to save it. After that, run:

hmod +x /bin/gps_data

To execute the script in the background, use:

gps_data &

All the output should be saved to /tmp/regfile. From there, you can proceed with reading the data using the Modbus TCP client’s request.

Hope this helps! If you need further assistance, feel free to ask.

Best Regards,

Hello
sorry that the answer took a little longer.
First of all, thank you for the great support.
According to your description, I managed to display the number of satellites.
Now all that’s missing is the integration into Node-Red.
Thank you.
Best regards
Arno

Hello Arno,

I’m glad to hear that you were able to display the number of satellites using Modbus custom registers successfully!

Please let us know if you need any specific guidance or assistance with Teltonika Networks products in the future.

Best regards,

This topic was automatically closed after 15 days. New replies are no longer allowed.