Notification-triggered commands work on one device but not another – is this device-dependent? How to check for errors?

cristiandev9a month ago

Hello,

I'm experiencing an issue where event-triggered notifications that execute commands work correctly on one device but fail on another. Could this functionality be device-dependent?

Additionally, is there a way to check logs or debug information to identify potential errors causing this inconsistency? Any guidance would be appreciated.

Thanks in advance!

Anton Tananaeva month ago

Have you checked logs?

cristiandev9a month ago

Captura de Tela 2025-07-15 às 14.01.05.png
Yes, and the logs look correct. But in the event report search, it doesn't show sent either. And the command doesn't reach the device. Is there a security lock or something?

Anton Tananaeva month ago

What event are you expecting? If you see the command I'm logs, it means it was sent to the device.

cristiandev9a month ago

When sending the lock manually, “lock sent” appears in the reports, when sending systemically, especially for this device, it appears in the log but does not display this message in the event reports. Is there a simpler way to debug this?

Anton Tananaeva month ago

If it's in the logs, it means it was sent, as I said earlier.

Kaldeka month ago

Make sure you're not using UDP. Since there is no session teardown notification on UDP for traccar if the teardown is performed by a CGNAT gateway, Traccar assumes the packets made it.

Always use TCP, that way Traccar should never say the command made it if it actually didn't make it.

UDP is great for basic GPS tracking, but not recommended if you are sending commands via the IP connection.

cristiandev912 days ago

In this case, the tracker works on the TCP protocol. The difference between a direct block submission and automatic submission when triggering an event is the result below.
Captura de Tela 2025-08-04 às 11.31.53.png
Captura de Tela 2025-08-04 às 11.31.22.png