Difference between revisions of "FMB setdigout"

From Wiki Knowledge Base | Teltonika GPS
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:FMB FW development notice}}
+
Sets digital outputs to <b>ON</b> or <b>OFF</b> state.<br/>
 +
SMS format: <code>setdigout ## <timeoutY1> <timeoutY2> <speedZ1> <speedZ2></code>
 +
<br/><br/>
 +
Set digital output:<br>
 +
1. # – 0; 1 or ? (0 - OFF, 1 – ON, ? - Ignore) for DOUT1.<br>
 +
2. # – 0; 1 or ? (0 - OFF, 1 – ON, ? - Ignore) for DOUT2.<br>
 +
Y1 – timeout value for DOUT1 if needed (in seconds).<br>
 +
Y2 – timeout value for DOUT2 if needed (in seconds).<br>
 +
Z1 – maximum speed value for DOUT1 if needed.<br>
 +
Z2 – maximum speed value for DOUT2 if needed. <br><br>
 +
<b>Note!</b>
 +
*Both, timeout and speed arguments are not mandatory and do not have to be included in the message.
 +
*Timeout argument determines how long the state will be held.
 +
*Speed argument determines the maximum speed threshold allowing command execution. If speed is higher than this threshold, command will be queued and executed when speed drops bellow this threshold.
 +
<br/>
 +
 
 +
'''In order to leave state/timeout/speed unchanged, "?" symbol can be used:<br/>'''
 +
Example: <code>setdigout ?1</code><br> will leave DOUT1 state unchanged and set DOUT2 to high level for infinite time.
 +
<br/><br/>
 +
Example: <code>setdigout 01 ? 60</code> <br>will set DOUT1 to low level for infinite time and DOUT2 to high level for 60 seconds.
 +
<br/><br/>
 +
Example: <code>setdigout 01 30 ? ? 30</code> <br>will set DOUT1 to low level for 30 seconds and DOUT2 to high level for infinite time if speed is 30 km/h or lower.
 +
<br/><br/>
  
Sets digital outputs to ON or OFF state (timeout is valid only when DOUT state is changing from OFF to ON).
+
'''For devices with 1 digital output:<br>'''
 +
Example: <code>setdigout 1 45</code><br> will set DOUT1 to high level for 45 seconds.
 +
<br/><br/>
 +
Example: <code>setdigout 1 30 20</code><br> will set DOUT1 to high level for 30 seconds if speed is 20 km/h or lower.
 
<br/><br/>
 
<br/><br/>
For devices with 2 digital outputs:<br>
+
 
Example:<br/>"setdigout 01 30 60" will set DOUT1 to low level for 30 seconds and DOUT2 to high level for 60 seconds.
+
'''For devices with 2 digital outputs:<br>'''
 +
Example: <code>setdigout 11</code><br> will set DOUT1 and DOUT2 to high level for infinite time.
 
<br/><br/>
 
<br/><br/>
Example:<br/>"setdigout 11" will set DOUT1 and DOUT2 to high level for infinite time.
+
Example: <code>setdigout 01 30 60</code><br> will set DOUT1 to low level for 30 seconds and DOUT2 to high level for 60 seconds.
 +
<br/><br/>
 +
Example: <code>setdigout 01 30 60 20 30</code><br> will set DOUT1 to low level for 30 seconds if speed is 20 km/h or lower and DOUT2 to high level for 60 seconds if speed is 30 km/h or lower.
 +
<br/><br/>
 +
 
 +
'''For devices with 3 digital output:<br>'''
 +
Example: <code>setdigout 100</code><br> will set DOUT1 to high level for infinite time, DOUT2 to low level for infinite time and DOUT3 to low level for infinite time.
 
<br/><br/>
 
<br/><br/>
Example:<br/>"setdigout 11  30" will set DOUT1 to high level for infinite time and DOUT2 to high level for 30 seconds.
+
Example: <code>setdigout 0?1 30 ? 20</code><br> will set DOUT1 to low level for 30 seconds, will leave DOUT2 state unchanged and set DOUT3 to high level for 20 seconds.
 
<br/><br/>
 
<br/><br/>
For devices with 1 digital output:<br>
+
Example: <code>setdigout 011 30 ? 20 10 30 30</code><br> will set DOUT1 to low level for 30 seconds if speed is 10 km/h or lower, DOUT2 to high level for infinite time if speed is 30 km/h or lower and DOUT3 to high level for 20 seconds if speed is 30 km/h or lower.
Example:<br/>"setdigout 1 45" will set DOUT1 to high level for 45 seconds.
 

Latest revision as of 12:44, 27 March 2023

Sets digital outputs to ON or OFF state.
SMS format: setdigout ## <timeoutY1> <timeoutY2> <speedZ1> <speedZ2>

Set digital output:
1. # – 0; 1 or ? (0 - OFF, 1 – ON, ? - Ignore) for DOUT1.
2. # – 0; 1 or ? (0 - OFF, 1 – ON, ? - Ignore) for DOUT2.
Y1 – timeout value for DOUT1 if needed (in seconds).
Y2 – timeout value for DOUT2 if needed (in seconds).
Z1 – maximum speed value for DOUT1 if needed.
Z2 – maximum speed value for DOUT2 if needed.

Note!

  • Both, timeout and speed arguments are not mandatory and do not have to be included in the message.
  • Timeout argument determines how long the state will be held.
  • Speed argument determines the maximum speed threshold allowing command execution. If speed is higher than this threshold, command will be queued and executed when speed drops bellow this threshold.


In order to leave state/timeout/speed unchanged, "?" symbol can be used:
Example: setdigout ?1
will leave DOUT1 state unchanged and set DOUT2 to high level for infinite time.

Example: setdigout 01 ? 60
will set DOUT1 to low level for infinite time and DOUT2 to high level for 60 seconds.

Example: setdigout 01 30 ? ? 30
will set DOUT1 to low level for 30 seconds and DOUT2 to high level for infinite time if speed is 30 km/h or lower.

For devices with 1 digital output:
Example: setdigout 1 45
will set DOUT1 to high level for 45 seconds.

Example: setdigout 1 30 20
will set DOUT1 to high level for 30 seconds if speed is 20 km/h or lower.

For devices with 2 digital outputs:
Example: setdigout 11
will set DOUT1 and DOUT2 to high level for infinite time.

Example: setdigout 01 30 60
will set DOUT1 to low level for 30 seconds and DOUT2 to high level for 60 seconds.

Example: setdigout 01 30 60 20 30
will set DOUT1 to low level for 30 seconds if speed is 20 km/h or lower and DOUT2 to high level for 60 seconds if speed is 30 km/h or lower.

For devices with 3 digital output:
Example: setdigout 100
will set DOUT1 to high level for infinite time, DOUT2 to low level for infinite time and DOUT3 to low level for infinite time.

Example: setdigout 0?1 30 ? 20
will set DOUT1 to low level for 30 seconds, will leave DOUT2 state unchanged and set DOUT3 to high level for 20 seconds.

Example: setdigout 011 30 ? 20 10 30 30
will set DOUT1 to low level for 30 seconds if speed is 10 km/h or lower, DOUT2 to high level for infinite time if speed is 30 km/h or lower and DOUT3 to high level for 20 seconds if speed is 30 km/h or lower.