merge data GT06 protocol type:18 and type:19

bumihartawana month ago

Hi Guys....
i hope someone help me.
I found some rather strange data, initially I checked the history, I saw a lot of data that had a time difference of only a few seconds. I tried checking log, it is true that the data is a few seconds apart, I made sure by checking the log, I got the same condition with a difference of a few seconds. For example, the case data below, I read the explanation of the "type" information in the attribute is related. so "type 18" and "type 19" are paired where 18 info is more about GPS satellite data while 19 is the device environment, status/event/alarm etc. in same time 00:22:14 server received 2 data 00:22:14 and 00:22:00 from device imei 353701096925314

2025-03-08 00:22:14  INFO: [T9e7a9c01: gt06 < 182.2.43.125] 78780d01035370109692531400353edd0d0a
2025-03-08 00:22:14  INFO: Event id: 353701096925314, time: 2025-03-08 00:22:14, type: deviceOnline, notifications: 0
2025-03-08 00:22:14  INFO: [T9e7a9c01: gt06 > 182.2.43.125] 787805010035ae7b0d0a
2025-03-08 00:22:14  INFO: [T9e7a9c01: gt06 < 182.2.43.125] 78781f12190307111600c500bff28e0bd7de0000400001fe0a134d00817900346f2c0d0a
2025-03-08 00:22:14  INFO: [T9e7a9c01] id: 353701096925314, time: 2025-03-08 00:22:00, lat: -6.98859, lon: 110.38692, course: 0.0
2025-03-08 00:22:14  INFO: [T9e7a9c01: gt06 > 182.2.43.125] 787805120034d5030d0a
2025-03-08 00:22:14  INFO: [T9e7a9c01: gt06 < 182.2.43.125] 78780a1305060400020036a03b0d0a
2025-03-08 00:22:14  INFO: [T9e7a9c01] id: 353701096925314, time: 2025-03-08 00:22:00, lat: -6.98859, lon: 110.38692, course: 0.0
2025-03-08 00:22:14  INFO: [T9e7a9c01: gt06 > 182.2.43.125] 787805130036accd0d0a

and i check on table attributes coloum
gps time 2025-03-08 00:22:14 {"type":19,"status":5,"ignition":false,"charge":true,"blocked":false,"batteryLevel":100,"rssi":4,"distance":0.0,"totalDistance":131.51858285604442,"motion":false}

gps time 2025-03-08 00:22:00
{"type":18,"sat":5,"ignition":false,"distance":0.0,"totalDistance":131.51858285604442,"motion":false}

because of type:19 and type:18 paired, perhaps any setting in traccar to merge the data.
i want minimize history data and reverse geocoding. example if i did not marger 1 day i got 500 history, but if i merge the data it will be 250-300 history. thank you

Anton Tananaeva month ago

Traccar doesn't merge the data, but it re-uses the last known location if current message doesn't have a location.

bumihartawana month ago

ok, its mean no need to merge data, rite?