-
Notifications
You must be signed in to change notification settings - Fork 355
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
Stream wont reliably start in AP mode without serial connection. #153
Comments
Interesting; I'm 99% certain there is no code related reason for this. The code here does not care whether there is anything receiving the serial output, none of my module have serial connected by default when in actual use. |
Not sure if this info is relevant (i.e. memory related?) or not: 3 SSID/password combo's were supplied in a myconfig.h . Testing was done with a 2.1A wall plug, an Anker 20,000 mAh powercore battery bank, and my laptop's USB3 port (through an ftdi adapter). Tests were done in a park in a small town but many SSID's are 'visible' from this park. Also to note: still images worked great the entire time but the "stream" functionality did not (displayed missing image icon) in both chrome and firefox on my linux laptop and chrome on my android. Thank you very much for your time and if you have any ideas for me to try please send them along. |
I'm experiencing the same behavior, but it is not related to no serial communication, as I can reproduce it with serial connection as well. I have not yet further investigated it, but here are my observations. I think that already might lead into the right direction: I compiled the project as is, i.e. with the default settings and uploaded it to the ESP32-CAM (AI Thinker). I then connected the CAM to seria portl and activated the debug output. I'll have to look into the code but at this point I think it's rather a javascript than a c++/esp32 - problem. I'll keep You updated Regards Frank |
This all comes back to the fact that the code, as it, only supports a single connection (stream). If anything (eg over-eager browsers that refuse to drop connections even after you close the tab) keeps the connection open, you will not be able to open it from any other session/device/tab. You can check whether the camera is currently serving a stream on the The 'Start' and 'Stop' stream buttons in the browser simply start and stop the javascript that requests stream frames in the browser. They do not talk back to the camera itself. The camera is entirely dumb and simply serves a stream to the first client that requests one until that client drops the connection. Multi-session/client streaming #51 is high on the development priorities, but is non-trivial, and will have to wait for me to have some free time. In the meantime a number of other projects have implemented it, and may be more suitable. |
Have tested with 2 modules, different cables and power sources. Works great connected to external AP. Works great with internal ap mode if the gnd tx and rx are connected to ftdi. Only gnd connected to ftdi does not work. Have no idea where to start debugging this.
The text was updated successfully, but these errors were encountered: