Replies: 2 comments 4 replies
-
There is some information in this ESP doc. My guess is that the AP is so busy that it stops sending beacon messages and the client aborts the link. |
Beta Was this translation helpful? Give feedback.
-
Did the following experiment: Minimal example on ESPC3: Wifi, Microdot, 1 large file which can be downloaded.
Further experimentation indicates that if microdot tries to send multiple Responses while transmission takes a while due to file size the error is far more likely. Unsure if this is due to the AP stopping beacons or some ESP internal problem. As a quick workaround I added a lock forcing microdot to handle the requests one by one including time needed for transmission. Not nice but improves stability significantly. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
have an application microdot webserver running on MicroPython v1.22.2 on 2024-02-22; ESP32C3 module with ESP32C3.
The application provides both a html page and rest api. When accessing only the api (only tiny data) runs rock solid.
However very frequently when a browser reloads the whole page (some js and html files) the application fails in the following way:
microdot.py", line 641, in write
File "asyncio/stream.py", line 1, in stream_awrite
File "asyncio/stream.py", line 1, in write
OSError: [Errno 113] ECONNABORTED
After this I can see that wifi isconnected() reports False and needs a few secs to reconnect.
Tried on different APs behavior is same.
Anyone seen behavior like this?
edit: osdebug shows:I (72530) wifi:bcn_timeout,ap_probe_send_start
I (75030) wifi:ap_probe_send over, resett wifi status to disassoc
I (75030) wifi:state: run -> init (c800)
I (75030) wifi:pm stop, total sleep time: 31598179 us / 72447704 us
I (75030) wifi:idx
I (75030) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (75030) wifi: STA_DISCONNECTED, reason:200:beacon timeout
I (75040) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (75040) wifi:state: init -> auth (b0)
I (75040) wifi:state: auth -> assoc (0)
Beta Was this translation helpful? Give feedback.
All reactions