Changes

no edit summary
Line 165: Line 165:  
==Setting router values==
 
==Setting router values==
   −
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 {{#ifeq:{{{mobile}}}|1|(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 {{#ifeq:{{{mobile}}}|1|(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>
  −
    </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>
  −
}}
  −
{{#switch:{{{series}}}
  −
|RUTX= {{#ifeq:{{{name}}}| RUTXR1||
  −
    <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>
  −
}}
  −
|
  −
    <tr>
  −
      <td> Switch PIN 3 state </td>
  −
      <td>324</td>
  −
      <td>1{{!}}0</td>
  −
      <td>Toggles PIN 3 ON or OFF, when output is selected</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>
  −
}}
  −
{{#ifeq:{{{series}}}|TRB2XX|
  −
    <tr>
  −
      <td> Switch PIN2 state </td>
  −
      <td>336</td>
  −
      <td>1{{!}}0</td>
  −
      <td>Toggles PIN 2 ON or OFF, when output is selected</td>
  −
  </tr>
  −
}}
  −
  −
{{#ifeq:{{{name}}}|TRB141|
  −
    <tr>
  −
      <td> Switch relay state </td>
  −
      <td>337</td>
  −
      <td>1{{!}}0</td>
  −
      <td>Turns Relay ON or OFF</td>
  −
  </tr>
  −
    <tr>
  −
      <td> Switch latching relay state </td>
  −
      <td>338</td>
  −
      <td>1{{!}}0</td>
  −
      <td>Turns latching relay ON or OFF</td>
  −
  </tr>
  −
    <tr>
  −
      <td>Switch PIN 1 (Dry/Wet) state</td>
  −
      <td>343</td>
  −
      <td>1{{!}}0</td>
  −
      <td>Switches PIN 1 state to 0 (dry) / 1 (wet)</td>
  −
  </tr>
  −
    <tr>
  −
      <td>Switch PIN 2(Dry/Wet) state</td>
  −
      <td>344</td>
  −
      <td>1{{!}}0</td>
  −
      <td>Switches PIN 2 state to 0 (dry) / 1 (wet)</td>
  −
  </tr>
  −
    <tr>
  −
      <td> Switch ACL ON/OFF </td>
  −
      <td>345</td>
  −
      <td>1{{!}}0</td>
  −
      <td>Turns ACL functionality ON or OFF</td>
  −
  </tr>
  −
}}
  −
</table>
  −
   
{{#ifeq:{{{wifi}}}|1|
 
{{#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:

Navigation menu