Extracting ID from data packet GPS

Posted by user604134 on Stack Overflow See other posts from Stack Overflow or by user604134
Published on 2011-02-05T06:23:55Z Indexed on 2011/02/05 7:25 UTC
Read the original article Hit count: 131

Filed under:
|
|
|

Hi ,

I am trying to configure a GPS device to my systems. The GPS device send the data packet to my IP in the following format : $$?W??¬ÿÿÿÿ™U042903.000,A,2839.6408,N,07717.0905,E,0.00,,230111,,,A*7C|1.2|203|0000÷

I am able to extract the latitude, longitude and other information but I am not able to extract the Tracker ID out of the string.

According to the manual the ID is in hex format.And the format of the packet is $$\r\n

I dont know what to do with it, I have tried converting this to hex..but it didnt work.

Any help will be greatly appreciate.

Thanks

© Stack Overflow or respective owner

Related posts about data

Related posts about conversion