OVMS > wifi mode client XXXStarting WIFI as a client to XXX……I (337100) ssh: Launching SSH ServerV (338830) ssh: Event MG_EV_ACCEPT conn 0x3ffee8b4, data 0x3ffee8ccV (338840) ssh: Event MG_EV_RECV conn 0x3ffee8b4, data received 21V (338840) ssh: Event MG_EV_SEND conn 0x3ffee8b4, data 0x3ffe5d90V (338840) ssh: Event MG_EV_RECV conn 0x3ffee8b4, data received 1024V (338850) ssh: Event MG_EV_RECV conn 0x3ffee8b4, data received 408…OVMS > wifi mode offStopping wifi station...I (350580) ovms-mdns: Stopping MDNS serviceI (350580) wifi: state: run -> init (0)I (350590) wifi: pm stop, total sleep time: 0/11930449I (350590) wifi: n:11 0, o:11 0, ap:255 255, sta:11 0, prof:1I (350600) wifi: flush txqI (350600) wifi: stop sw txqI (350600) wifi: lmac stop hw txqI (350600) wifi: Deinit lldesc rx mblock:4I (351340) webserver: Stopping Web ServerI (351340) ssh: Stopping SSH ServerV (351540) ssh: Event MG_EV_CLOSE conn 0x3ffee8b4, data 0x0V (351540) ssh: Event MG_EV_CLOSE conn 0x3ffeb468, data 0x0I (357570) event: station ip lost
OVMS > wifi mode offStopping wifi station...I (34171) events: Signal(system.wifi.down)I (34171) events: Signal(network.wifi.down)I (34171) ovms-mdns: Stopping MDNS serviceI (34171) events: Signal(network.reconfigured)I (34171) events: Signal(network.down)I (34171) wifi: state: run -> init (0)I (34181) wifi: pm stop, total sleep time: 0/9603569I (34181) wifi: n:11 0, o:11 0, ap:255 255, sta:11 0, prof:1I (34191) wifi: flush txqI (34191) wifi: stop sw txqI (34191) wifi: lmac stop hw txqI (34191) wifi: Deinit lldesc rx mblock:4I (34191) events: Signal(system.wifi.sta.disconnected)I (34191) events: Signal(system.wifi.sta.stop)I (35131) events: Signal(network.mgr.stop)I (35131) webserver: Stopping Web ServerI (35131) ssh: Stopping SSH ServerV (35331) ssh: Event MG_EV_CLOSE conn 0x3ffec138, data 0x0V (35331) ssh: Event MG_EV_CLOSE conn 0x3ffeb768, data 0x0
On 29 Jan 2018, at 2:13 AM, Stephen Casner <casner@acm.org> wrote:I handled wifi shutdowns cleanly when I first implemented telnet and
ssh as their own tasks. Now that they are under Mongoose, it is out
of my control. The socket is owned by the Mongoose code.
-- Steve
On Sun, 28 Jan 2018, Michael Balzer wrote:I've begun working on the webserver and noticed something that may_______________________________________________
be correlated to this: sockets don't get closed when losing the
connection. The effect is visible on both web and telnet server (ssh
not tested). To reproduce, switch the Wifi network with an open
connection, the port will not be available until timeout.
Regards,
Michael
OvmsDev mailing list
OvmsDev@lists.teslaclub.hk
http://lists.teslaclub.hk/mailman/listinfo/ovmsdev