Changes

Line 12: Line 12:  
Modbus enables communication among many devices connected to the same network, for example, a system that measures temperature and humidity and communicates the results to a computer. Modbus is often used to connect a supervisory computer with a remote terminal unit (RTU) in supervisory control and data acquisition (SCADA) systems. Many of the data types are named from its use in driving relays: a single-bit physical output is called a coil, and a single-bit physical input is called a discrete input or a contact.
 
Modbus enables communication among many devices connected to the same network, for example, a system that measures temperature and humidity and communicates the results to a computer. Modbus is often used to connect a supervisory computer with a remote terminal unit (RTU) in supervisory control and data acquisition (SCADA) systems. Many of the data types are named from its use in driving relays: a single-bit physical output is called a coil, and a single-bit physical input is called a discrete input or a contact.
   −
This article provides a guide on how to use Modbus TCP to monitor {{{name}}} routers with a PC using a Linux Operating System. However, the same principles apply to RUT230, RUT240 and RUT950, RUT955 routers, but the holding register information will differ. You can find this information in the links below:
+
This article provides a guide on how to use Modbus TCP to monitor {{{name}}} routers with a PC using a Linux Operating System.
   −
*'''[[RUT230 Monitoring via Modbus]]'''
  −
*'''[[RUT240 Monitoring via Modbus]]'''
  −
*'''[[RUT950 Monitoring via Modbus]]'''
  −
*'''[[RUT955 Monitoring via Modbus]]'''
   
==Configuring the router==
 
==Configuring the router==
   Line 39: Line 35:  
Router parameters are held within '''registers'''. Each register contains 2 bytes of information. For simplification the number of registers for storing numerical values is 2, while the number of registers for storing text information is 16. The register addresses and corresponding system values are described in the table below:
 
Router parameters are held within '''registers'''. Each register contains 2 bytes of information. For simplification the number of registers for storing numerical values is 2, while the number of registers for storing text information is 16. The register addresses and corresponding system values are described in the table below:
   −
{{#ifeq:{{{series}}}| RUT9XX|
+
{{Template:Networking_rutos_manual_modbus_modbus_tcp_get_parameters_table
{{Template:Networking_rut955_manual_modbus_modbus_tcp_get_parameters_table}}
+
|mobile = {{{mobile}}}
|
+
|series = {{{series}}}
{{Template:Networking_rut2xx_manual_modbus_modbus_tcp_get_parameters_table}}
+
|name = {{{name}}}
 +
|analog = {{{analog}}}
 +
|gps = {{{gps}}}
 +
|dualsim = {{{dualsim}}}
 
}}
 
}}
 +
 
===Modbus read===
 
===Modbus read===
 
----
 
----
Line 150: Line 150:  
The Modbus daemon also supports the setting of some system parameters. To accomplish this task the '''modbus write''' command is used. System related parameters and how to use them are described below. The register address specifies from which register to start writing the required values. All commands, except “Change APN”, accepts only one input parameter (more on changing APN can be found below).   
 
The Modbus daemon also supports the setting of some system parameters. To accomplish this task the '''modbus write''' command is used. System related parameters and how to use them are described below. The register address specifies from which register to start writing the required values. All commands, except “Change APN”, accepts only one input parameter (more on changing APN can be found below).   
   −
<table class="nd-othertables">
+
{{Template:Networking_rutos_manual_modbus_modbus_tcp_set_parameters_table
    <tr>
+
|wifi = {{{wifi}}}
        <th width="350">value to set</th>
+
|mobile = {{{mobile}}}
      <th width="180">register address</th>
+
|series = {{{series}}}
      <th width="150">register value</th>
+
|name = {{{name}}}
      <th width="466">description</th>
+
|dualsim = {{{dualsim}}}
    </tr>
  −
{{#ifeq:{{{name}}}|RUT955|
  −
    <tr>
  −
      <td>Galvanically isolated open collector output (ON/OFF<span class="asterisk">*</span>)</td>
  −
      <td>201</td>
  −
      <td>1 {{!}} 0</td>
  −
        <td>Changes the state of the open collector (OC) output</td>
  −
    </tr>
  −
    <tr>
  −
      <td> Relay output (ON/OFF<span class="asterisk">*</span>)</td>
  −
      <td>202</td>
  −
      <td>1 {{!}} 0</td>
  −
        <td>Changes the state of the relay output</td>
  −
    </tr>
  −
}}
  −
    <tr>
  −
      <td>Switch WiFi (ON/OFF<span class="asterisk">*</span>)</td>
  −
      <td>203</td>
  −
      <td>1 | 0</td>
  −
        <td>Turns WiFi ON or OFF</td>
  −
    </tr>
  −
    <tr>
  −
      <td>Switch mobile data connection (ON/OFF<span class="asterisk">*</span>)</td>
  −
      <td>204</td>
  −
      <td>1 | 0</td>
  −
        <td>Turns mobile data connection ON or OFF</td>
  −
    </tr>
  −
{{#ifeq:{{{series}}}| RUT9XX|
  −
    <tr>
  −
      <td>Switch SIM card</td>
  −
      <td>205</td>
  −
      <td>1 {{!}} 2 {{!}} 0</td>
  −
        <td>Changes the active SIM card slot
  −
            <ul>
  −
                <li>1 - switch to SIM1</li>
  −
                <li>2 - switch to SIM2</li>
  −
    <li>0 - switch from the the SIM card opposite of the one currently in use (SIM1 → SIM2 or SIM2 → SIM1</li>
  −
            </ul>
  −
</td>
  −
    </tr>
  −
}}
  −
    <tr>
  −
    <td>Reboot</td>
  −
        <td>206</td>
  −
        <td>1</td>
  −
        <td>Reboots the router</td>
  −
    </tr>
  −
    <tr>
  −
    <td>Change APN</td>
  −
        <td>207</td>
  −
        <td>APN code</td>
  −
        <td>Changes APN. <br> The number of input registers may vary depending on the length of the APN, but the very first byte of the set APN command denotes the number of the SIM card for which to set the APN. This byte should be set to:
  −
            <ul>
  −
                <li>1 - to set APN for SIM1</li>
  −
{{#ifeq:{{{series}}}| RUT9XX|
  −
                <li>2 - to set APN for SIM2</li>
   
}}
 
}}
    </ul>
  −
        </td>
  −
    </tr>
  −
    <tr>
  −
      <td> Switch PIN 4 state </td>
  −
      <td>325</td>
  −
      <td>1{{!}}0</td>
  −
      <td>Toggles PIN 4 ON or OFF, when output is selected</td>
  −
  </tr>
  −
</table>
  −
      
As you can see most of the values are '''0''' and '''1''', 0 meaning OFF and 1 meaning ON. For example, if you want to turn '''WiFi OFF''', this command should be used:
 
As you can see most of the values are '''0''' and '''1''', 0 meaning OFF and 1 meaning ON. For example, if you want to turn '''WiFi OFF''', this command should be used:
Line 258: Line 191:  
**http://www.unit-conversion.info/
 
**http://www.unit-conversion.info/
 
**http://www.binaryhexconverter.com/
 
**http://www.binaryhexconverter.com/
 +
[[Category:{{{name}}} Configuration Examples]]
Anonymous user

Navigation menu