Device goes offline



  • I don't know if this is related to wifi power saving but my devices go offline and don't respond to pings, ftp requests or requests sent to a simple http server, there are no errors it just goes offline.

    Even when it begins replying again to pings, the http requests are not getting through, I guess the socket died silently and is not able to resume it's lost connection.

    The only way to resume normal state is a restart.

    Anyone else experience this ??



  • Hi, this when it is running as a server listening on a socket:

    Here's the log when it started responding again:

    I (570808) wifi: bcn_timout,ap_probe_send_start
    I (573309) wifi: ap_probe_send over, resett wifi status to disassoc
    I (573310) wifi: state: run -> init (1)
    I (573310) wifi: n:6 0, o:6 0, ap:255 255, sta:6 0, prof:6
    I (573313) wifi: pm stop, total sleep time: 31991844/522829466
    
    I (573590) wifi: n:1 0, o:6 0, ap:255 255, sta:1 0, prof:6
    I (573591) wifi: state: init -> auth (b0)
    I (573710) wifi: state: auth -> assoc (0)
    I (573716) wifi: state: assoc -> run (10)
    I (573896) wifi: connected with wlan@xxx, channel 1
    I (583716) wifi: pm start, type:1
    
    I (1249950) wifi: state: run -> auth (7c0)
    I (1249951) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
    I (1249951) wifi: pm stop, total sleep time: 20393547/645746648
    
    I (1250075) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
    I (1250076) wifi: state: auth -> auth (b0)
    I (1250158) wifi: state: auth -> assoc (0)
    I (1250162) wifi: state: assoc -> run (10)
    I (1250569) wifi: connected with wlan@xxx, channel 1
    I (1260162) wifi: pm start, type:1
    

    I don't know if I am reading this correctly but it looks like it put itself to sleep and disassociated itself from the wireless ??



  • @crankshaft
    never in STA mode (my wipy work now near 1 week and send data to server
    but sometimes in AP mode it die :( and not respond


Log in to reply
 

Pycom on Twitter