Skip to Content

RL Command

Allows creating logic rules that execute actions automatically when specific conditions are met.

Each device supports up to 196 rules (00-99 and A0-FF), configurable and independently enabling.


What is it for?

Use caseDescription
AutomationExecute actions when specific events occur
📊 Conditional reportsGenerate reports only when certain conditions are met
🔔 Smart alertsCreate notifications based on multiple signals
⏱️ Time controlTrigger actions based on timers and schedules
📍 GeofencesExecute commands when entering/exiting geographic zones
🔐 SecurityDetect and react to security events

Syntax

Query rule

QRLnn

Query all rules

QRL**

Configure rule

SRLnnE;TRG=trigger;CND=condition;ACC={action}

Disable rule

SRLnnD

Disable all

SRL**D

Rule Structure

SRLnn[E/D];TRG=signals[SENSE];CND=signals;ACC={command}{command}...
FieldDescriptionRequired
nnRule index (00-99, A0-FF)
E/DEnabled (E) or Disabled (D)
TRGTrigger - signals that activate the rule
SENSEEdge type: + rising, - falling, * any
CNDAdditional condition that must be met
ACCActions to execute (commands in braces)

Available Signals

With Index

SignalRangeDescription
ACK0-6ACK confirmations
AR0-11Analog inputs with ranges
BE0-4Bluetooth devices
BS0-3Bluetooth sensors
BSW0-3Bluetooth Smart Wildcard
BSWN0-3BSW New device
CID0-nCell ID / Cell towers
CQ0-nCellular signal quality
DC0-2Angle limit - Direction Curve
DV0-3Frequency - Speed Drift
FCT0-5Cut functions
HM0-7Engine hours
IC0-99Drivers Manager - Identifiers
ICL0-99Driver Manager - Licenses
IN0-9Digital inputs
KO0-nKnock Out / Battery disconnection
MC0-7Mobile Country Code
MVXN0-3X-axis negative movement
MVXP0-3X-axis positive movement
MVYN0-3Y-axis negative movement
MVYP0-3Y-axis positive movement
MVZN0-3Z-axis negative movement
MVZP0-3Z-axis positive movement
NT0-31Counters (overflow/underflow)
OW0-7iButton - Dallas 1-Wire
OWP0-1iButton presence by port
PK0-nParking
RG0-31Polygonal geofences (Regions)
RL0-195Status of other rules
SIM0-1Selected SIM
TD0-31Timers
TK0-nTilt/Inclination detected
TR0-7Trips
U0-63Auxiliary variables
UV0-47User variables
VBU0-3Battery voltage
VL0-15Logic variables
WP0-31Circular geofences (Waypoints)
XB0-7Extended buffer
XP0-2Output expansions

Without Index

SignalDescription
ACAccelerometer activity
BTHPWRBluetooth power
BUPending reports buffer
CANCAN bus active
CELCellular connection status
CELPWRCellular module power
CNCEnd of voice call
GPSGPS status (valid fix)
GPSPWRGPS module power
IGNIgnition status
INTPWRInternal power
JMDJammer detected
PWRMain power
TTTachometer (pulse every second)
VIOPWRAccessories power
WIFWiFi connected
WIFPWRWiFi power

See complete trigger list →


Operators

Logic

OperatorFunction
&AND
|OR
^XOR
&!NOT AND
|!NOT OR
^!NOT XOR

Negation

Add ! after the index to negate the signal:

IN02! → NOT IN02 (input 2 inactive) IGN! → NOT IGN (ignition off)

Edge Type (SENSE)

SymbolTriggers when…
+Condition changes from false to true
-Condition changes from true to false
*Condition changes in any direction

Condition Evaluation

Signals are evaluated from left to right:

SIG1 SIG2 OP1 SIG3 OP2 ...

Equivalent to:

((SIG1 OP1 SIG2) OP2 SIG3) ...

Example

IN00!XP00&U09^

Is interpreted as:

(((NOT IN00) AND XP00) XOR U09)

Practical Examples

Report when Timer expires (with condition)

>SRL07E;TRG=TD01+;CND=U09U01!&;ACC={GCP01H}<
  • Rule 07 enabled
  • Triggers when Timer 01 finishes (TD01+)
  • Condition U09 AND (NOT U01)
  • Action Generates CP01 high priority report

Periodic report with ignition

>SRL00E;TRG=TD00+;CND=IGN;ACC={GCO02L}<
  • Triggers when Timer 00 finishes
  • Only if ignition is on
  • Action Generates CO02 low priority report

User session notification

>SRL57E;TRG=IC00+;ACC={GTX78L;@TRM;TXT=USER SESSION LOGGED}<
  • Triggers when user session starts
  • Action Sends text to serial port

Low voltage alert

>SRL23E;TRG=AR02-;ACC={GTX50L;@TRM;TXT=LOW VOLTAGE}<
  • Triggers when voltage drops below AR02 threshold
  • Action Sends alert to serial port

Movement alert via SMS

>SRL33E;TRG=AC+;ACC={GTX00L;@SM0;TXT=MOVEMENT DETECTED}<
  • Triggers when acceleration is detected
  • Action Sends SMS to number SM0

Speed limit in zone

>SRL00E;TRG=VL00+;CND=WP05;ACC={GTX00L;@TRM;TXT=Speeding in school zone}<
  • Triggers when speed limit 0 is exceeded
  • Only if inside geofence 5
  • Action Sends alert

Compatibility

💾Firmware v1.01.01
SPLegacy
ULLegacy
💾Firmware v1.00.00
SP-IOT
SM-IOT
ZE-IOT

See Also

Last updated