Jump to content

SMS/GPRS command - setdigout

From Teltonika Telematics Wiki
Revision as of 12:12, 16 January 2026 by Donatas.Mazonas (talk | contribs) (Added link to setigndigout.)

SMS/GPRS commands > SMS/GPRS command - setdigout
setdigout

Description

Controls specified digital output. Sets/clears DOUTs with optional timeouts and speed thresholds.
Accepts as many parameter sets, as your device has DOUTs.
For DOUT control when ignition is off, see SMS/GPRS command - setigndigout.
Timeout and threshold parameters are optional.
Use "?" to skip DOUT or it's value.
If new SMS command is received (when previous is active or queued), parameters of previous command are replaced with new ones (Except IGNORED DOUTs). If command was queued due to speed threshold < current speed DOUT control will start when current speed drops below threshold. In opposite case, command is controlled instantly (current speed <= speed threshold). DOUT will be controlled until current speed exceeds threshold again or timeouts elapse. After control is finished new SMS command is required to control DOUT again.

Syntax

setdigout #
...
setdigout ### <Y1> <Y2> <Y3> <Z1> <Z2> <Z3>

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)
<Y2> Optional. DOUT2 timeout (in seconds)
<Y3> Optional. DOUT3 timeout (in seconds)
<Z1> Optional. DOUT1 speed threshold (in km/h)
<Z2> Optional. DOUT2 speed threshold (in km/h)
<Z3> Optional. DOUT3 speed threshold (in km/h)

Examples

REQUEST OUTCOME RESPONSE
setdigout ? Success DOUT1:IGNORED
setdigout 1 Success DOUT1:ON Timeout:INFINITY
setdigout 1 10 Success DOUT1:ON Timeout:10s
setdigout 1 10 20 Success DOUT1:ON Timeout:10s Speed threshold:20km/h
setdigout 1 10 1 Success DOUT1:ON Timeout:10s Speed threshold:1km/h Speed is above threshold, queued
setdigout 01 ? 20 Success DOUT1:OFF Timeout:INFINITY DOUT2:ON Timeout:20s
setdigout 10 ? 20 Success DOUT1:ON Timeout:INFINITY DOUT2:OFF Timeout:20s
setdigout 01 30 ? ? 20 Success DOUT1:OFF Timeout:30s DOUT2:ON Timeout:INFINITY Speed threshold:20km/h
setdigout Fail Arguments required
Fail Bad syntax
Fail DOUT<dout_nr> params are invalid
Fail DOUT<dout_nr> does not exist
Fail DOUT<dout_nr> set/clear error
Fail DOUT<dout_nr>:ERROR