[Ovmsdev] Network manager / DNS issue

Mark Webb-Johnson mark at webb-johnson.net
Thu Jan 4 09:29:34 HKT 2018


I think this is a different case, and somewhat nasty. Most likely the DNS server is being set by the ppp stack, then overwritten by the wifi stack, then when wifi goes away the wifi dns servers are no longer available.

Perhaps easiest to disable DNS for both wifi and ppp, and then set manually to 8.8.8.8, 8.8.4.4 after each stack comes up? Or, try to retrieve the DHCP/PPP dns servers for each, store them, and allow them to be controlled by network manager?

I think this is in the category for network manager to handle. I will have a look at it.

Regards, Mark.

> On 4 Jan 2018, at 12:10 AM, Michael Balzer <dexter at expeedo.de> wrote:
> 
> Mark,
> 
> Am 03.01.2018 um 13:35 schrieb Mark Webb-Johnson:
>> I left OVMS v3 running on my desk, connected via the cellular network here in Malaysia. It saw a bunch of connection drops, but overall managed to reconnect
>> each time and be stable for 10 days. I think we’re close… Just need to deal with the edge case of modem rebooting and losing MUX connection.
> 
> Not sure if this is the edge case: if the connection is running over Wifi and the modem is idling, it will lose the ppp connection after some time. When it
> does, the v2 server will also disconnect, although it's still connected via Wifi. When the ppp link then gets back up, occasionally the server reconnect will
> fail continously with a DNS error:
> 
>> I (21780828) ovms-server-v2: Send MP-0 h394,0,RT-GPS-Log,293916,86400,51.30231476,7.39006519,326,197,0,1,119,-105,0,0,0,0,0,0,40,19000,-2000,1.000,1.000,0,0
> I (21780868) ovms-server-v2: Incoming Msg: MP-0 h394
> I (21780868) notify: Cleanup type data id 394
> I (21782818) simcom: PPP Connection disconnected
> I (21782818) simcom: PPP Connection disconnected
> I (21783008) simcom: Lost network connection (+PPP disconnect in NetMode)
> I (21783008) simcom: State: Enter NetLoss state
> I (21783008) gsm-ppp: Shutting down (hard)...
> I (21783008) events: Signal(system.modem.down)
> I (21783008) events: Signal(network.modem.down)
> I (21783008) events: Signal(network.reconfigured)
> I (21783008) ovms-server-v2: Network is down, so disconnect network connection
> E (21783008) ovms-server-v2: Status: Error: Disconnected from OVMS Server V2
> I (21788578) gsm-ppp: StatusCallBack: User Interrupt
> I (21788578) gsm-ppp: PPP connection has been closed
> I (21788578) events: Signal(system.modem.down)
> I (21792008) simcom: State timeout, transition to 5
> I (21792008) simcom: State: Enter NetWait state
> I (21792008) gsm-nmea: Startup
> I (21793018) ovms-server-v2: Connection is ovms.dexters-web.de:6867 TEST1/aeL1aN9j
> W (21793018) net: DNS lookup on ovms.dexters-web.de failed err=202
> E (21793028) ovms-server-v2: Status: Error: Cannot establish tcp/ip connection to server
> I (21796008) simcom: State: Enter NetStart state
> I (21797028) simcom: PPP Connection is ready to start
> I (21798008) simcom: State: Enter NetMode state
> I (21798008) gsm-ppp: Initialising...
> I (21800268) gsm-ppp: StatusCallBack: None
> I (21800268) gsm-ppp: status_cb: Connected
> I (21800268) gsm-ppp:    our_ipaddr  = 10.170.195.13
> I (21800268) gsm-ppp:    his_ipaddr  = 10.64.64.64
> I (21800268) gsm-ppp:    netmask     = 255.255.255.255
> I (21800268) gsm-ppp:    our6_ipaddr = ::
> I (21800268) events: Signal(system.modem.gotip)
> I (21800268) events: Signal(network.modem.up)
> I (21800268) events: Signal(network.up)
> I (21803028) ovms-server-v2: Connection is ovms.dexters-web.de:6867 TEST1/aeL1aN9j
> W (21816078) net: DNS lookup on ovms.dexters-web.de failed err=202
> E (21816078) ovms-server-v2: Status: Error: Cannot establish tcp/ip connection to server
> I (21826078) ovms-server-v2: Connection is ovms.dexters-web.de:6867 TEST1/aeL1aN9j
> W (21839118) net: DNS lookup on ovms.dexters-web.de failed err=202
> E (21839118) ovms-server-v2: Status: Error: Cannot establish tcp/ip connection to server
> I (21840008) notify: Raise text data: RT-GPS-Log,293916,86400,51.30231476,7.39006567,326,197,0,1,119,-101,0,0,0,0,0,0,40,19000,-2000,1.000,1.000,0,0
> I (21840008) events: Signal(notify.data)
> I (21849118) ovms-server-v2: Connection is ovms.dexters-web.de:6867 TEST1/aeL1aN9j
> W (21862138) net: DNS lookup on ovms.dexters-web.de failed err=202
> E (21862138) ovms-server-v2: Status: Error: Cannot establish tcp/ip connection to server
> 
> … and so on until manually restarting the Wifi or modem link.
> 
> Regards,
> Michael
> 
> -- 
> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
> 
> 
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev




More information about the OvmsDev mailing list