-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors using ap mode. #5
Comments
i use AP mode and have no issues but i have not testined v1.18. can you try v1.17 or really anything earlier to see if it's still an issue? What are you using to connect to the AP? e.g. phone, operating system, browser, etc. I have real issues with iOS devices and generally don't use them. They are very user friendly but not dev friendly. Something else to try is to just connect to the AP with the device and see if you eventually disconnect. basically im not sure, and cannot test with v1.18 right now to rule it out, so at a minimum it would be v. helpful to try a diff version. |
Hi @marcidy
Yes, sure. Tomorrow I will to do all that tests, on MicroPython 1.17, 1.16 and 1.15 to check if there are differents results/behaviour.
ESP32-S3 running this project in b) Chrome (default version) on Smartphone MotoG 6 Plus running Android 9;
I'm sorry, I did not understand very well what you proposed above, Who are the AP and device? AP -> ESP32-S3 running in If i got it wrong, please tell me exactly how you would like that I run the test.
No problem, I will return to you with tests using the MicroPython versions < 1.18. Thank you very much! |
That's all correct, thank you for the updates
…On Thu, May 19, 2022, 17:49 beyonlo ***@***.***> wrote:
Hi @marcidy <https://github.com/marcidy>
i use AP mode and have no issues but i have not testined v1.18. can you
try v1.17 or really anything earlier to see if it's still an issue?
Yes, sure. Tomorrow I will to do all that tests, on MicroPython 1.17, 1.16
and 1.15 to check if there are differents results/behaviour.
What are you using to connect to the AP? e.g. phone, operating system,
browser, etc. I have real issues with iOS devices and generally don't use
them. They are very user friendly but not dev friendly.
ESP32-S3 running this project in ap mode (192.168.4.1) with this clients
connected:
a) Chromium Version 101.0.4951.64 (Official Build) snap (64-bit) on the
Notebook running Ubuntu 20.4;
a.1) IP received from ap: 192.168.4.3.
b) Chrome (default version) on Smartphone MotoG 6 Plus running Android 9;
b.1) IP received from ap: 192.168.4.2.
Something else to try is to just connect to the *AP* with the *device*
and see if you eventually disconnect.
I'm sorry, I did not understand very well what you proposed above, Who is
the *AP* and *device*?
*AP* -> ESP32-S3 running in AP mode?
*device* -> a smartphone connected to ESP32-S3 running AP mode?
If yes, I did that, and smartphone after connected to ESP32-S3 in AP mode,
WiFi never disconnect. I was running a ping in smartphone reaching to
ESP32-S3 ap (192.168.4.1) and ping never stopped.
If i got it wrong, please tell me exactly how you would like that I run
the test.
basically im not sure, and cannot test with v1.18 right now to rule it
out, so at a minimum it would be v. helpful to try a diff version.
No problem, I will return to you with tests using the MicroPython versions
< 1.18.
Thank you very much!
—
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMTCQFNWN5V7CHD6QPZCPDVK3OQFANCNFSM5WNWIWCA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@marcidy Hello! I did that tests on MicroPython versions 1.15, 1.16, 1.17 and 1.18, using the ESP32 and all versions show erros on The mostly common error (Error 1) is very easy to reproduce. What do you need to do is just to connect to ESP32 running Error 1:
Others errors happen without much effort to reproduce, doing: stop/start fake interface, send messages, reload page, sometimes using more than one device connected, etc. Error 2:
Error 3:
|
@marcidy Hello! Did you take a look about that errors on Thank you in advance! |
Hello @marcidy Sorry, I think you've been busy lately. But I would like to know if you can to manage to check these errors? Thank you in advance! |
Error 1 Error 2 will occur when the network connection is lost, dropped. I can't really control the networking. I can't take responsibility for making wifi connections robust. I can't tell WHY the connections drop, for example. Dealing with networking issues is outside the scope of this project, though, and i cannot help for hardware i dont have. Error 3 looks like it was a malformed request line. That probably killed the task but another one should have launched on the next connection. Did the webserver still work? I suspect it did, i don't think i need to handle every error like that. I threw a try/except around it and closed the socket on the new implementation. I have re-written a significant amount to turn this repo more into an example and split off the tools. It's not 100% don't yet, but you can look at the work in progress in the "wss" branch. There's an example of more robust making of a wifi connection on controllers.py on that branch. The actual websockets and http server live in different repos now, noted in the README on the wss branch. I'm going to make those sub-modules of this repo so you wont have to manually copy them into the example, but they will live separately as individual tools. I should finish that tomorrow and this repo will look different. The tools are the same, though i added some tests for the websockets. |
Hello @marcidy
Yes, the HTTP Server still working when all that problems happen, just the WebSocket stop.
That's a great news :) |
Hmm, ok i thought it was the http server throwing the error. Well, i protected that one anyways. I see it's actually the same issue in the websocket server. It's also wrong it crashed the whole thing rather than just that connection. I'll protect the request parsing and see if I can rework it so errors don't take down the server. FYI The repo is now up to date on the main branch. It's a significant number of changes, and i plan to add better documentation, probably targetting readthedocs. |
Hi @marcidy
Now thinking better about it, I'm not sure if it is the WebSocket or the HTTP Server - was a long time ago. I just remember that something stopped to works and was need to restart the entire example. But I can to test again!
Great, I will to test this new version! Thank you very much! |
Hello, all works fine when used by
net
(sta
) mode - the default mode. But in theap
mode, sometimes some errors happen. I can't tell you exactly how to reproduce that errors because sometimes works and sometimes do not works.I just used
ap
mode in this way:Ps: sometimes using more than one browser simultaneously, but the same test was done with
net
(sta
) mode and no errors.Error test 1:
Error test 2:
I'm using ESP32-S3 with MicroPython 1.18.
Any idea what is the problem?
Thank you!
The text was updated successfully, but these errors were encountered: