Difference between revisions of "Template:Networking rutos manual modbus modbus tcp set parameters table"

From Teltonika Networks Wiki
(17 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
<table class="nd-othertables">
 
<table class="nd-othertables">
 
     <tr>
 
     <tr>
         <th width="350">value to set</th>
+
         <th width="300">value to set</th>
       <th width="180">register address</th>
+
       <th width="140">register address</th>
 +
      <th width="140">register number</th>
 
       <th width="150">register value</th>
 
       <th width="150">register value</th>
 
       <th width="466">description</th>
 
       <th width="466">description</th>
 
     </tr>
 
     </tr>
 +
        <tr>
 +
      <td>Hostname</td>
 +
      <td>7</td>
 +
      <td>8</td>
 +
      <td>Hostname (in decimal form)</td>
 +
        <td>Changes hostname</td>
 +
    </tr>
 +
    <tr>
 +
      <td>Device name</td>
 +
      <td>71</td>
 +
      <td>72</td>
 +
      <td>Device name (in decimal form)</td>
 +
        <td>Changes device name</td>
 +
    </tr>
 +
{{#switch:{{{name}}}
 +
| RUT955|RUT956=<tr>
 +
        <td>Galvanically isolated open collector output status</td>
 +
        <td>201</td>
 +
      <td>202</td>
 +
        <td>1 {{!}} 0</td>
 +
        <td>Toggles DOUT1 ON or OFF</td>
 +
      </tr>
 +
      <tr>
 +
        <td>Relay output status</td>
 +
        <td>202</td>
 +
      <td>203</td>
 +
        <td>1 {{!}} 0</td>
 +
        <td>Toggles DOUT2 ON or OFF</td>
 +
      </tr>
 +
}}
 
{{#ifeq:{{{wifi}}}|1|
 
{{#ifeq:{{{wifi}}}|1|
 
     <tr>
 
     <tr>
 
       <td>Switch WiFi ON/OFF</td>
 
       <td>Switch WiFi ON/OFF</td>
 
       <td>203</td>
 
       <td>203</td>
 +
      <td>204</td>
 
       <td>1 {{!}} 0</td>
 
       <td>1 {{!}} 0</td>
 
         <td>Turns WiFi ON or OFF</td>
 
         <td>Turns WiFi ON or OFF</td>
 
     </tr>
 
     </tr>
}}
+
|}}
 
{{#ifeq:{{{mobile}}}|1|
 
{{#ifeq:{{{mobile}}}|1|
 
     <tr>
 
     <tr>
 
       <td>Switch mobile data connection (ON/OFF<span class="asterisk">*</span>)</td>
 
       <td>Switch mobile data connection (ON/OFF<span class="asterisk">*</span>)</td>
 
       <td>204</td>
 
       <td>204</td>
 +
      <td>205</td>
 
       <td>1 {{!}} 0</td>
 
       <td>1 {{!}} 0</td>
 
         <td>Turns mobile data connection ON or OFF</td>
 
         <td>Turns mobile data connection ON or OFF</td>
 
     </tr>
 
     </tr>
{{#ifeq:{{{dualsim}}}|1|
+
  {{#ifeq:{{{dualsim}}}|1|
 
     <tr>
 
     <tr>
 
       <td>Switch SIM card</td>
 
       <td>Switch SIM card</td>
 
       <td>205</td>
 
       <td>205</td>
 +
      <td>206</td>
 
       <td>1 {{!}} 2 {{!}} 0</td>
 
       <td>1 {{!}} 2 {{!}} 0</td>
 
         <td>Changes the active SIM card slot
 
         <td>Changes the active SIM card slot
Line 34: Line 68:
 
                 <li>1 - switch to SIM1</li>
 
                 <li>1 - switch to SIM1</li>
 
                 <li>2 - switch to SIM2</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>
+
    <li>0 - switch from the the SIM card opposite of the one currently in use (SIM1 → SIM2 or SIM2 → SIM1)</li>
 
             </ul>
 
             </ul>
 
    </td>
 
    </td>
 
     </tr>
 
     </tr>
 +
  |}}
 
|}}
 
|}}
}}
 
 
     <tr>
 
     <tr>
 
     <td>Reboot</td>
 
     <td>Reboot</td>
 
         <td>206</td>
 
         <td>206</td>
 +
      <td>207</td>
 
         <td>1</td>
 
         <td>1</td>
 
         <td>Reboots the router</td>
 
         <td>Reboots the router</td>
Line 50: Line 85:
 
     <td>Change APN</td>
 
     <td>Change APN</td>
 
         <td>207</td>
 
         <td>207</td>
 +
      <td>208</td>
 
         <td>APN code</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:
 
         <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:
Line 58: Line 94:
 
         </td>
 
         </td>
 
     </tr>
 
     </tr>
}}
+
|}}{{#ifeq:{{{series}}}|TRB2|
 +
  <tr>
 +
      <td> Switch PIN 3 state </td>
 +
      <td>324</td>
 +
      <td>325</td>
 +
      <td>1{{!}}0</td>
 +
      <td>Toggles PIN 3 ON or OFF</td>
 +
  </tr>|}}
 
