Revision 1.6 Copyright © 2004-2007 BlueTree Wireless Data Inc. Page 118 of 130
All rights reserved.
17.1 +BEVENT: Define Event
Description
This command is used to define an event.
Availability
Since FW version 2.0.3
Command Syntax
AT+BEVENT=<id>,<Trigger Expression>,<Trigger Options>,<Register Options>,<Command
ID>,<Report ID>
Response Syntax
Defined Values
<id>
1-31 Event identifier
<Trigger Expression> Boolean expression based on the event signals (max 128 chars long)
Signals that can be used:
- DIS1 to DIS31: Digital Input Signal; configured with AT+BEVDIS
- AIS1 to AIS31: Analog Input Signal; configured with AT+BEVAIS
- GSS: GPS Speed Signal; configured with AT+BEVGSS
- GHS: GPS Heading Signal; configured with AT+BEVGHS
- GOS: GPS Odometer Signal; configured with AT+BEVGOS
- EVS: Event Signal; driven by another Event using its Event Register
- TMS: Timer Signal; is always TRUE and Trigger Option must be ‘T’; cannot be
combined with other signals
- GPS: GPS receiver Signal; TRUE when GPS receiver reports a fix; cannot be
combined with other signals
- GVS: GPS Valid fix Signal: always available without configuration. This signal is
used to determine whether valid GPS fixes are currently available from the GPS receiver.
It applies a heuristic rule to determine the validity of the fix based on different fields'
values in the reported GPS message. It reflects the validity since the last reported fix.
Operators that can be used in the Trigger Expression (maximum 10 are allowed)
& = logical AND
| = logical OR
! = logical NOT (works only in postfix mode i.e. applies to left-side operand)
() = parenthesis
<Trigger Options>
B any change in the state of the Trigger Expression
R transition of the Trigger Expression state from FALSE to TRUE
T0-T65535 the Trigger Expression state is TRUE for at least a specified time in
second (between 0 and 65535 seconds). The time must be specified
after T.
<Register Options> Used to concatenate events
S the event register synchronize with the state of the Trigger
Expression
E0-E65535 expiry timer in seconds indicates how long the Event register will
indicate TRUE once the Event is triggered. The time must be
specified after E.
<Command ID>
0-32 Command identifier
Not supported in this version – entered value will not take effect
<Report ID>
Kommentare zu diesen Handbüchern