Device is in log file but has no position in Traccar Frontend

Horsta year ago

Hi all,

I have log entries like following:

2023-08-21 21:31:41  INFO: [T6022e650: h02 < 18.159.233.211] 2a48512c393137353137333634392c56312c3139333134372c562c343931352e383934342c4e2c30303933322e343938352c452c3030302e30302c3030302c3231303832332c46464646464246462c3236322c30312c32313130392c3534333423

2023-08-21 21:31:41  INFO: [T6022e650: h02 > 18.159.233.211] 2a48512c393137353137333634392c56342c56312c323032333038323131393331343123

2023-08-21 21:31:42  INFO: [T6022e650] id: 9175173649, time: 2023-08-21 21:31:47, lat: 49.26491, lon: 9.54164, course: 0.0

So my device 9175173649 is detected. In the Traccar Frontend the device is maked as 'online' but there is no position displayed.

Anton Tananaeva year ago
  1. No errors in the logs?
  2. Is WebSocket connected in the web app?
Horsta year ago
  1. No errors.
  2. How to find out?

I have other devices, which are 'online' and with position in my Frontend.

Anton Tananaeva year ago

If other devices are updated, it's probably not a WebSocket issue. No other ideas currently.

Horsta year ago

It is a problem of the Browser Frontend. In the Webmanager on Android it shows the position. How can i investigate more?

Horsta year ago

I have fixed the problem.

At the beginnig with a new device (ST-901L 4G) i had problems to detect the device in the log. It has a 10-digit ID. So i played with the the device and added zeros to the device to get a 15-digit ID with no success.

So i had accidentally two device withe the same name. One with the 10-digit and the other with the 15-digit.

By my suggestion the Browser Frontend used the 15-digit ID and the Android used the 10-digit ID.

Stopping traccar, deleting the wrong 15-digit ID in the device table in the database fixed my problem.

The question is why did the Browser Frontend accept the two divices withe the same name and different IDs?

Track-tracea year ago

The question could also be why you did not set the server to auto register new devices?

Horsta year ago

auto register? I worked as described at: https://www.traccar.org/identify-protocol/

I red about the ST-901 as it should be h02 type. My device is ST-901L which is not in the device list. I didn't find entries in the log. So i played...

Track-tracea year ago

database.registerUnknown config
Automatically register unknown devices in the database.

database.registerUnknown.defaultCategory config
Default category for auto-registered devices.

database.registerUnknown.defaultGroupId config
The group id assigned to auto-registered devices.

https://www.traccar.org/configuration-file/

Horsta year ago

Thanks - next time i check this.