GT06 parse msgs 0x13 and 0x16 error

Please correct the parse function for TerminalInfo byte in Alarm and heartbeat messages.
Folowing documentation example :
0x44 - > 01000100 means:

0-fuel on
1-gps tracking on
000-normal (here is the error)
1-charging
0-acc off
0-def.deactivated

Alarms: 3-5bit

100-SOS
011-Low battery alarm
010-Power cut alarm
001-Shock (vibration) alarm
000-Normal

Best regards
Sasa, Belgrade, Serbia

Anton Tananaev8 years ago

Please provide official documentation.

Documentation is already on your site.

Here is the link https://dl.dropboxusercontent.com/s/sqtkulcj51zkria/GT06_GPS_Tracker_Communication_Protocol_v1.8.1.pdf
found on this page https://www.traccar.org/protocols/ (under GT06 section, first file)

Page 18, section 5.3.1.14

Anton Tananaev8 years ago

Please provide a HEX message example with the error, and explain what you see and what's expected.