MTD2000 AT Command Guide R12
Confidential
DAVISCOMMS (S) PTE LTD
93 /105
24.2 Event – $EV
This command allows user to set up maximum 20 events for user application. Event is
used to define certain conditions (using event flags) and trigger the predefined
commands when the conditions are met. The maximum length of event including the
overhead is 150 characters.
Note:
1. Multiple conditions of up to 5 are supported.
2. Multiple commands of up to 10 are supported (use vertical bar character ‘|’ as a
separator).
3. The event will be triggered when the condition changes state and become true
again.
4. The events will be saved in the flash and will execute after power is cycled (or reset).
5. The event will be triggered right away when the condition is met after power is
cycled (or reset).
Format
AT$EV=<Index>,<Mode>,<Operator>,”<Condition 1> <Condition 2> … <Condition
N>”,<Command 1>|<Command 2>|…|<Command M>
Syntax
Command
Response
AT$EV=<Index>,<Mode>[,<Operator>,<Conditions>
,<Commands>]
Note: Write setting.
OK
AT$EV=<Index>
Note: Query one setting (not accessible via
SMS).
OK
AT$EV:
<Index>,<Mode>,<Operator>,<Conditions>,
<Commands>
AT$EV?
Note: Query all settings (not accessible via
SMS).
OK
AT$EV: 1,<…>
…
AT$EV: 20,<…>
Parameters
Index
Event 1 to 20