I have a dim recollection of reading somewhere, that the 5 volt output is disconnected when a battery is attached, but only take that as a clue, not gospel.
I’ve attached a battery to the Seeed ESP32S3 Sense, and observed it being charged (considerable camera-expansion heating) with the red LED blinking until full charge.
Then I disconnected the USB cable, and expected the WiFi Camera Server to continue running by being powered from the battery. It didn’t.
You are correct. The WiFi Camera Server does continue to run after the USB-C is disconnected and the battery still connected. But, the video freezes. The settings menu remains active, however. I can still start and stop the stream, but then, there is no video without the USB-C.
With regard to your suggestion:
while(!Serial); //When the serial port is opened, the program starts to execute.
Are you suggesting that I add a while loop to the sketch?
After sleeping on your suggestion, I believe you are intimating that the cause of the Camera_HTTP_Server code freezing when the USB-C cable is disconnected with the battery installed is a result of the Seeed ESP32S3 sense waiting for the serial port. So, to overcome this, the ‘serial’ instruction can be commented out, and recompiled, uploads, and run.
I would test this, but now I’m getting this error when I attempt to launch Arduino IDE:
No protocol specified
Picked up JAVA_TOOL_OPTIONS:
No protocol specified
java.awt.AWTError: Can’t connect to X11 window server using ‘:0.0’ as the value of the DISPLAY variable.
Hi there,
Yes exactly.
Sounds/ Looks like a bad lib or BSP selection?
I just received one a couple days ago, No issue running the Streaming video demo.
HTH
GL PJ
I got arduino running (I can’t run it as root, as root doesn’t run X11), and had a look at the code.
There are numerous ‘serial’ statements.
If you manage to succeed in getting the video stream to function with the battery connected, and the USB-C disconnected, please let me know how to modify the sketch.
Hi there ,
I went back added a battery and also unplugged the working demo USB cable and It stopped,
commented out LINE 19 & 20 the wile(!Serial); and I turned off the debug Output(false)
You see the Light is ON, and It’s streaming like a BOSS.
It responds in seconds when I turn the power off and back on and restart stream very good.
HTH
GL PJ