RUT955 Modbus: Difference between revisions
No edit summary |
No edit summary |
||
Line 108: | Line 108: | ||
! style="width: 180px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | REGISTER NUMBER | ! style="width: 180px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | REGISTER NUMBER | ||
! style="width: 150px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | REGISTER VALUE | ! style="width: 150px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | REGISTER VALUE | ||
! style="width: | ! style="width: 270px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | DESCRIPTION | ||
|- | |- | ||
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Digital output 1 (ON/OFF) | ! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Digital output 1 (ON/OFF) |
Revision as of 11:01, 5 November 2018
Main Page > EOL Products > RUT955 > RUT955 Manual > RUT955 WebUI > RUT955 Services section > RUT955 ModbusSummary
Template:Webui services modbus summary
Modbus TCP
Template:Webui services modbus modbus tcp
Template:Webui services modbus modbus table
Get Parameters
To obtain parameters from the system, the read holding registers command is used. Router parameters are held within registers. Each register contains 2 bytes of information. For simplification the number of registers for storing numbers is 2, while the number of registers for storing text information is 16. The register numbers and corresponding system values are described below:
REQUIRED VALUE | REGISTER NUMBER | NUMBER OF REGISTERS | REPRESENTATION |
---|---|---|---|
System uptime | 1 | 2 | 32 bit unsigned integer |
GSM signal strength (dBm) | 3 | 2 | 32 bit integer |
System temperature in 0.1 degrees Celcius | 5 | 2 | 32 bit integer |
System hostname | 7 | 16 | Text |
GSM operator name | 23 | 16 | Text |
Router serial number | 39 | 16 | Text |
Router MAC address | 55 | 16 | Text |
Router name | 71 | 16 | Text |
Current SIM card | 87 | 16 | Text |
Network registration | 103 | 16 | Text |
Network type | 119 | 16 | Text |
Digital input 1 | 135 | 2 | 32 bit integer |
Digital input | 137 | 2 | 32 bit integer |
Current WAN IP address | 139 | 2 | 32 bit unsigned integer |
Analog input | 141 | 2 | 32 bit integer |
Set Parameters
The Modbus daemon also supports setting of some system parameters. For this task the Write holding register command is used. System related parameters and how to use them are described below. The register number specifies where to start writing the required values. All commands, except “Change APN”, accepts only one input parameter. For the APN the number of input registers may vary. The very first byte of APN command denotes a number of SIM card for which set the APN. This byte should be set to 1 (in order to change APN for SIM card number 1) or to 2 (in order to change APN for SIM card number 2).
VALUE TO SET | REGISTER NUMBER | REGISTER VALUE | DESCRIPTION |
---|---|---|---|
Digital output 1 (ON/OFF) | 201 | 1/0 | Changes the state of the Open collector (OC) output (1 -ON; 0 - OFF) |
Digital output 2 (ON/OFF) | 202 | 1/0 | Changes the state of the Relay output (1 - ON; 0 - OFF) |
Switch WiFi (ON/OFF) | 210 | 1/0 | Switches WiFi ON or OFF (1 - ON; 0 - OFF) |
Switch mobile data connection (on/off) | 211 | 1/0 | Switches mobile data connection ON or OFF (1 - ON; 0 - OFF) |
Switch SIM card (SIM1, SIM2, SIM1->SIM2 and SIM2->SIM1) | 212 | 0/1/2 | Switches SIM card in use |
Change APN | 213 | APN code | Changes APN |
Reboot | 220 | 1 | Reboots the router |
See also
You can find more information on how to use Modbus with RUT routers here: Monitoring via Modbus