Need to save all OBD Data from a chinese GPS Traacker to OPENGTS

mben269 years ago

Hello

I am using an OBD GPS tracker from china wich is using Meiligao protocol , I already integrated Traccar with OPENGTS and all the tracking Data is saved succesfully to opengts database , except the Odometer and the OBD Data , I have a sample of the OBD DATA and also the manual of the manufacturer for gprs and obd protocol, but since i am not good at scripting i wonder if someone can help save all this info in the database.

The OBD Data is sent to the server each 5 Geolocation packets and it's programmable so we can send it more or less frequently

Please find below the data :

2424001166104021687564500006e60d0a2424001166104021687564500006e60d0a242400736610402168756499553130313630352e

3937382c412c333631362e313636302c4e2c30303634312e383434332c452c303031392c3236392c3234303431362c2c2a31437c3131

2e357c3139347c313030307c323432362c303030307c36313430343030307c303030303030a1b70d0a24240073661040216875649955

3130313630352e3937382c412c333631362e313636302c4e2c30303634312e383434332c452c303031392c3236392c3234303431362c

2c2a31437c31312e357c3139347c313030307c323432362c303030307c36313430343030307c303030303030a1b70d0a242400736610

402168756499553130313630352e3937382c412c333631362e313636302c4e2c30303634312e383434332c452c303031392c3236392c

3234303431362c2c2a31437c31312e357c3139347c313030307c323432362c303030307c36313430343030307c303030303030a1b70d

0a242400736610402168756499553130313635362e3937382c412c333631362e313130392c4e2c30303634312e373135332c452c3030

30302c3030302c3234303431362c2c2a31437c31312e357c3139347c313030307c323432392c303030307c36313430353030307c3030

303030300ca90d0a242400736610402168756499553130313731342e3937382c412c333631362e313133332c4e2c30303634312e3731

36372c452c303030302c3030302c3234303431362c2c2a31437c31312e357c3139347c303030307c323432392c303030307c36313430

353030307c3030303030300cd00d0a2424004f66104021687564990131332e342c302c302c31342e31322c33342e35312c2d34302c30

2e30302c372e34362c302e38302c36313430352c302e30382c39322e35372c302c352c3171b90d0a2424003766104021687564990232

32312c33332e36362c372e36332c36352c33342c3134302c353538342c313039352c323134a61e0d0a24240074661040216875649955

3130313734372e3937382c412c333631362e313133332c4e2c30303634312e373136372c452c303030302c3030302c3234303431362c

2c2a31437c31312e357c3139347c303030307c303030302c303030307c3030303030303031307c303030303030ede80d0a2424007466

10402168756499553130313831362e3937382c412c333631362e313133332c4e2c30303634312e373136372c452c303030302c303030

2c3234303431362c2c2a31437c31312e357c3139347c303030307c303030302c303030307c3030303030303031307c30303030303081

970d0a242400746610402168756499553130313835372e3937382c412c333631362e313133332c4e2c30303634312e373136372c

Waiting for your help

Anton Tananaev9 years ago

Is it one message or multiple? Why is it divided like that?

mben269 years ago

Sorry , when i inserted the message and saved the post , i was unable to see the full message so i inserted a CR at the end of each line.

now i am posting the Data as received

2016-04-24 18:57:26 DEBUG: [FE447DC3: 5009 < 105.235.133.85] HEX: 242400736610402168756499553136353532352e3937382c412c333631362e303433372c4e2c30303634312e353633302c452c303031372c3237362c3234303431362c2c2a31437c31312e357c3139347c313030307c323437342c303030307c36313431313030307c303030303030c2660d0a2424005366104021687564990131342e342c313536322c33332c32332e31342c32332e39322c38312c31332e30332c372e34382c312e39362c36313431312c302e32312c39332e33322c302c332c30f3780d0a242400376610402168756499023232372c33342e30322c372e37312c36352c33342c3134302c353538342c313131302c32313661390d0a
2016-04-24 18:57:26  INFO: Query not provided: database.updateDeviceStatus
2016-04-24 18:57:26  INFO: Query not provided: database.updateLatestPosition
2016-04-24 18:57:26  INFO: [FE447DC3] id: 66104021687564, time: 2016-04-24 18:55:25, lat: 36.26740, lon: 6.69272, speed: 17.0, course: 276.0
2016-04-24 19:00:25 DEBUG: [FE447DC3: 5009 < 105.235.133.85] HEX: 242400736610402168756499553137303032322e3937382c412c333631372e363933322c4e2c30303634312e303732342c452c303031382c3335332c3234303431362c2c2a31437c31312e357c3139347c313030307c323438312c303030307c36313431343030307c30303030303060b20d0a2424005266104021687564990131342e342c313735312c33342c31342e31322c31302e35392c38342c332e33332c372e34372c342e32392c36313431342c302e33342c39332e34352c302c332c30e77b0d0a242400376610402168756499023232372c33342e30372c372e37312c36352c33342c3134302c353538342c313131302c3231364c5a0d0a
2016-04-24 19:00:25  INFO: Query not provided: database.updateDeviceStatus
2016-04-24 19:00:26  INFO: Query not provided: database.updateLatestPosition
2016-04-24 19:00:26  INFO: [FE447DC3] id: 66104021687564, time: 2016-04-24 19:00:22, lat: 36.29489, lon: 6.68454, speed: 18.0, course: 353.0
2016-04-24 19:03:10 DEBUG: [FE447DC3: 5009 < 105.235.133.85] HEX: 242400736610402168756499553137303330362e3937382c412c333631382e353938362c4e2c30303634302e303438332c452c303032372c3331302c3234303431362c2c2a31437c31312e357c3139347c313030307c323438462c303030307c36313431363030307c303030303030f19b0d0a2424005266104021687564990131342e342c313635382c35312c32372e34352c31312e33372c38372c312e32312c372e34372c362e36322c36313431362c302e34382c39332e35392c302c342c30a8290d0a242400376610402168756499023232372c33342e31322c372e37312c36352c33342c3134302c353538342c313131312c32313645410d0a
2016-04-24 19:03:10  INFO: Query not provided: database.updateDeviceStatus
2016-04-24 19:03:11  INFO: Query not provided: database.updateLatestPosition
2016-04-24 19:03:11  INFO: [FE447DC3] id: 66104021687564, time: 2016-04-24 19:03:06, lat: 36.30998, lon: 6.66747, speed: 27.0, course: 310.0
2016-04-24 19:05:33 DEBUG: [FE447DC3: 5009 < 105.235.133.85] HEX: 242400736610402168756499553137303532392e3937382c412c333631382e343934372c4e2c30303634302e303530352c452c303030332c3136312c3234303431362c2c2a31437c31312e357c3139347c313030307c323439342c303030307c36313431363030307c303030303030a5700d0a2424005266104021687564990131342e332c313031392c372c31362e30382c32312e31382c38382c31382e39322c372e34372c362e38392c36313431362c302e35332c39332e36342c302c342c320e710d0a242400376610402168756499023232372c33342e31362c372e37312c36352c33342c3134302c353538342c313131312c32313880f30d0a
2016-04-24 19:05:33  INFO: Query not provided: database.updateDeviceStatus
2016-04-24 19:05:34  INFO: Query not provided: database.updateLatestPosition
2016-04-24 19:05:34  INFO: [FE447DC3] id: 66104021687564, time: 2016-04-24 19:05:29, lat: 36.30825, lon: 6.66751, speed: 3.0, course: 161.0
mben269 years ago

Hello Anton

I just sent the log file to your amail. so you can check all the data.

Thanks