GT06 Wrong speed being reported (G19H)

Gps man3 years ago

Recently we experienced that the speed being reflected on traccar for GT06 protocol (G19H device) seems to be wrong. We got the logged checked from the manufacturer and it can be seen that the speed reported by the device and speed shown by traccar has huge gap.

Log analysis for clarity

2021-05-02 09:27:02  INFO: [1fe1d371: gt06 < 42.106.6.164] HEX: 78782222150502091b00cc02647f92079943460d14c3019405f268003747010000015354c50d0a——speed 13km/h
2021-05-02 09:27:02  INFO: [1fe1d371: gt06 > 42.106.6.164] HEX: 7878052201535dcc0d0a
2021-05-02 09:29:06  INFO: [1fe1d371: gt06 < 42.106.6.164] HEX: 78782222150502091d04cc02649186079972433e155c019405f26800376601000001678c4b0d0a——speed 62km/h
2021-05-02 09:29:06  INFO: [1fe1d371: gt06 > 42.106.6.164] HEX: 7878052201672a6b0d0a
2021-05-02 09:29:06  INFO: [1fe1d371] id: 866551038634429, time: 2021-05-02 09:29:04, lat: 22.30294, lon: 70.83154, speed: 33.5, course: 348.0
2021-05-02 09:29:52  INFO: [1fe1d371: gt06 < 42.106.6.164] HEX: 78782222150502091d26cc0264b1fc07996868441552019405f2680037e8010000016c28e00d0a——speed 68km/h
78782222150502091d2ccc0264b7750799664a25155b019405f2680037e8010000016dfb0c0d0a——speed 37km/h
78782222150502091d30cc0264b9a907996593201552019405f2680037e8010000016e90130d0a——speed 32km/h
2021-05-02 09:29:52  INFO: [1fe1d371: gt06 > 42.106.6.164] HEX: 78780522016c94b80d0a
2021-05-02 09:29:52  INFO: [1fe1d371] id: 866551038634429, time: 2021-05-02 09:29:38, lat: 22.30755, lon: 70.83014, speed: 36.7, course: 338.0
2021-05-02 09:30:22  INFO: [1fe1d371: gt06 < 42.106.6.164] HEX: 78782222150502091e14cc0264d2d507996f404a1446019405f2680037e7010000017a9d3f0d0a——speed 74km/h
2021-05-02 09:30:22  INFO: [1fe1d371: gt06 > 42.106.6.164] HEX: 78780522017ae10f0d0a
2021-05-02 09:30:22  INFO: [1fe1d371] id: 866551038634429, time: 2021-05-02 09:30:20, lat: 22.31223, lon: 70.83111, speed: 40.0, course: 70.0
2021-05-02 09:32:18  INFO: [1fe1d371: gt06 < 42.106.6.164] HEX: 78782222150502092010cc0265193a0799d4034c1446019405f25b0003ae010000018e455b0d0a——speed 76km/h
2021-05-02 09:32:18  INFO: [1fe1d371: gt06 > 42.106.6.164] HEX: 78780522018e50a40d0a
2021-05-02 09:32:18  INFO: [1fe1d371] id: 866551038634429, time: 2021-05-02 09:32:16, lat: 22.32224, lon: 70.84544, speed: 41.0, course: 70.0
2021-05-02 09:34:22  INFO: [1fe1d371: gt06 < 42.106.6.164] HEX: 78782222150502092214cc0265377c079a4cea4f145e019405f25b0003bc010000019ff6ef0d0a——speed 79km/h
2021-05-02 09:34:22  INFO: [1fe1d371: gt06 > 42.106.6.164] HEX: 78780522019f51ac0d0a
2021-05-02 09:34:22  INFO: [1fe1d371] id: 866551038634429, time: 2021-05-02 09:34:20, lat: 22.32654, lon: 70.86264, speed: 42.7, course: 94.0
2021-05-02 09:34:30  INFO: [1fe1d371: gt06 < 42.106.6.164] HEX: 7878222215050209221ccc0265373d079a5983551458019405f25b0003bc01000001a05d2a0d0a——speed 85km/h
2021-05-02 09:34:30  INFO: [1fe1d371: gt06 > 42.106.6.164] HEX: 7878052201a098d80d0a
2021-05-02 09:34:30  INFO: [1fe1d371] id: 866551038634429, time: 2021-05-02 09:34:28, lat: 22.32651, lon: 70.86443, speed: 45.9, course: 88.0
2021-05-02 09:34:48  INFO: [1fe1d371: gt06 < 42.106.6.164] HEX: 7878222215050209222ecc02653f8f079a76085c1442019405f25b0003bc01000001a482230d0a——speed 92km/h
2021-05-02 09:34:48  INFO: [1fe1d371: gt06 > 42.106.6.164] HEX: 7878052201a4defc0d0a
2021-05-02 09:34:48  INFO: [1fe1d371] id: 866551038634429, time: 2021-05-02 09:34:46, lat: 22.32769, lon: 70.86848, speed: 49.7, course: 66.0
Anton Tananaev3 years ago
  1. Where did you get those km/h numbers from?
  2. Do you have protocol documentation?
Anton Tananaev3 years ago

Wait.. those numbers do match up. Traccar shows speed values in knots (default units used in GPS).

Gps man3 years ago

Thanks for the quick check and revert. In the web we have configured speed unit as km/hr and distance unit as km.

Then also we see the same speed which is shown in log on web UI.

So think the conversion multiplier is not working here.

Anton Tananaev3 years ago

Conversion is obviously not done in logs.

Gps man3 years ago

That I agree. But in the webUI also I see the speed that is shown in Log. My query is that only. Actual problem came in when we find that the speed being reported on the webUI was matching the log and driver reported to driving at much higher speed then what was visible on webui.

as shared earlier in the webUI i have settings for speed as km/hr and distance as km.

The manufacturer has confirmed that the device is reporting speed in km/hr in their packet.

Anton Tananaev3 years ago

It works for everyone else. I think it's more likely that you haven't configured units correctly.

Gps man3 years ago
Gps man3 years ago

The manufacturer has confirmed that the device is reporting speed in km/hr in their packet.

It that case gt06.speed to kmh needs to be configured.

Regards,

Gps man3 years ago

Anton, can you please confirm here. The device is sending data in Km/hr

should we put gt06.speed config as kmh in traccar.xml.

Anton Tananaev3 years ago

For GT06 km/h is the default, so no need to configure anything.

Gps man3 years ago

can there be some issue like this https://github.com/traccar/traccar/commit/9ee31327f5eb7f5384345064b501eedecbb7f3b0 in gt06protocol.

We are capturing speed data from websocket and webapi.

This issue has been recently experienced after we upgraded to 4.12. Since I have live users I don't know if shifting back to 4.11 will work without any challenge.

Anton Tananaev3 years ago

Are you checking API or the official web app?

Gps man3 years ago

checking API and websocket.

Yes i keep monitoring the official web-app. but that also shows the same value as in api / websocket.

Anton Tananaev3 years ago

API will always return you knots.