<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I found this patch from Espressif:<div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><a href="https://github.com/espressif/esp-idf/pull/1100/commits/6dd48547adbdaf89e43b680dc027e5aa786d9c0e" class="">https://github.com/espressif/esp-idf/pull/1100/commits/6dd48547adbdaf89e43b680dc027e5aa786d9c0e</a></div></blockquote><div class=""><div><br class=""></div><div>They had only applied it to ‘master’, and not the ‘2.1’ branch we use. It seems to resolve the problem.</div><div><br class=""></div><div>I also made some changes to the ovms_server_v2 to try to tear down the connection _before_ the ppp link goes down (but I now think these are unnecessary, although probably beneficial).</div><div><br class=""></div><div>Can you guys try updating both your ESP IDF (based on open vehicles 2.1 repo) and ovms v3 firmware. See if it is more reliable? I will leave mine running now, to see if there is any improvement for long-lived connections.</div><div><br class=""></div><div>Regards, Mark.</div><div><br class=""><blockquote type="cite" class=""><div class="">On 19 Dec 2017, at 5:14 AM, Greg D. <<a href="mailto:gregd2350@gmail.com" class="">gregd2350@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi folks,<br class=""><br class="">I left my module running with the modem connected (WiFi client off) for<br class="">a couple of days. V2 server configured and connected, but the phone<br class="">client was not running. The module was sitting on my desk (not in a<br class="">car), powered from the high-power USB port on my laptop. It was<br class="">blinking happily last night when I went to bed, but dark this morning. <br class="">Apparently had crashed and rebooted during the night. <br class=""><br class="">Here's the trace-back from the screen. Looks like a link drop was the<br class="">trigger, or perhaps the result of something else.<br class=""><br class="">Hope this helps,<br class=""><br class="">Greg<br class=""><br class=""><br class=""><br class="">I (129194054) ovms-server-v2: Send MP-0<br class="">S47,K,0,0,stopped,standard,0,0,0,0,0,0,0,21,0,0,0,0,0.00,0,0,0,0,-1,0,0,0,0,0,0,0,0.00,0.00,0<br class="">I (129194064) ovms-server-v2: Send MP-0<br class="">D0,0,5,0,0,0,0,0,0,129191,0,0,0,0,0,0,0,0,0,0<br class="">I (129795064) ovms-server-v2: Send MP-0<br class="">S47,K,0,0,stopped,standard,0,0,0,0,0,0,0,21,0,0,0,0,0.00,0,0,0,0,-1,0,0,0,0,0,0,0,0.00,0.00,0<br class="">I (129795074) ovms-server-v2: Send MP-0<br class="">D0,0,5,0,0,0,0,0,0,129792,0,0,0,0,0,0,0,0,0,0<br class="">I (130030624) simcom: CREG Network Registration: Searching<br class="">I (130031414) simcom: Lost network connection (NetworkRegistration in<br class="">NetMode)<br class="">I (130031414) simcom: State: Enter NetLosGuru Meditation Error of type<br class="">LoadProhibited occurred on core 0. Exception was unhandled.<br class="">Register<br class="">dump: <br class=""><br class="">PC : 0x4018f959 PS : 0x00060830 A0 : 0x8018a5d8 <br class="">A1 :<br class="">0x3ffd80f0 <br class=""><br class="">0x4018f959: ip4_route at<br class="">/home/greg/esp/esp-idf/components/lwip/core/ipv4/ip4.c:223 (discriminator 2)<br class=""><br class="">A2 : 0x0000f01d A3 : 0x00000000 A4 : 0x00000000 <br class="">A5 : 0xfffffffc <br class="">A6 : 0x3fff2c8c A7 : 0x00000014 A8 : 0x00000000 <br class="">A9 : 0x00000001 <br class="">A10 : 0x502b34ca A11 : 0x00000001 A12 : 0x3f42ea90 <br class="">A13 : 0x3f42eaa4 <br class="">A14 : 0x3ffda120 A15 : 0x00000000 SAR : 0x0000000b <br class="">EXCCAUSE: 0x0000001c <br class="">EXCVADDR: 0x0000f0d2 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 <br class="">LCOUNT : 0xffffffff <br class=""><br class="">Backtrace: 0x4018f959:0x3ffd80f0 0x4018a5d5:0x3ffd8110<br class="">0x4018d3eb:0x3ffd8150 0x4018d40d:0x3ffd8180 0x4018d4ae:0x3ffd81a0<br class="">0x4018d90c:0x3ffd81c0 0x4018e46a:0x3ffd81e0 0x4018e4ab:0x3ffd8200<br class="">0x40196261:0x3ffd8220 0x4019882d:0x3ffd8240 0x40198874:0x3ffd8260<br class="">0x40199e9d:0x3ffd8280 0x40198764:0x3ffd82a0 0x4019a8f2:0x3ffd82c0<br class="">0x4019a92e:0x3ffd82e0 0x40196f25:0x3ffd8300 0x40199e9d:0x3ffd8320<br class="">0x40197e68:0x3ffd8340 0x40196149:0x3ffd8360 0x401b470c:0x3ffd8380<br class="">0x401825ad:0x3ffd83a0<br class="">0x4018f959: ip4_route at<br class="">/home/greg/esp/esp-idf/components/lwip/core/ipv4/ip4.c:223 (discriminator 2)<br class=""><br class="">0x4018a5d5: tcp_rst at<br class="">/home/greg/esp/esp-idf/components/lwip/core/tcp_out.c:1336 (discriminator 4)<br class=""><br class="">0x4018d3eb: tcp_abandon at<br class="">/home/greg/esp/esp-idf/components/lwip/core/tcp.c:1630<br class=""><br class="">0x4018d40d: tcp_abort at<br class="">/home/greg/esp/esp-idf/components/lwip/core/tcp.c:1630<br class=""><br class="">0x4018d4ae: tcp_netif_ipv4_addr_changed_pcblist at<br class="">/home/greg/esp/esp-idf/components/lwip/core/tcp.c:1630<br class=""><br class="">0x4018d90c: tcp_netif_ipv4_addr_changed at<br class="">/home/greg/esp/esp-idf/components/lwip/core/tcp.c:1947<br class=""><br class="">0x4018e46a: netif_set_ipaddr at<br class="">/home/greg/esp/esp-idf/components/lwip/core/netif.c:452<br class=""><br class="">0x4018e4ab: netif_set_addr at<br class="">/home/greg/esp/esp-idf/components/lwip/core/netif.c:330<br class=""><br class="">0x40196261: cifaddr at<br class="">/home/greg/esp/esp-idf/components/lwip/netif/ppp/ppp.c:704<br class=""><br class="">0x4019882d: ipcp_clear_addrs at<br class="">/home/greg/esp/esp-idf/components/lwip/netif/ppp/ipcp.c:2192<br class=""><br class="">0x40198874: ipcp_down at<br class="">/home/greg/esp/esp-idf/components/lwip/netif/ppp/ipcp.c:2156<br class=""><br class="">0x40199e9d: fsm_lowerdown at<br class="">/home/greg/esp/esp-idf/components/lwip/netif/ppp/fsm.c:146<br class=""><br class="">0x40198764: ipcp_lowerdown at<br class="">/home/greg/esp/esp-idf/components/lwip/netif/ppp/ipcp.c:687<br class=""><br class="">0x4019a8f2: upper_layers_down at<br class="">/home/greg/esp/esp-idf/components/lwip/netif/ppp/auth.c:715<br class=""><br class="">0x4019a92e: link_down at<br class="">/home/greg/esp/esp-idf/components/lwip/netif/ppp/auth.c:701<br class=""><br class="">0x40196f25: lcp_down at<br class="">/home/greg/esp/esp-idf/components/lwip/netif/ppp/lcp.c:2341<br class=""><br class="">0x40199e9d: fsm_lowerdown at<br class="">/home/greg/esp/esp-idf/components/lwip/netif/ppp/fsm.c:146<br class=""><br class="">0x40197e68: lcp_lowerdown at<br class="">/home/greg/esp/esp-idf/components/lwip/netif/ppp/lcp.c:485<br class=""><br class="">0x40196149: ppp_close at<br class="">/home/greg/esp/esp-idf/components/lwip/netif/ppp/ppp.c:704<br class=""><br class="">0x401b470c: pppapi_do_ppp_close at<br class="">/home/greg/esp/esp-idf/components/lwip/api/pppapi.c:355<br class=""><br class="">0x401825ad: tcpip_thread at<br class="">/home/greg/esp/esp-idf/components/lwip/api/tcpip.c:474<br class=""><br class=""><br class="">Rebooting...<br class=""><br class="">_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.teslaclub.hk" class="">OvmsDev@lists.teslaclub.hk</a><br class="">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br class=""></div></div></blockquote></div><br class=""></div></body></html>