Traccar unique identifier help

Bartho Horn7 years ago

Hi Everyone,

I am Traccar newbie. Installed it a couple of days ago, so please bear with me. Currently we are routing a couple of vehicle's GPS data through one server. Problem is that Traccar doesn't differentiate between the the message's Device ID. It sees all the different vehicle data coming from the single server as a single vehicle. Please suggest an appropriate way to change the primary key of the database to the Device ID set out by the device and not by a unique generated code that is generated for every new connection. (Sorry I'm making a couple of assumptions here.)

Looking forward to your reply.

Regards,

Bartho Horn

Anton Tananaev7 years ago

Traccar obviously uses device id for identification, not connection id. But by default it assumes that each device has separate network connection. If that's not the case for you, try to set decoder.ignoreSessionCache to true in the configuration file.

Bartho Horn7 years ago

Hi Anton,

Thank you for the reply. It works like a charm!

Regards,

Bart