Error Debugging
Rebooting
General Remark
-
Due to the rather complex code with a lot of external libraries and the limited availability of memory a reboot of the device from time to time is "normal". Background are memory leakages and therefore running out of free memory.
-
The hardware of the ESP32CAM has a varying quality. I have one and the same hardware with a reboot range from every 5 detection runs to up to 250 detection runs.
Getting deeper inside
Have a look into the log file (/log/message/...).
- If the log file is very short you need to enable a enhanced logging in the
config.ini(Debug -->logfile = true) .
Analyze the debugging output of the serial interface
- Connect a serial to USB interface (like for flashing) and make a logging of the serial communication
- There are a lot more intermediate information and the lines before the reboot tell you, where the firmware fails
If you make an issue about this, please post these two information additionally
Don't forget to remove your WLAN password in the serial log
Often observed problems
Hardware failure
- Camera not working --> check the interface, test another module
- Low cost module with only 2MB of PSRAM instead of 4MB --> image taking will fail first. This will never work due to too low memory
ROI misaligned

This typically happens if you have suboptimal "Alignment Marks". A very simple and working solution is to put put higly contrasted stickers on your meter and put "Alignment Marks" on it (see picture below)

If after those adjustment you still have some issues, you can try to adjust your alignment settings in expert mode:

My Analog Meter are recognized as Digital Counter or vice versa

- First, check that your ROI are correctly defined (yey!)
- Second, verify that the name of your ROI analog and digital ROIs are different
Recognition is working well, but number aren't sorted correctly
You have to sort your ROI correctly (Bigger to smaller). Select your ROI and click either "move next" or "move previous". Repeat until your ROI are correctly sorted
