Changes

prepare for release
Line 8: Line 8:  
==Summary==
 
==Summary==
   −
<b>Inputs</b> and <b>outputs</b> are used for monitoring and controlling a connected device or receiving signals from that device in order to trigger certain events. This chapter is an overview of the Input/Output section for {{{name}}} routers.
+
<b>Inputs</b> and <b>outputs</b> are used for monitoring and controlling a connected device or receiving signals from that device in order to trigger certain events. This chapter is an overview of the Input/Output section for {{{name}}} devices.
 
{{Template:Networking_rutos_manual_basic_advanced_webui_disclaimer}}
 
{{Template:Networking_rutos_manual_basic_advanced_webui_disclaimer}}
    +
{{#switch:{{{series}}}
 +
| RUTX =
 
==Characteristics==
 
==Characteristics==
   −
{{#switch:{{{series}}}
  −
| RUTX =
   
The router's input/output pins can be found inside the power socket:
 
The router's input/output pins can be found inside the power socket:
   Line 33: Line 33:  
{{#ifeq:{{{name}}}|TRB141
 
{{#ifeq:{{{name}}}|TRB141
 
|
 
|
TRB141 has eighteen input/output pins, two of them can be found inside the power socket and the rest sixteen are on the side of the device. A list of Input/Output electric characteristics inherent in TRB141 routers can be found bellow.
+
==Characteristics==
 +
 
 +
TRB141 has eighteen input/output pins, two of them can be found inside the power socket and the rest sixteen are on the side of the device. A list of Input/Output electric characteristics inherent in TRB141 devices can be found bellow.
    
===Power Socket Pins===
 
===Power Socket Pins===
Line 66: Line 68:  
==Status==
 
==Status==
   −
The <b>Status</b> page displays the current states of the router's input and output:
+
{{#switch:{{{series}}}
 +
| RUTX =
 +
The <b>Status</b> page displays the current states of the device input and output:
    
[[File:Networking_rutx_manual_input_output_status_v2.png|border|class=tlt-border]]
 
[[File:Networking_rutx_manual_input_output_status_v2.png|border|class=tlt-border]]
Line 102: Line 106:  
     </li>
 
     </li>
 
</ul>
 
</ul>
 +
| TRB2 =
 +
The <b>Status</b> page displays the current states of the device configurable inputs and outputs:
 +
 +
[[File:Networking_trb2_manual_input_output_status_v1.png|border|class=tlt-border]]
 +
 +
You can invert Input pins by clicking on clider in <b>Inversion</b> column and switch Outputs pin state by clicking on slider in <b>State</b> column.
 +
 +
===Status from command line===
 +
----
 +
You can also obtain the status of the input or output from the command line. List of ubus possible <b>values</b> in {{{name}}} devices:
 +
 +
ioman.adc.adc0
 +
ioman.gpio.dio0
 +
ioman.gpio.dio1
 +
ioman.gpio.dio2
 +
 +
Call command <b>ubus call <u>value</u> status </b>:
 +
root@Teltonika-{{{name}}}:~# ubus call ioman.gpio.dio0 status
 +
{
 +
        "value": "0",
 +
        "direction": "out",
 +
        "bi_dir": true,
 +
        "invert_input": false
 +
}
 +
 +
<ul>
 +
    <li><b>dio0</b> is configurable input / output:
 +
        <ul>
 +
            <li>"value": "<b>0</b>" means low level state.</li>
 +
            <li>"value": "<b>1</b>" means high level state.</li>
 +
        </ul>
 +
    </li>
 +
    <li><b>adc0</b> is analog input:
 +
        <ul>
 +
            <li>"value": "<b>0.54</b>" means 0.54V.</li>
 +
        </ul>
 +
    </li>
 +
</ul>
 +
| TRB1 =
 +
The <b>Status</b> page displays the current states of the device configurable inputs and outputs:
 +
 +
[[File:Networking_trb1_manual_input_output_status_v1.png|border|class=tlt-border]]
 +
 +
You can invert Input pins by clicking on clider in <b>Inversion</b> column and switch Outputs pin state by clicking on slider in <b>State</b> column.
 +
 +
===Status from command line===
 +
----
 +
You can also obtain the status of the input or output from the command line. List of ubus possible <b>values</b> in {{{name}}} devices:
 +
 +
ioman.acl.acl0
 +
ioman.adc.adc0
 +
ioman.dwi.dwi0
 +
ioman.dwi.dwi1
 +
ioman.gpio.dio0
 +
ioman.gpio.dio1
 +
ioman.gpio.iio
 +
ioman.gpio.onewire
 +
ioman.relay.relay0
 +
ioman.relay.relay1
 +
 +
Call command <b>ubus call <u>value</u> status </b>:
 +
root@Teltonika-{{{name}}}:~# ubus call ioman.gpio.dio0 status
 +
{
 +
        "value": "0",
 +
        "direction": "out",
 +
        "bi_dir": true,
 +
        "invert_input": false
 +
}
 +
 +
|}}
 +
    
==Post/Get==
 
==Post/Get==
Line 143: Line 218:  
       <th style="width: 900px">POST/GET URL</th>
 
       <th style="width: 900px">POST/GET URL</th>
 
     </tr>
 
     </tr>
 +
{{#ifeq:{{{configurableio}}}|1|
 +
    <tr>
 +
      <td>Turn Output state to high</td>
 +
      <td><nowiki>http://192.168.1.1/cgi-bin/</nowiki><span style="color: #0054a6;"><b>io_state</b></span><nowiki>?username=user1&password=user1&pin=dout1</nowiki><span style="color: #0054a6;"><b><nowiki>&state=on</nowiki></b></span></td>
 +
    </tr>
 +
    <tr>
 +
      <td>Turn Output state to low after 5 seconds for 3 seconds</td>
 +
      <td><nowiki>http://192.168.1.1/cgi-bin/</nowiki><span style="color: #0054a6;"><b>io_state</b></span><nowiki>?username=user1&password=user1&pin=dout1&state=on</nowiki><span style="color: #0054a6;"><b><nowiki>&delay=5</nowiki></b></span><span style="color: #3232ff;"><b><nowiki>&time=3</nowiki></b></span></td>
 +
    </tr>
 +
    <tr>
 +
        <td>Change Configurable Input/Output with pin3 to Output</td>
 +
        <td><nowiki>http://192.168.1.1/cgi-bin/</nowiki><span style="color: #0054a6;"><b>io_type</b></span><nowiki>?username=user1&password=user1&</nowiki><span style="color: #0054a6;"><b>pin=dio1</b></span><span style="color: #3232ff;"><b><nowiki>&type=out</nowiki></b></span></td>
 +
    </tr>
 +
|
 
     <tr>
 
     <tr>
 
       <td>Turn Output state to high</td>
 
       <td>Turn Output state to high</td>
Line 151: Line 240:  
       <td><nowiki>http://192.168.1.1/cgi-bin/io_state?username=user1&password=user1&pin=dout1&state=on</nowiki><span style="color: #0054a6;"><b><nowiki>&delay=5</nowiki></b></span><span style="color: #3232ff;"><b><nowiki>&time=3</nowiki></b></span></td>
 
       <td><nowiki>http://192.168.1.1/cgi-bin/io_state?username=user1&password=user1&pin=dout1&state=on</nowiki><span style="color: #0054a6;"><b><nowiki>&delay=5</nowiki></b></span><span style="color: #3232ff;"><b><nowiki>&time=3</nowiki></b></span></td>
 
     </tr>
 
     </tr>
 +
}}
 +
   
 
</table>
 
</table>
    
<b>Overview</b>:
 
<b>Overview</b>:
 
<ul>
 
<ul>
     <li>192.168.1.1 - router's default LAN IP address; replace it in accordance with your own configuration.</li>
+
     <li>192.168.1.1 - device default LAN IP address; replace it in accordance with your own configuration.</li>
 +
{{#ifeq:{{{configurableio}}}|1|<li>io_state or io_type - allows you to change IO state or type.</li>}}
 
     <li>username - login name from Post/Get configuration.</li>
 
     <li>username - login name from Post/Get configuration.</li>
 
     <li>password- password from Post/Get configuration.</li>
 
     <li>password- password from Post/Get configuration.</li>
 +
    <li>state - turn Output on or off.</li>
 +
{{#ifeq:{{{configurableio}}}|1|<li>type - turn Configurable Input/Output to Input or Output.</li>}}
 
     <li>delay - defines a delay (in seconds) after which the specified action will be performed.</li>
 
     <li>delay - defines a delay (in seconds) after which the specified action will be performed.</li>
 
     <li>time - defines a window of time during which the action will take place. For instance, if you post an <i>on</i> action while specifying <i>time=5</i>, the output will turn on and stay on for 5 seconds before turning off.</li>
 
     <li>time - defines a window of time during which the action will take place. For instance, if you post an <i>on</i> action while specifying <i>time=5</i>, the output will turn on and stay on for 5 seconds before turning off.</li>
Line 172: Line 266:  
By default everything is unset.
 
By default everything is unset.
   −
[[File:Networking_rutx_manual_input_output_output_scheduler_v2.png|border|class=tlt-border]]
+
{{#ifeq:{{{configurableio}}}|1|[[File:Networking_trb2_manual_input_output_output_scheduler_v1.png|border|class=tlt-border]]|[[File:Networking_rutx_manual_input_output_output_scheduler_v2.png|border|class=tlt-border]]}}
    
==Io juggler==
 
==Io juggler==
Line 184: Line 278:  
The figure below is an example of Conditions section.
 
The figure below is an example of Conditions section.
   −
[[File:Networking_rutx_manual_input_output_iojuggler_general_v1.png]]
+
{{#switch:{{{series}}}
 +
| TRB1 = [[File:Networking_trb1_manual_input_output_iojuggler_general_v1.png]]
 +
| TRB2 = [[File:Networking_trb2_manual_input_output_iojuggler_general_v1.png]]
 +
|[[File:Networking_rutx_manual_input_output_iojuggler_general_v1.png]]}}
 +
 
    
====Modify Input configuration====
 
====Modify Input configuration====
Line 273: Line 371:  
     </tr>
 
     </tr>
 
</table>
 
</table>
 +
    
=====Email=====
 
=====Email=====
Line 319: Line 418:  
     </tr>
 
     </tr>
 
</table>
 
</table>
{{#ifeq:{{{mobile}}}|1|
+
 
 +
{{#ifeq:{{{mobile}}}|0||
 
=====SMS=====
 
=====SMS=====
 
----
 
----
Line 365: Line 465:  
     </tr>
 
     </tr>
 
</table>
 
</table>
|}}
+
}}
 +
 
 
=====Output=====
 
=====Output=====
 
----
 
----
Line 420: Line 521:  
     </tr>
 
     </tr>
 
</table>
 
</table>
 +
    
=====HTTP=====
 
=====HTTP=====
Line 458: Line 560:  
         <td>string; default: <b>none</b></td>
 
         <td>string; default: <b>none</b></td>
 
         <td>Parameters and their value from device for usage in Post or Get requests.  
 
         <td>Parameters and their value from device for usage in Post or Get requests.  
Possible values: Time stamp, UNIX time, WAN MAC, Wired WAN IP, Network info, Product code, LAN MAC address, LAN IP address, Serial number, Current FW version, Monitoring status, Input Name, Input state change trigger, RSCP, ECIO, SIM slot in use, CELLID, RSRQ, SINR, RSRP, SIM State, SIM pin state, Modem model, IMSI, Modem serial number , Network State, Data connection state, Connection type, Mobile IP, Operator name, Signal strenght, IMEI, ICCID, Neighbour cells, Network serving.</td>
+
{{#switch:{{{name}}}
 +
| RUTX10 = Possible values: Time stamp, UNIX time, WAN MAC, Wired WAN IP, Network info, Product code, LAN MAC address, LAN IP address, Serial number, Current FW version, Monitoring status, Input Name, Input state change trigger </td>
 +
| RUTX08 = Possible values: Time stamp, UNIX time, WAN MAC, Wired WAN IP, Network info, Product code, LAN MAC address, LAN IP address, Serial number, Current FW version, Monitoring status, Input Name, Input state change trigger </td>
 +
| Possible values: Time stamp, UNIX time, WAN MAC, Wired WAN IP, Network info, Product code, LAN MAC address, LAN IP address, Serial number, Current FW version, Monitoring status, Input Name, Input state change trigger, RSCP, ECIO, SIM slot in use, CELLID, RSRQ, SINR, RSRP, SIM State, SIM pin state, Modem model, IMSI, Modem serial number , Network State, Data connection state, Connection type, Mobile IP, Operator name, Signal strenght, IMEI, ICCID, Neighbour cells, Network serving.</td>
 +
}}
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
Line 466: Line 572:  
     </tr>
 
     </tr>
 
</table>
 
</table>
 +
    
=====Script=====
 
=====Script=====
Line 511: Line 618:  
     </tr>
 
     </tr>
 
</table>
 
</table>
 +
    
=====Reboot=====
 
=====Reboot=====
Line 536: Line 644:  
     </tr>
 
     </tr>
 
</table>
 
</table>
{{#ifeq:{{{mobile}}}|1|
+
 
 +
{{#ifeq:{{{mobile}}}|0||
 +
    {{#ifeq:{{{series}}}|TRB1||
 
=====Change sim=====
 
=====Change sim=====
 
----
 
----
Line 571: Line 681:  
     </tr>
 
     </tr>
 
</table>
 
</table>
|}}
+
    }}
 +
}}
 
===Conditions===
 
===Conditions===
 
----
 
----
Line 614: Line 725:  
     </tr>
 
     </tr>
 
</table>
 
</table>
 +
    
=====I/O=====
 
=====I/O=====
Line 639: Line 751:  
     </tr>
 
     </tr>
 
</table>
 
</table>
 +
 +
 +
{{#ifeq:{{{series}}}|RUTX||
 +
=====Analog voltage=====
 +
----
 +
<table class="nd-mantable">
 +
    <tr>
 +
        <th>Field</th>
 +
      <th>Value</th>
 +
      <th>Description</th>
 +
    </tr>
 +
    <tr>
 +
        <td>Condition type</td>
 +
        <td>Analog voltage</td>
 +
        <td>A type of condition.</td>
 +
    </tr>
 +
    <tr>
 +
        <td>Condition</td>
 +
        <td>Inside voltage {{!}} Outside voltage; default: <b>Inside voltage</b> </td>
 +
        <td>Whether to evaluate the condition as true inside or outside the specified range.</td>
 +
    </tr>
 +
    <tr>
 +
        <td>Input</td>
 +
        <td>inputs; default: <b>none</b></td>
 +
        <td>Specifies the analog input to which the condition is listening to.</td>
 +
    </tr>
 +
    <tr>
 +
        <td>Min voltage</td>
 +
        <td>positive float; default: <b>none</b></td>
 +
        <td>Specifies minimum voltage of range.</td>
 +
    </tr>
 +
    <tr>
 +
        <td>Max voltage</td>
 +
        <td>positive float; default: <b>none</b></td>
 +
        <td>Specifies magimum voltage of range.</td>
 +
    </tr>
 +
</table>
 +
}}
 +
    
=====Minute=====
 
=====Minute=====
Line 679: Line 830:  
     </tr>
 
     </tr>
 
</table>
 
</table>
 +
    
=====Hour=====
 
=====Hour=====
Line 719: Line 871:  
     </tr>
 
     </tr>
 
</table>
 
</table>
 +
    
=====Weekday=====
 
=====Weekday=====
Line 759: Line 912:  
     </tr>
 
     </tr>
 
</table>
 
</table>
 +
    
=====Month day=====
 
=====Month day=====
Line 799: Line 953:  
     </tr>
 
     </tr>
 
</table>
 
</table>
 +
    
=====Year=====
 
=====Year=====
0

edits

Navigation menu