{{#switch:{{{series}}}
 
{{#switch:{{{series}}}
|RUTX= {{#ifeq:{{{name}}}| RUTXR1||
+
|RUTX|RUT2|RUT2M|RUT9|RUT9M|TRB2= {{#ifeq:{{{name}}}|RUTXR1||
    <tr>
+
  <tr>
 
       <td> Switch PIN 4 state </td>
 
       <td> Switch PIN 4 state </td>
 
       <td>325</td>
 
       <td>325</td>
 +
      <td>326</td>
 
       <td>1{{!}}0</td>
 
       <td>1{{!}}0</td>
       <td>Toggles PIN 4 ON or OFF, when output is selected</td>
+
       <td>Toggles PIN 4 ON or OFF</td>
 
   </tr>
 
   </tr>
 
}}
 
}}
|
+
| TCR1 =
 +
| #default =
 
     <tr>
 
     <tr>
 
       <td> Switch PIN 3 state </td>
 
       <td> Switch PIN 3 state </td>
 
       <td>324</td>
 
       <td>324</td>
 +
      <td>325</td>
 
       <td>1{{!}}0</td>
 
       <td>1{{!}}0</td>
 
       <td>Toggles PIN 3 ON or OFF, when output is selected</td>
 
       <td>Toggles PIN 3 ON or OFF, when output is selected</td>
Line 78: Line 124:
 
       <td> Switch PIN 4 state </td>
 
       <td> Switch PIN 4 state </td>
 
       <td>325</td>
 
       <td>325</td>
 +
      <td>326</td>
 
       <td>1{{!}}0</td>
 
       <td>1{{!}}0</td>
 
       <td>Toggles PIN 4 ON or OFF, when output is selected</td>
 
       <td>Toggles PIN 4 ON or OFF, when output is selected</td>
 +
  </tr>
 +
    <tr>
 +
      <td> Switch PIN 3 direction </td>
 +
      <td>326</td>
 +
      <td>327</td>
 +
      <td>1{{!}}0</td>
 +
      <td>Toggles PIN 3 direction between INPUT (0) or OUTPUT (1)</td>
 +
  </tr>
 +
    <tr>
 +
      <td> Switch PIN 4 direction </td>
 +
      <td>327</td>
 +
      <td>328</td>
 +
      <td>1{{!}}0</td>
 +
      <td>Toggles PIN 4 direction between INPUT (0) or OUTPUT (1)</td>
 
   </tr>
 
   </tr>
 
}}
 
}}
{{#ifeq:{{{series}}}|TRB2XX|
+
{{#ifeq:{{{series}}}|TRB2|
 
     <tr>
 
     <tr>
       <td> Switch PIN2 state </td>
+
       <td> Switch PIN 2 state </td>
 
       <td>336</td>
 
       <td>336</td>
 +
      <td>337</td>
 +
      <td>1{{!}}0</td>
 +
      <td>Toggles PIN 2 ON or OFF</td>
 +
  </tr>
 +
      <tr>
 +
      <td> Switch PIN 3 direction </td>
 +
      <td>326</td>
 +
      <td>327</td>
 
       <td>1{{!}}0</td>
 
       <td>1{{!}}0</td>
       <td>Toggles PIN 2 ON or OFF, when output is selected</td>
+
       <td>Toggles PIN 3 direction between INPUT (0) or OUTPUT (1)</td>
 
   </tr>
 
   </tr>
}}
+
    <tr>
 
+
      <td> Switch PIN 4 direction </td>
 +
      <td>327</td>
 +
      <td>328</td>
 +
      <td>1{{!}}0</td>
 +
      <td>Toggles PIN 4 direction between INPUT (0) or OUTPUT (1)</td>
 +
  </tr>
 +
|}}
 
