CoderP
CoderP

Reputation: 1371

TK 103 data format

I am trying to decode the Hex data sent by the device to my server. I am able parse the latitude , longitude ,speed etc. But what I am unable to decode is the 'state' information. I believe they represent the state of the vehicle e.g. oil and electricity, ignition on/off etc.

I cant find any document which can guide me as to how to decode the 8 bits of state and what each bit represents.

Any help or documentation for the same will be appreciated.

Upvotes: 0

Views: 6689

Answers (3)

Fulup
Fulup

Reputation: 545

If this may help, I just release a new server base on a jison grammar to make protocol easier to implement. https://www.npmjs.org/package/gpsdtracking

Upvotes: 0

CoderP
CoderP

Reputation: 1371

This is what I have been able to find out.

8 bits of IO: First bit represents Power : 0 indicating on, 1 indicating off Second bit represents Ignition status: 1 indicating ACC on, 0 indicating ACC off. Other reservations.

Source: http://www.traccar.org/docs/protocol.jsp

Upvotes: 1

AlexWien
AlexWien

Reputation: 28727

Probably state is related to Valid / Invalid position. Try it out, by comparing the value when having GPS free view to sky, and without (disabel Antenna, shield with metall paper trash bin or metall foil.

Upvotes: 0

Related Questions