prusa3d / Prusa-Firmware-ESP32-Cam

Firmware for ESP32 Cam modules to be used in Prusa Connect
GNU General Public License v3.0
207 stars 20 forks source link

ESP32-CAM Locking up #42

Open janetpoague opened 5 months ago

janetpoague commented 5 months ago

First let me start by letting everyone know I am novice with the ESP32-CAM. Purchased 2 from Amazon. Espressif used to install firmware. Been experiencing lock ups. Several times had to reflash the firmware as no service ap started after power cycle. I can't quite put my finger on the specifics to make it die every time using same steps. Seems to be this scenario. Connect to the camera config page. Ping to service ip 192.168.0.1 -t. This is to watch when cam dies. Click start stream which starts the stream. Go back to camera config and click scan wi-fi for example. Camera loses pings. Happens in probably less then 2 min. Sometimes it drops 3 - 6 then reconnects but other times its dead. Rebooting camera by pulling usb cable and reconnecting does not bring it back in all cases. In this situation flashing firmware resurrects it. Over past 10 days probably flashed firmware 10 times. I am currently on 1.0.3. Few screen shots below of settings. Have experienced same with 2 other firmware version. Ideas recommendations?

image

image

johnyHV commented 5 months ago

Hello @janetpoague Is this problem still persisting?

janetpoague commented 5 months ago

Yes.  Still having the issue. Janet PoagueOn Jun 27, 2024, at 3:36 PM, Miroslav Pivovarsky @.***> wrote: Hello @janetpoague Is this problem still persisting?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

johnyHV commented 5 months ago

@janetpoague Can you try new FW version ? And send me logs from devices ?

janetpoague commented 4 months ago

Updated firmware yesterday. Had issues on my side. Did not realize when prusa xl when in an offline state they don't update the camera pics in connect. Had to reformat the memory card for the logs too. It all of a sudden said it was not inserted. Possibly it was like that post fw upgrade and did not notice. Card being detected after reformat. Once I got passed that seemed to be working ok for a couple of hours. Was not getting any lock ups (meaning going to different pages - camera - wifi - authentication - system) on the camera config page (192.168.0.1) until I clicked "start stream". Probably should have left well enough alone. The stream worked for maybe less than a minute then intermittent ping drops to 192.68.0.1 and navigation between camera - wifi - authentication - system did not work. Page mostly locked up. Rebooted a few times. Now I'm getting the error below. (partial log included too) No idea what it means. Have power cycled camera probably 1/2 dozen times today. The strange lock up behavior after clicking the start stream happened in the prior fw version too. Only way that seemed to stabilize it was to reload firmware. Going to let this one sit all night and see what it does tomorrow.

I have another camera. Same model. Going to put the new firmware upgrade on it shortly. I will not click the start stream and see how it behaves. Can report back in a later email.

Connection failed to domain! Error: -32512 - SSL - Memory allocation failed : 0 ,BA:Backend unavailable

2024-07-02_22-00-58 - Taking photo... 2024-07-02_22-00-58 - The picture has been saved. Size: 49326 bytes, Photo resolution: 1024 x 768 2024-07-02_22-00-58 - Photo OK! 0 2024-07-02_22-00-58 - Exif header OK! Len: 310 2024-07-02_22-00-58 - Start sending photo to prusaconnect 2024-07-02_22-00-58 - Sending Photo to PrusaConnect, 49616 bytes 2024-07-02_22-00-58 - Connetion failed to domain! Error: -32512 - SSL

Janet Poague

On Sun, Jun 30, 2024 at 5:07 AM Miroslav Pivovarsky < @.***> wrote:

@janetpoague https://github.com/janetpoague Can you try new FW version ? And send me logs from devices ?

— Reply to this email directly, view it on GitHub https://github.com/prusa3d/Prusa-Firmware-ESP32-Cam/issues/42#issuecomment-2198490548, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOL4X6NUPX76GYKA6WYRXJTZJ7DERAVCNFSM6AAAAABI3L6UDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJYGQ4TANJUHA . You are receiving this because you were mentioned.Message ID: @.***>

johnyHV commented 3 months ago

Hello @janetpoague . Yes, stream funcionality is too complicated in the FW. The stream is using too many hardware resources, and sometimes the RAM can run out when uploading photos to PrusaConnect while simultaneously sending photos via the stream. Are you still experiencing this issue?

muesli commented 1 month ago

Maybe the uploading to PrusaConnect could be paused while an mjpeg stream is active?

johnyHV commented 1 week ago

@muesli yes, this is one option how to solved this issue.

Morcegolas commented 1 week ago

Hello, I've this problem but I don't activate streaming. I bought 5 cameras on AliExpress at least one year ago, and had this problem on all of them, thought it was a problem with the cheap cameras and moved on. Yesterday I bought a new camera with WiFi antena from Amazon, exact same problem. I'm using my Mac and Arduino IDE to flash it. I'm only adding my WiFi name and pass, add the camera token, and change the resolution to 800600 or 1024768 and nothing else. I cannot understand what I'm missing here :/