Thank you for the feedback.
2. It is possible to enable/disable mobile data connection using the router's WebUI. To enable/disable mobile data connection, access the router's WebUI and navigate to Network - > Interfaces and toggle the "Off/On" button of the mobile interface (MOB1S1A1) to turn "Off" and "On" the mobile data connection as shown in the screenshot below. Please ensure that you click "Save & Apply" to apply the changes.
Further details on how to disable mobile data connection could be found by using the link below:
It is important to note that, when mobile data connection has been disabled, the router's SMS Utilities will remain operational hence it will still be possible to use SMS Utilities to perform certain actions on the router. Kindly follow the link below for further details on SMS Utilities:
3. To view the mobile data connection status using the CLI, you could use the command "gsmctl -j". For further details on "gsmctl" commands, kindly refer to the link below:
To enable /disable mobile data connection, you could use the following Modbus commands on CLI, however you need to ensure that you have set your RUT240 device as both a Modbus TCP Master and Modbus TCP Slave. The command to be executed on the Modbus TCP Master's CLI (RUT240 router) in order to enable/disable mobile data connectivity using :
# modbus_tcp_test IP PORT TIMEOUT SLAVE_ID FUNCTION REG_ADDRESS REG_COUNT/VALUE(S) DATA_TYPE NO_BRACKETS
Where IP - Modbus TCP Slave IP address, PORT - Modbus TCP Slave Port, TIMEOUT - Maximum response wait time, SLAVE_ID - Modbus Slave ID, FUNCTION - Modbus function used for the request, REG_ADDRESS - Modbus Slave's register address, REG_COUNT/VALUE - Number of registers to be read from/ the value of to written into the register, DATA_TYPE - Defines how data will be stored and NO_BRACKETS - Removes the starting and ending brackets from the request (only for read requests).
If your device is connected to Teltonika RMS platform, you could utilize the "Execute command for a device" to execute the above commands to enable/disable mobile data connection using Modbus and "Get all devices" to get the mobile data connection status by making use of Teltonika RMS API. For more details on Teltonika RMS API examples and documentation, kindly refer to the links provided below:
It is also possible to use MQTT to enable/disable mobile data connection using ModBus TCP and the following link provides a configuration example for reference purposes: