Hi, am interfacing gps tracker TK106 with our online platform. The data we get from gps device is in this format
(06667778889-9BP05000066677788899140815A0533.8206N00009.7045W000.0165936157.6200000000-L0000F51C)
Instractions form this site explains the variours data sets in the string above, for example the first 11 digits
06667778889
is the device's programmable ID ,used in placed of the IMEI number.The problem is, i need to find a way to dynamically seperate these digits automatically as they are sent by the gps device, so we can plot location of fleets in real time.
Also,
0000F51C
is a hex # (odometer reading), this have to be converted from Hex to decimal. Example:
Conversion Process:
Hex to decimal: 000024DE == 9438
Divide by 100 : 9438 == 94.38
Odometer reads: 94.38 KM
it seems abit easy to seperate and convert using pathon, but my core language is PHP. From my research, using PHP substring seems to be the way forward, but i just can't bring my head around it. Thx for helping out...