TRB140 Input/Output

From Wiki Knowledge Base | Teltonika
This is the approved revision of this page, as well as being the most recent.
Main Page > Network products > TRB140 > TRB140 Manual > TRB140 WebUI > TRB140 Input/Output

Summary[edit | edit source]

Inputs and Outputs are used for monitoring and controlling a connected device or receiving signals from that device in order to trigger certain events. This chapter is overview on the Input/Output section.

Characteristics[edit | edit source]

This section provides a list Input/Output electric characteristics inherent in TRB14x devices:

  • Digital non-isolated input (DIN1): Logic low 0 - 5 V; Logic high 8 - 40 V
  • Digital open collector (OC) output: 30 V, 300 mA

Status[edit | edit source]

The Status section is used to view the current states the router’s inputs and outputs. The figure below is an example of the Status section:

Trb142 webui services input output status v1.png

Status: custom labels[edit | edit source]


Users are also provided with the possibility to create custom labels for different inputs and outputs. When new labels are added, nothing changes from a functionality perspective - only the way the input/output names and states are represented in the WebUI. You can add custom labels by clicking the "EDIT" button next to the input/output in question.

The figure below is an example of an input/output label customization window:

Trb142 webui services input output status edit custom labels v1.png

Output[edit | edit source]

The Output tab contains sections related to various configuration and control parameters of the device's outputs.

Output Configuration[edit | edit source]


The Output Configuration section is used to change the default* states of the device's outputs. The figure below is an example of the Output Configuration section and the table below provides information on the fields contained in that section:

Trb142 webui services input output output configuration v2.png

field name value description
Open collector output High level | Low level; Default: Low level Changes the default* state of the Open collector (OC) output

* Changing the default state of an output means that the changes will be written into the input/output config and saved, therefore making the change permanent. This means that, unless some other related change occurs, the state of the output will remain as set in this section. Therefore, if the input/output service restarts or the device reboots, it will have no effect on the state of the output (unlike when changing the current state in the ON/OFF section)

ON/OFF[edit | edit source]


The ON/OFF section is used to change the current* states of the device's outputs. The figure below is an example of the ON/OFF section:

Trb142 webui services input output output on off v1.png

FIELD NAME VALUE DESCRIPTION
Digital OC output (TURN ON/TURN OFF) - (interactive button) Changes the current* state of the Open collector (OC) output

* Changing the current state of an output means that the changes will not be written into the input/output config, thus the changes are temporary. This means that the output will stay in this state until the input/output service restarts, the device reboots or some other service triggers an output change. To change the state of the output permanently, lookup the Output Configuration section.

POST/GET Configuration[edit | edit source]


The POST/GET Configuration section is used to enable output control via HTTP POST/GET. The figure below is an example of the POST/GET Configuration section and the table below provides information on the fields contained in that section:

Trb142 webui services input output output post get configuration v1.png

FIELD NAME VALUE DESCRIPTION
Enable yes | no; Default: no Toggles POST/GET ON or OFF
Username string; Default: " " Username used for authentication in POST/GET queries
Password string; Default: " " Password used for authentication in POST/GET queries

POST/GET usage[edit | edit source]


It is possible to turn outputs ON and OFF by using a valid HTTP POST/GET syntax. Use a web browser or any other compatible software to submit HTTP POST/GET strings to the device.

Below is table containing syntax examples of this usage:

Action Post/Get URL example
Turn open collector (OC) output ON http://192.168.2.1/cgi-bin/output?username=admin&password=admin&action=on&pin=oc
Turn open collector (OC) output OFF http://192.168.2.1/cgi-bin/output?username=admin&password=admin&action=off&pin=oc
Turn open collector (OC) output ON after a 10 second delay http://192.168.2.1/cgi-bin/output?username=admin&password=admin&action=on&pin=oc&delay=10
Turn open collector (OC) output ON for 5 seconds http://192.168.2.1/cgi-bin/output?username=admin&password=admin&action=on&pin=oc&time=5
Turn open collector (OC) output ON for 5 seconds after a 10 second delay http://192.168.2.1/cgi-bin/output?username=admin&password=admin&action=on&pin=oc&delay=10&time=5

Overview:

  • 192.168.2.1 - the device's default LAN IP address; replace it in accordance with your own configuration.
  • username - username from POST/GET Configuration.
  • password - password from POST/GET Configuration.
  • action - the action that is to be performed on the specified Output (can be on or off).
  • pin - specifies on which Output the action will be applied (oc for open collector).
  • delay - defines a delay (in seconds) after which the specified action will be performed.
  • time - defines a window of time during which the action will take place. For instance, if you post an ON action for an output while specifying time=5, that Output will turn ON and stay ON for 5 seconds before turning back OFF.

Delay and time parameters can be used together. For example, if delay is 10, time is 5, action is on, then 10 seconds after the execution of the command, the output will switch to ON (or stay in ON state if it was already ON), then after 5 more seconds it will switch to OFF state. In this case, the overall command execution time is 15 seconds.

Output Scheduler[edit | edit source]


The Output Scheduler provides you with the possibility to configure a schedule of when certain outputs are to be enabled or disabled. The figure below is an example of the Scheduler section:

Trb142 webui services input output output scheduler v1.png