Namespaces
Template
Discussion
Variants
Views
Read
View source
View history
PDF Export
More
Search
Changes
← Older edit
Newer edit →
Template:Networking rutx manual input output
(view source)
Revision as of 08:40, 14 June 2019
1,090 bytes added
,
08:40, 14 June 2019
no edit summary
Line 34:
Line 34:
[[File:{{{file_status_output}}}]]
[[File:{{{file_status_output}}}]]
+
+
===Status from command line===
+
----
+
You can also obtain the status of the input or output from the command line using the <b>ubus call ioman get</b> command:
+
+
root@Teltonika-{{{name}}}:~# ubus call ioman get '{"pin":"pin<b>2</b>"}'
+
{
+
"ioctl_inverted": 0,
+
"response": <b>0</b>
+
}
+
+
<ul>
+
<li><b>pin1</b> is the input:
+
<ul>
+
<li>"response": <b>0</b> means open state.</li>
+
<li>"response": <b>1</b> means shorted state.</li>
+
</ul>
+
</li>
+
<li><b>pin2</b> is the output:
+
<ul>
+
<li>"response": <b>0</b> means closed state.</li>
+
<li>"response": <b>1</b> means open state.</li>
+
</ul>
+
</li>
+
</ul>
+
----
+
You can change the state of the output by using the <b>ubus call ioman change</b> command:
+
+
root@Teltonika-{{{name}}}:~# ubus call ioman change '{"pin":"pin2","value":<b>1</b>}'
+
{
+
"ioctl_inverted": 0,
+
"response": 1
+
}
+
+
Set the number following after "value": to indicate the new state of the output (possible values are 0 and 1).
==Input==
==Input==
+
+
+
+
[[File:{{{file_input_rules}}}]]
==Output==
==Output==
Dziugas
Bureaucrats
,
Interface administrators
,
Administrators
31,703
edits
Navigation menu
COMMUNITY
ABOUT
login
Personal tools
Log in
Create account
EN
EN
LT
DE
IT
ES
FR
RU
PL
PT
BR
JA
TR
NAVIGATION
Recent changes
Random page
What links here
Upload file
Help
Tools
Categories
BAT Uninterruptable Power Supplies
Downloads
FAQ
General Information
IoT Platforms
OTD Outdoor routers
RUT Routers
RUTM Routers
RUTX Routers
TAP Access Points
TCR Routers
TRB Gateways
TRM Modems
TSW Switches