{{#ifeq:{{{name}}}|TRB141|
 
{{#ifeq:{{{name}}}|TRB141|
 
     <tr>
 
     <tr>
 
       <td> Switch relay state </td>
 
       <td> Switch relay state </td>
 
       <td>337</td>
 
       <td>337</td>
 +
      <td>338</td>
 
       <td>1{{!}}0</td>
 
       <td>1{{!}}0</td>
 
       <td>Turns Relay ON or OFF</td>
 
       <td>Turns Relay ON or OFF</td>
Line 101: Line 177:
 
       <td> Switch latching relay state </td>
 
       <td> Switch latching relay state </td>
 
       <td>338</td>
 
       <td>338</td>
 +
      <td>339</td>
 
       <td>1{{!}}0</td>
 
       <td>1{{!}}0</td>
 
       <td>Turns latching relay ON or OFF</td>
 
       <td>Turns latching relay ON or OFF</td>
Line 107: Line 184:
 
       <td>Switch PIN 1 (Dry/Wet) state</td>
 
       <td>Switch PIN 1 (Dry/Wet) state</td>
 
       <td>343</td>
 
       <td>343</td>
 +
      <td>344</td>
 
       <td>1{{!}}0</td>
 
       <td>1{{!}}0</td>
 
       <td>Switches PIN 1 state to 0 (dry) / 1 (wet)</td>
 
       <td>Switches PIN 1 state to 0 (dry) / 1 (wet)</td>
Line 113: Line 191:
 
       <td>Switch PIN 2(Dry/Wet) state</td>
 
       <td>Switch PIN 2(Dry/Wet) state</td>
 
       <td>344</td>
 
       <td>344</td>
 +
      <td>345</td>
 
       <td>1{{!}}0</td>
 
       <td>1{{!}}0</td>
 
       <td>Switches PIN 2 state to 0 (dry) / 1 (wet)</td>
 
       <td>Switches PIN 2 state to 0 (dry) / 1 (wet)</td>
 +
  </tr>
 +
    <tr>
 +
      <td> Switch ACL activity </td>
 +
      <td>345</td>
 +
      <td>346</td>
 +
      <td>1{{!}}0</td>
 +
      <td>Turns ACL activity ON or OFF</td>
 
   </tr>
 
   </tr>
 
     <tr>
 
     <tr>
 
       <td> Switch ACL ON/OFF </td>
 
       <td> Switch ACL ON/OFF </td>
       <td>345</td>
+
       <td>346</td>
 +
      <td>347</td>
 
       <td>1{{!}}0</td>
 
       <td>1{{!}}0</td>
 
       <td>Turns ACL functionality ON or OFF</td>
 
       <td>Turns ACL functionality ON or OFF</td>
 
   </tr>
 
   </tr>
}}
+
|}}
 +
{{#ifeq:{{{wifi}}}|1|
 +
    <tr>
 +
      <td>Switch 2.4GHz WiFi ON/OFF</td>
 +
      <td>390</td>
 +
      <td>391</td>
 +
      <td>1 {{!}} 0</td>
 +
        <td>Turns 2.4GHz WiFi ON or OFF</td>
 +
    </tr>{{#switch:{{{series}}}
 +
  | RUTX|TCR1=
 +
    <tr>
 +
      <td>Switch 5GHz WiFi ON/OFF</td>
 +
      <td>391</td>
 +
      <td>392</td>
 +
      <td>1 {{!}} 0</td>
 +
        <td>Turns 5GHz WiFi ON or OFF</td>
 +
    </tr>}}
 +
|}}
 +
    <tr>
 +
      <td> Change LAN IP </td>
 +
      <td>394</td>
 +
      <td>395</td>
 +
      <td>IPv4 (in decimal form)</td>
 +
      <td>Changes device LAN IP</td>
 +
  </tr>
 +
{{#ifeq:{{{mobile}}}|1|
 +
    <tr>
 +
      <td> Send SMS </td>
 +
      <td>396</td>
 +
      <td>397</td>
 +
      <td>1{{!}}0</td>
 +
      <td>Sends an SMS with content defined in Add SMS (397) register</td>
 +
  </tr>
 +
    <tr>
 +
      <td> Add SMS </td>
 +
      <td>397</td>
 +
      <td>398</td>
 +
      <td>Message (in decimal form)</td>
 +
      <td>Define SMS content which will be sent using Send SMS (396) register.<br>The register array is split into two parts that represent the recipient's "phone number" (first 10 registers) and the "SMS message contents" (remaining 80 registers).</td>
 +
  </tr>
 +
|}}
 +
 
 
</table>
 
</table>

Revision as of 16:10, 27 January 2023

Set Parameters


The Modbus daemon can also set some device parameters.

value to set register address register number register value description
Hostname 7 8 Hostname (in decimal form) Changes hostname
Device name 71 72 Device name (in decimal form) Changes device name
Reboot 206 207 1 Reboots the router
Switch PIN 3 state 324 325 1|0 Toggles PIN 3 ON or OFF, when output is selected
Switch PIN 4 state 325 326 1|0 Toggles PIN 4 ON or OFF, when output is selected
Switch PIN 3 direction 326 327 1|0 Toggles PIN 3 direction between INPUT (0) or OUTPUT (1)
Switch PIN 4 direction 327 328 1|0 Toggles PIN 4 direction between INPUT (0) or OUTPUT (1)
Change LAN IP 394 395 IPv4 (in decimal form) Changes device LAN IP