<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div>I've enabled tcp keepalives on the live <a href="http://tmc.openvehicles.com">tmc.openvehicles.com</a>, at 4min intervals. It appears to be 80 bytes (40 in 40 out) every four minutes of no other data.<div><br></div><div>Looking through the logs, this appears to be affecting at least 3 mobile operators (T-mobile USA, AT&T USA in one location, and a Guam provider). Hopefully the keepalives will resolve it.</div><div><br></div><div>I could enable it selectively on individual cars, but thought it better to globally enable it for the moment to see how things behave. I suspect that it is affecting more cars than I can easily see.</div><div><br></div><div>I don't anticipate any problems, but if anyone sees any issues, please let me know.</div><div><br></div><div>Regards, Mark.<br><div><br></div><div><div><div>On 19 May, 2012, at 11:49 PM, Mark Webb-Johnson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>I've been working on a weird problem with a Tesla in Guam. Yep, they have Teslas in Guam, apparently.</div><div><br></div><div>Anyway, the problem is the user gets weird app behavior with the car disconnected a lot of the time.</div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>It seems that the cellular providers are killing the OVMS TCP/IP connection after ten minutes (or so).</div><div><br></div><div>A google search came up with this:</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><a href="http://web.eecs.umich.edu/~zmao/Papers/netpiculet.pdf">http://web.eecs.umich.edu/~zmao/Papers/netpiculet.pdf</a></div><div>(search for "10 minutes" in the document to find the relevant comment)</div></blockquote><br><div>This seems really dumb, but possible I guess.</div><div><br></div><div>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.</div><div><br></div><div>Anyone heard of this?</div><div><br></div><div>Regards, Mark.</div><div><br></div></div>_______________________________________________<br>OvmsDev mailing list<br><a href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br>http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br></blockquote></div><br></div></div></body></html>