5.2.3
Commands for setting up geofence
SG301: Add rectangular geofence to device memory
Command: SG301,<IDX>,<MODE>,<TL_LAT>,<TL_LON>,<BR_LAT>,<BR_LON>
Response (SMS): @<ID>,301,<IDX>,<MODE>,<TL_LAT>,<TL_LON>,<BR_LAT>,<BR_LON>!
–
Where <IDX> is the index number 0 to 9 assigned to each geofence
–
Where <MODE> is mode:
•
0 = disable geofence
•
1 = trigger alert message when the unit moves out of geofence
•
2 = trigger alert message when the unit moves into geofence
•
3 = trigger alert message when the unit either moves in or out of geofence
–
Where <TL_LAT> is the latitude of the top left corner (max 8 char, 0.00000)
–
Where <TL_LON> is the longitude of the top left corner (max 8 char, 0.00000)
–
Where <BR_LAT> is the latitude of the bottom right corner (max 8 char, 0.00000)
–
Where <BR_LON> is the longitude of the bottom right corner (max 8 char, 0.00000)
For the format of this alert message, please refer to event number 602 described in chapter 6.
The unit executes the cross-fence checking only if GPS signal is available.
Example: Rectangular geofence index 0 which trigger alert in or out with top left corner 45.5,85.1 and
bottom right corner 27.1,105.6
Command:
SG301,0,3,45.5,85.1,27.1,105.6
Response: @352238020015913,301,0,3,45.5,85.1,27.1,105.6!
SG302: Set Circular region
Command: SG302,<IDX>,<MODE>,<C_LAT>,<C_LON>,<RA>
Response (SMS): @<ID>,302,<IDX>,<MODE>,<C_LAT>,<C_LON>,<RA>!
–
Where <IDX> is the index number 0 to 9 assigned to each geofence
–
Where <MODE> is mode:
•
0 = disable geofence
•
1 = trigger alert message when the unit moves out of geofence
•
2 = trigger alert message when the unit moves into geofence
•
3 = trigger alert message when the unit either moves in or out of geofence
–
Where <C_LAT> is the latitude of center (max 8 char, 0.00000)
–
Where <C_LON> is the longitude of center (max 8 char, 0.00000)
36
Confidential, the whole document is the sole property of Maestro Wireless Solutions ltd.
3603-9, 36/F., 118 Connaught Road West, Sheung Wan, Hong Kong