3 format of geo-fence message, 1 server -> device, 2 device -> server – GLOBALSAT TR-206 User Manual
Page 7: 3 geo-fence area definition format, Geo-fence message, 3 format of, Server -> device
6
2.3 Format of
Geo-fence Message
2.3.1
Server -> Device
This message is used to configure geo-fence setting. Each message
contains as many parameters as desired. If the message to be sent is too
long, it is separated to several packets in sequence. The maximum length
of each packet is 250 bytes.
The format is
GS
G
,IMEI,T,S,1=(type,upper_left_Lon,upper_left_Lat,right_bottom_Lon,righ
t_bottom_Lat[,startTime,endTime,weekday]),2=(…),3=(…),…*Check sum!
Where T field is message packet sequence control flag.
S field is message packet sequence number.
1,2,3,… are geo-fence area ID.
Setting of each area is enclosed by (…). Please refer to 2.3.3 & 7.3 for detail.
2.3.2 Device -> Server
The message is generated by TR-206 in accordance with a reading
geo-fence setting command. If the message is too long, it will be separated
into several packets in sequence.
The format is
GS
g
,IMEI,T,S,1=(type,upper_left_Lon,upper_left_Lat,right_bottom_Lon,righ
t_bottom_Lat[,startTime,endTime,weekday]),2=(…),3=(…),…*Check sum!
2.3.3 Geo-fence area definition format
Each geo-fence area is a rectangle represented by the following
parameters.
(type,upper_left_Lon,upper_left_Lat,right_bottom_Lon,right_bottom_Lat[,s
tartTime,endTime,weekday])