Control of a device connected via MODBUS TCP/IP using an SMS command - RUT956

Hi!
Please help, as I am out of ideas.
I have a RUT956 to which a device is connected via Modbus TCP/IP.
I want to configure the RUT in such a way that upon receiving an SMS with a specific content, it will send a specific value to a given Modbus register on this device via the Modbus TCP/IP protocol.
Device IP: 192.168.2.20
Port: 502
Modbus ID: 5
Modbus register: 40428
Value: 100
Modbus function: 6

Please help me with how to implement this. Thank you.

Hello,

Unfortunately, we don’t have an SMS utility for managing Modbus. However, in Services → Mobile Utilities → SMS Utilities, you can try creating a new rule and select “Execute custom script” as the action. This will allow you to create a custom script, specifying the actions the router should perform.

For script examples, please refer to our wiki page here: https://wiki.teltonika-networks.com/view/User_Scripts_examples.

Best regards,

how to install modpoll (mbpoll) via CLI? unfortunately during installation it gives me an error. Also during installation python3 gives me an error - out of memory, even though the router has a lot of memory.
does modbus_client have a “write” or “send_request” method? from what I found it only has tcp.test, serial.test and request_status

Hello,

Unfortunately, it is not possible to install modpoll directly via CLI on our devices.

Regarding the python3 package, you can check the available storage space by running the command: df -h

Additionally, I recommend reviewing the Modbus TCP Client API documentation, which can be found here: https://developers.teltonika-networks.com/reference/rutx50/7.10.1/v1.2/modbus#modbus-tcp-client

Best regards,

Hi, did you solve your problem? Did you have a sample script for this?

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