Changes

no edit summary
Line 95: Line 95:  
         <td>Text</td>
 
         <td>Text</td>
 
     </tr>
 
     </tr>
 +
{{#switch:{{{name}}}
 +
|TRB141=
 +
|TRB142=
 +
|TRB145=
 +
|
 
     <tr>
 
     <tr>
 
       <td>LAN MAC address</td>
 
       <td>LAN MAC address</td>
Line 102: Line 107:  
         <td>Text</td>
 
         <td>Text</td>
 
     </tr>
 
     </tr>
 +
}}
 
     <tr>
 
     <tr>
 
       <td>Router name</td>
 
       <td>Router name</td>
Line 132: Line 138:  
     </tr>
 
     </tr>
 
}}
 
}}
    <tr>
  −
      <td>Digital input (DIN1) state</td>
  −
      <td>135</td>
  −
        <td>136</td>
  −
      <td>2</td>
  −
        <td>32 bit integer</td>
  −
    </tr>
  −
    <tr>
  −
      <td>Digital galvanically isolated input (DIN2) state</td>
  −
      <td>137</td>
  −
        <td>138</td>
  −
      <td>2</td>
  −
        <td>32 bit integer</td>
  −
    </tr>
   
     <tr>
 
     <tr>
 
       <td>Current WAN IP address</td>
 
       <td>Current WAN IP address</td>
Line 153: Line 145:  
         <td>32 bit unsigned integer</td>
 
         <td>32 bit unsigned integer</td>
 
     </tr>
 
     </tr>
 +
{{#ifeq:{{{analog}}}| 1|
 
     <tr>
 
     <tr>
 
       <td>Analog input value</td>
 
       <td>Analog input value</td>
Line 160: Line 153:  
         <td>32 bit integer</td>
 
         <td>32 bit integer</td>
 
     </tr>
 
     </tr>
 +
}}
 
{{#ifeq:{{{gps}}}| 1|
 
{{#ifeq:{{{gps}}}| 1|
 
     <tr>
 
     <tr>
Line 269: Line 263:  
     </tr>
 
     </tr>
 
}}
 
}}
    <tr>
  −
        <td>Galvanically isolated open collector output status</td>
  −
        <td>201</td>
  −
        <td>202</td>
  −
        <td>1</td>
  −
        <td>32 bit unsigned integer</td>
  −
      </tr>
  −
      <tr>
  −
        <td>Relay output status</td>
  −
        <td>202</td>
  −
        <td>203</td>
  −
        <td>1</td>
  −
        <td>32 bit unsigned integer</td>
  −
      </tr>
   
{{#ifeq:{{{mobile}}}| 1|
 
{{#ifeq:{{{mobile}}}| 1|
 
       <tr>
 
       <tr>
Line 534: Line 514:     
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">
 +
    <tr>
 +
        <th width="350">value to set</th>
 +
      <th width="180">register address</th>
 +
      <th width="150">register value</th>
 +
      <th width="466">description</th>
 +
    </tr>
 +
{{#ifeq:{{{wifi}}}|1|
 +
    <tr>
 +
      <td>Switch WiFi ON/OFF</td>
 +
      <td>203</td>
 +
      <td>1 {{!}} 0</td>
 +
        <td>Turns WiFi ON or OFF</td>
 +
    </tr>
 +
}}
 +
{{#ifeq:{{{mobile}}}|1|
 +
    <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>
 +
    <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>
 +
{{#ifeq:{{{mobile}}}|1|
 +
    <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>
 +
                <li>2 - to set APN for SIM2</li>
 +
    </ul>
 +
        </td>
 +
    </tr>
 +
}}
 +
</table>
   −
{{Template: Networking_rut955_manual_modbus_modbus_tcp_set_parameters_table}}
+
{{#ifeq:{{{wifi}}}|1|
 
   
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 544: Line 578:     
  $ modbus write -w -p 12345 192.168.1.1 %MW203 1
 
  $ modbus write -w -p 12345 192.168.1.1 %MW203 1
 
+
}}
 +
{{#ifeq:{{{mobile}}}|1|
 
As you can see, the only difference is the digit at the end - '''0 for OFF''', '''1 for ON'''. The same is true for all other parameters that accept only two input values.
 
As you can see, the only difference is the digit at the end - '''0 for OFF''', '''1 for ON'''. The same is true for all other parameters that accept only two input values.
   Line 564: Line 599:     
The value of the first byte is highlighted in <span style="color:blue">'''blue'''</span> and, in this case, it denotes that the APN value should be changed for the first SIM card. The value of the APN string itself is highlighted in <span style="color:green">'''green'''</span>. Use an ASCII to Decimal online converter to convert individual letters to Decimal code.
 
The value of the first byte is highlighted in <span style="color:blue">'''blue'''</span> and, in this case, it denotes that the APN value should be changed for the first SIM card. The value of the APN string itself is highlighted in <span style="color:green">'''green'''</span>. Use an ASCII to Decimal online converter to convert individual letters to Decimal code.
 
+
}}
 
==External links==
 
==External links==
  
Anonymous user

Navigation menu