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 case | Description |
|---|---|
| ⚡ Automation | Execute actions when specific events occur |
| 📊 Conditional reports | Generate reports only when certain conditions are met |
| 🔔 Smart alerts | Create notifications based on multiple signals |
| ⏱️ Time control | Trigger actions based on timers and schedules |
| 📍 Geofences | Execute commands when entering/exiting geographic zones |
| 🔐 Security | Detect and react to security events |
Syntax
Query rule
QRLnnQuery all rules
QRL**Configure rule
SRLnnE;TRG=trigger;CND=condition;ACC={action}Disable rule
SRLnnDDisable all
SRL**DRule Structure
SRLnn[E/D];TRG=signals[SENSE];CND=signals;ACC={command}{command}...| Field | Description | Required |
|---|---|---|
nn | Rule index (00-99, A0-FF) | ✅ |
E/D | Enabled (E) or Disabled (D) | ✅ |
TRG | Trigger - signals that activate the rule | ✅ |
SENSE | Edge type: + rising, - falling, * any | ✅ |
CND | Additional condition that must be met | ❌ |
ACC | Actions to execute (commands in braces) | ❌ |
Available Signals
With Index
| Signal | Range | Description |
|---|---|---|
ACK | 0-6 | ACK confirmations |
AR | 0-11 | Analog inputs with ranges |
BE | 0-4 | Bluetooth devices |
BS | 0-3 | Bluetooth sensors |
BSW | 0-3 | Bluetooth Smart Wildcard |
BSWN | 0-3 | BSW New device |
CID | 0-n | Cell ID / Cell towers |
CQ | 0-n | Cellular signal quality |
DC | 0-2 | Angle limit - Direction Curve |
DV | 0-3 | Frequency - Speed Drift |
FCT | 0-5 | Cut functions |
HM | 0-7 | Engine hours |
IC | 0-99 | Drivers Manager - Identifiers |
ICL | 0-99 | Driver Manager - Licenses |
IN | 0-9 | Digital inputs |
KO | 0-n | Knock Out / Battery disconnection |
MC | 0-7 | Mobile Country Code |
MVXN | 0-3 | X-axis negative movement |
MVXP | 0-3 | X-axis positive movement |
MVYN | 0-3 | Y-axis negative movement |
MVYP | 0-3 | Y-axis positive movement |
MVZN | 0-3 | Z-axis negative movement |
MVZP | 0-3 | Z-axis positive movement |
NT | 0-31 | Counters (overflow/underflow) |
OW | 0-7 | iButton - Dallas 1-Wire |
OWP | 0-1 | iButton presence by port |
PK | 0-n | Parking |
RG | 0-31 | Polygonal geofences (Regions) |
RL | 0-195 | Status of other rules |
SIM | 0-1 | Selected SIM |
TD | 0-31 | Timers |
TK | 0-n | Tilt/Inclination detected |
TR | 0-7 | Trips |
U | 0-63 | Auxiliary variables |
UV | 0-47 | User variables |
VBU | 0-3 | Battery voltage |
VL | 0-15 | Logic variables |
WP | 0-31 | Circular geofences (Waypoints) |
XB | 0-7 | Extended buffer |
XP | 0-2 | Output expansions |
Without Index
| Signal | Description |
|---|---|
AC | Accelerometer activity |
BTHPWR | Bluetooth power |
BU | Pending reports buffer |
CAN | CAN bus active |
CEL | Cellular connection status |
CELPWR | Cellular module power |
CNC | End of voice call |
GPS | GPS status (valid fix) |
GPSPWR | GPS module power |
IGN | Ignition status |
INTPWR | Internal power |
JMD | Jammer detected |
PWR | Main power |
TT | Tachometer (pulse every second) |
VIOPWR | Accessories power |
WIF | WiFi connected |
WIFPWR | WiFi power |
Operators
Logic
| Operator | Function |
|---|---|
& | 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)
| Symbol | Triggers 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
- Event Engine - General concepts
- Trigger List - Complete reference
- SS Command - User flags
- TD Command - Timers
Last updated