www.zane.hu
12
Motion GPS fix
o
Sample Payload:
Payload structure (11 bytes):
LLL
NNN
AA
TT
B
Port:
204
Payload:
43ad23
0f7343
007f
0271
48
latitude (3 bytes)
,
longitude (3 bytes)
,
altitude (2 bytes)
,
temperature (2 bytes)
,
battery (1 byte)
LAT_MSB, LAT_CSB, LAT_LSB
,
LON_MSB, LON_CSB, LON_MSB
,
ALT_MSB, ALT_LSB
,
TEMP_MSB, TEMP_LSB
,
BAT
Latitude: 24 bit long signed hexadecimal number. Positive number means North,
negative means South.
Formula to get latitude from given payload:
latitude = (lat_value/8388606) *90
In our example 43ad23(hex)= 4435235(dec)
latitude = (4435235/8388606) *90=47.584920
Longitude: 24 bit long signed hexadecimal number. Positive number means East,
negative means West.
The formula to get longitude from given payload:
longitude = (lon_value/8388606) * 180
In our example 0f7343(hex) = 1012547(dec)
longitude = (1012547 / 8388606) * 180 = 21.726906
Altitude: 16-bit unsigned hexadecimal number.
In our example 007f(hex) means 127m altitude as decimal value.
Temperature:
-
1. character indicates negative or positive temperature (0
–
positive, 1
–
negative)
-
2. and 3. character is integer part of temperature
-
4. character is fractional part of temperature
In our example the temperature is 27.1
°
C
Battery:
-
battery status in percentage (1% - 99%)
In our example the battery level is on 48%.
Summary of Contents for zTrack One
Page 16: ...www zane hu 16...