https://www.traccar.org/configuration-file/
Did you check protocol timeout and status timeout which can be set in the config file ?
Configured for now
<entry key='status.timeout'>60</entry>
<entry key='t55.timeout'>20</entry>
I'll be monitoring the behavior for a while.
So you set status time out to 1 minute ? value is in seconds.
And protocol time out to 20 seconds ? value is in seconds.
Status timeout is global. You can't set it per protocol.
If your device goes offline in 5 seconds, it probably means it disconnects from the server. Timeout won't help with that.
I got more strange behaviour with the settings above: the green "Online" for 10 seconds and then the red "few seconds ago" for next 20 seconds. I have no idea how to explain it.
I will try
<entry key='status.timeout'>120</entry>
<entry key='t55.timeout'>60</entry>
Now I see the green "Online" for 10 seconds and the red "few seconds ago" for next 30 seconds.
Is it possible that the status goes "Offline" when the protocol decoder receives a message, that cannot be decoded?
For example my GNSS sends NMEA messages GSA and GSV with the satellites states each 30 and 60 seconds.
So the device is online, it is connected. However, unsupported NMEA messages should not be the reason for setting the status to "Offline".
I think this behavior must be fixed.
You should check the logs to understand why it goes offline.
I have 2 devices on the same server - Traccar client (port 5055) and T55 (port 5005).
I see the green "Online" status for the Traccar client at least for 10 minutes after the last message.
It seems the status timeout for the Traccar client is 10 minutes.
T55 device sends messages each 10 seconds. I see the green "Online" status for 5 seconds and then the red status "few seconds ago" for next 5 seconds. It seems the status timeout for T55 is 5 seconds.
So status timeouts are different per protocol - that's a fact.
But I did not find how to configure it.
Is it possible to reduce the status timeout for the Traccar client and increase the status timeout for T55 somehow?