Events
Events define what the device does when signal conditions change. Up to 100 events can be configured (E00–E99).
Event Format
>SED{NN}{H}{V}{D};{EQUATION}{SENSE}<
| Field | Description |
|---|---|
NN | Event index (00–99) |
H | Handler: N=normal, X=serial port, S=signal only, U=undefine |
V | Event type: V=EV message, A,B,C=EV + extended tag groups |
D | Destination address (0–9) |
EQUATION | Postfix boolean expression |
SENSE | +=rising, -=falling |
Equation Syntax
Events use postfix (Reverse Polish Notation) expressions:
| Operator | Symbol | Example |
|---|---|---|
| Signal | name | F00 |
| NOT | ! | F00! (NOT ignition) |
| AND | & | F00F13& (ignition AND power) |
| OR | | | F12F16| (motion OR hard motion) |
Examples
| Event | Command | Description |
|---|---|---|
| Ignition ON | >SED00NA0;F00+< | Report when ignition turns ON |
| Ignition OFF | >SED01NA0;F00-< | Report when ignition turns OFF |
| Motion | >SED02NA0;F12+< | Report when motion detected |
| Speed exceeded | >SED03NA0;S00+< | Report when S00 speed limit exceeded |
| Geofence enter | >SED04NA0;R00+< | Report when entering region R00 |
| Power loss | >SED05NA0;F13-< | Report when external power is lost |
| Complex | >SED06NA0;F00F01&+< | Report when ignition ON and GPS fix |
Optional Action Commands
Events can execute additional commands when they fire. Append ;ACT={CMD}; to the event equation:
>SED00NA0;F00+;ACT=SSSXP21< ← Set output 2 to true when ignition turns ON
Deleting Events
>SED00U< ← Delete event E00