unknown status

dennis 5 years ago

How it it possible to instead of going to Unknown after 5 minutes no message to just go Offline?
Maybe for a specific device or all makes no difference to me, i only have one device that dont do a disconnect.

Anton Tananaev 5 years ago

It depends on the protocol.

dennis 5 years ago

In this case h02
I have multiple devices of them but one is a st901m and the M version don’t send a disconnect. It’s just gone

Anton Tananaev 5 years ago

If it's TCP based, you can set connection timeout to 5 minutes.

dennis 5 years ago

So this should do the trick?

<entry key='h02.timeout'>300</entry>
Anton Tananaev 5 years ago

Yes.

Track-trace 5 years ago

Question,
Actually i was also looking for this idear.

would this best be set according to the link keep update ? My devices send link keep every 7 minutes.
So in my case i would for example set <entry key='myprotokol.timeout'>480</entry>

To show it offline if the device does not send the link keep within 8 minutes.. Correct ?

Anton Tananaev 5 years ago

Makes sense to me.

dennis 5 years ago

Oh! My device send every 10 sec a message.
It go’s to sleep after 5 minutes no movement.

So if I put like 60 sec instead of 300 for the timeout this would be ideal.

Track-trace 5 years ago

@dennis,

Your idear does not seem logic to me. Since when you set

<entry key='h02.timeout'>60</entry> 

Your device would show offline after 60 seconds when its not moving.
But actually your device would still be online and just not moving.

dennis 5 years ago

It sends always 10 sec interval a message to Traccar. Moving or not.

The device itself go’s to sleep after 5 min no movement/shocks and then stops sending messages to Traccar

Track-trace 5 years ago

Ok i see, thats a different situation. You where talking about a position update. I will use the timeout setting for the Link keep that is send from my device.

dennis 5 years ago

That won’t work with this solution. This will only terminate the “spook” connection that’s dead on the server.

Track-trace 5 years ago

I dont understand what you are writing.. Since Anton already stated that my conclusion was correct.