Jump to content

SMS/GPRS command - setigndigout

From Teltonika Telematics Wiki
SMS/GPRS commands > SMS/GPRS command - setigndigout
setigndigout

Description

Controls the specified digital output when the ignition is off. DOUTs are controlled dynamically.
For DOUT control when ignition is on, see SMS/GPRS command - setdigout.
Timeout and threshold parameters are optional.
Use "?" to skip DOUT or it's value.
For queued ignition event to end if dout timeout is set to infinity ignition has to go 1 -> 0 -> 1, then it is considered finished and dout is available for other services to reuse.
If DOUT is controlled instantly when ignition is off, DOUT will be stopped when ignition is on or timeout expires.
If new SMS command is received (when previous is active or queued), parameters of previous command are replaced with new ones (Except IGNORED DOUTs).

Syntax

setigndigout #
...
setigndigout ### <Y1> <Y2> <Y3>

Arguments

ARGUMENT ARGUMENT DESCRIPTION
# DOUT1:
0 - OFF, 1 – ON, ? - Ignore
# DOUT2:
0 - OFF, 1 – ON, ? - Ignore
# DOUT3:
0 - OFF, 1 – ON, ? - Ignore
<Y1> Optional. DOUT1 timeout (in seconds)
min = 0, max = 600 (s), “?” or “<empty>” (holding level for infinite amount of time)
<Y2> Optional. DOUT2 timeout (in seconds)
min = 0, max = 600 (s), “?” or “<empty>” (holding level for infinite amount of time)
<Y3> Optional. DOUT3 timeout (in seconds)
min = 0, max = 600 (s), “?” or “<empty>” (holding level for infinite amount of time)

Examples

REQUEST OUTCOME RESPONSE
setigndigout ? Success DOUT1:IGNORED
setigndigout 1 10 Success DOUT1:ON Timeout:10
setigndigout 1 10 Success DOUT1:ON Timeout:10s IGN ON, QUEUED
setigndigout 1 Success DOUT1:ON Timeout:INFINITY IGN ON, QUEUED
setigndigout Fail Arguments required
Fail Bad syntax
Fail DOUT<dout_nr> params are invalid
Fail DOUT<dout_nr> ERROR
Fail DOUT<dout_nr> state already set to: <#> time_on_ms: <Y> time_off_ms: <Y>