We would need protocol documentation.
Hello Anton.
Thanks for the answer.
You can dowload the protocol from here:
https://drive.google.com/file/d/0B4Zuhslo2BaPMXFoeVBHX21nZVE/view
The part is not saving in the database is the Apendix II point 2 The Format of Driving Behavior Data this is send when the engine stop.
The Apendix II, part 1, The Format of Real-time Vehicle Data is working ok.
Everything else is working fine.
Thanks again.
Jose.
The example that you provided is a login request, not driving behavior data.
Hello.
Thanks for the answer.
You are right. I thought it was the Driven Behavior Data
I have been comparing the Hex Decoder of the debug with the protocol and I have found this:
In this debug,
2016-12-06 17:30:28 DEBUG: [8268BD92: 5009 < 213.143.xxx.xxx] HEX: 242400736610402421174399553136333032362e3937382c412c333933342e373334342c4e2c30303233372e303738312c452c303034332c3235392c3036313231362c2c2a31437c31312e357c3139347c313030317c303241422c303030307c30303037363030307c3030303030302faa0d0a2424004d66104024211743990131342e312c323339362c38302c31342e35312c392e38302c39322c332e35322c382e31362c322e33302c37362c302e32312c362e38332c302c342c30306b0d0a2424003166104024211743990231372c312e37312c302e36302c32312c34342c3131392c333735362c35342c374e670d0a
If you decode it, it has 3 lines, the first one is the location data.
the second line is the real time vehicle data (Apendix II point 1) and the database save this:
{"battery":14.1,"rpm":2396,"obdSpeed":80,"throttle":14.51,"engineLoad":9.8,"temp1":92,"fuelConsumption":8.16,"drivingRange":2300.0,"odometer":76000.0,"singleFuelConsumption":0.21,"totalFuelConsumption":6.83,"ip":"213.143.49.16","distance":0.0,"totalDistance":63846.75}
It is missing the following data: Current Error Code, Harsh acceleration No, Harsh brake No
the third line I think that correspont to the Driving Behavior data (Apendix II point 2)
It should be stored in the attributes field of the database like
Total ignition no. ,Total driving time ,Total idling time (h) ,Average hot start time , Average speed ,History highest speed,,History highest rotation,Total Harsh acceleration No.,Total Harsh brake No.
but nothing is storing.
Thanks Again for your inestimable help.
Jose
Please send me an email. Address is on support page.
Hi!
I have just ordered the TK228!
I see that it works good with traccar....
:)
@joseant
Hi, my tk228 has always only the blue light flashing for gps...
Is yours flashing also for gsm?
Yes, the gsm light is flahsing. Have you disable the sim pin?
Yes it is disabled and the sim works ok in a phone.
My unit seems to do nothing when not connected in a car when pressing the button on/off, also with internal battery charged.
Are you able to switch it on and off when not plugged in OBD port?
Thank you very much
Yes, I just press the on button for a few seconds and it turn on / off both cases, when it is in the obd and when not.
In the manual, says that:
(1) Prepare the SIM Card
Please prepare a valid GSM card (CDMA card not supported) with Caller ID Display & GPRS function.
Please make sure that main unit is powered off, and then insert SIM card into the SIM card holder. (Attention): If you want to take out the SIM card from the main unit, please power off the main unit firstly, otherwise, it might damage the unit.
No, my unit is definitely not working.
If I press the power button it remains always on with blue led flashing continuously.
The plbutton itself works since I see that the unit resets but never shut off.
Hi, I had a new unit and now it is working good.
Which settings have you used for GPRS connection?
I am trying with port 5009 TCP but I cannot get connections....
Are you using full IMEI as identification?
Thank you
Ok, got it working.... it was a firewall problem :)
Hello Anton.
I have found an error in the device protocol, normally the hex chains that are received in the server have a length of at least 230 characters and always finish with 0d0a, sometimes they receive something less, 220 or 227 char that not finish with 0d0a, then the system stops recording the device data, until the vehicle Stops.
When the server receive a hart beat or when the vehicle start moving again, (I am not sure) it begins to work fine again.
is it anyway to discard the problematic chains to avoid the stop recording data?
Thanks
Hello
I have this gps model tk228
http://topten800.en.made-in-china.com/product/WXSmRbaTnFVv/China-OBD-Mini-Waterproof-GPS-Tracker-Work-with-Traccar-TK228-KW-.html
It is working fine. It send two types of data:
Real-time vehicle data -> It is recorded just fine, because it send the data with the position and the
Driving behavior data -> It is a package without position data like this:
It is possible to save that data in the data base?
Thanks.
Jose