Devices going constantly offline and online

george10 days ago

Happy New Year to everyone, does anyone have any idea why the Teltonika fmb 130 displaying continuously online and offline?
logs traccar.GIF

Anton Tananaev10 days ago

Do you see anything wrong with your screenshot?

george9 days ago

You are right about the screenshot

traccar log.png

Anton Tananaev9 days ago

Most likely that's the way your device is configured.

george9 days ago

Thank you very much Anton, I will check the teltonika configuration .
I would appreciate it if someone who uses Teltonika could guide me on what to look for.

Kaldek9 days ago

Hi George, I can help as I'm using teltonika devices exclusively. Can you export a config file from Teltonika Configurator (removing all passwords and keys first) and link it here via Onedrive or Google drive?

I also recommend Wireshark on your server side to monitor what's happening at the IP layer. I've noticed that my SIM provider has been tearing down connections aggressively lately.

george8 days ago

Hi Kaldek , I appreciate your time. Here is the link where you can download the compressed configuration I named 'test.rar' https://playtransfer.playinstore.gr/files/test.rar/

Kaldek8 days ago

Cheers George, I just woke up here so I'll take a look now.

Kaldek8 days ago

OK I've had a look and your settings are correct for keeping the tracker communicating regularly:

  • You're using TCP
  • Your data acquisition settings are good
  • Your send period is good

My assessment is that your mobile provider is aggressively tearing down what it considers stale TCP connections. We can test that though! Go into your configuration and change the GPRS-->Records Settings to add a Network Ping Timeout of 5 seconds. This will force the Teltonika tracker to keep sending messages with the string "FF" to the Traccar server, holding the TCP connection open.

GPRS keepalive.png

Test like that for a day or so and let me know. What to do next depends on how it behaves with this setting!

george8 days ago

I followed your suggestion Kaldek and set the Network Ping Timeout to 5 seconds, and I noticed a huge improvement in the connections/disconnections. Specifically, on a 20 km route with around 18-19 disconnections, now it has dropped to 2-3

Kaldek7 days ago

OK so this issue is likely outside of your control and is caused by the CGNAT gateway timeouts of your provider. You have a couple of options, really:

  • Keep the Network Ping Timeout and deal with the additional data consumption of all the additional TCP overheads
  • Move to a different SIM provider

Regarding the data consumption, it may or may not be an issue for you. The SIM cards I use (for my business) can easily handle 10MB per month without costing me any additional fees beyond what I budget for them, with my SIM cards effectively costing me about 20c per month, per SIM. Someone would have to be doing a LOT of driving to consume 10MB per month, even with the Network Ping Timeout. Make sure you configure your teltonika devices to report in much less frequently when not moving though.

As for choosing a different SIM provider, the CGNAT gateway is operated at layer 3 (the IP network) rather than the mobile network layer. For example, my SIM cards are global but use the Telstra network here in Australia. If I buy SIM cards from Telstra, their CGNAT settings are extremely aggressive. However my global SIM cards from TruPhone, which use the Telstra 4G network, have very different IP addresses and CGNAT settings and I don't need the Network Ping Timeout.

george6 days ago

Thank you very much for the time you dedicated to sharing your knowledge. I will try with a card that is not behind CGNAT, which has a public IP from a different provider

Kaldek6 days ago

You will find that all providers use CGNAT because there are just too many devices in use, and IPv4 addressing has been exhausted. Nobody is going to offer public IP addresses on mobile devices.

It's the world we live in, and we have to work around the problem.