[Ovmsdev] Aggressive cellular network timeouts

Mark Webb-Johnson mark at webb-johnson.net
Sat May 19 23:49:04 HKT 2012

I've been working on a weird problem with a Tesla in Guam. Yep, they have Teslas in Guam, apparently.

Anyway, the problem is the user gets weird app behavior with the car disconnected a lot of the time.

A lot of hunting later, and I find his car reconnects regularly every ten minutes. The old connection is still open to the server (not torn down), and a new connection appears almost exactly ten minutes after the first one. Not an issue for the server (as it interprets that correctly and kicks off the first connection), but uses up bandwidth anyway and means the car is often disconnected (especially if you contact the car in the top half of the ten minute window.

More hunting, and I find 2 others cars with similar behavior. I'm chasing down the owners to find what cellular provider they use to see if there is anything in common.

It seems that the cellular providers are killing the OVMS TCP/IP connection after ten minutes (or so).

A google search came up with this:

(search for "10 minutes" in the document to find the relevant comment)

This seems really dumb, but possible I guess.

The solution is to be PING the car from the server, more frequently, but I hate using more bandwidth. Perhaps I can come up with an adaptive algorithm to do this only for cars that connect without disconnection of the previous connection a lot.

Anyone heard of this?

Regards, Mark.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20120519/26e6dc3e/attachment.htm>

More information about the OvmsDev mailing list