github prusa3d/Prusa-Firmware-ESP32-Cam v1.1.3
1.1.3 Firmware for Ai-Thinker ESP32-cam, ESP32-S3-EYE 2.2, Freenove ESP32-Wrover, Freenove ESP32-S3 Wroom, XIAO ESP32-S3 Sense, ESP32-S3-CAM, M5Stack Unit CamS3, M5Stack Timer Camera

one hour ago

Summary


  • Update arduino-ESP32 lib (ESP-IDF) and other libraries
  • Added support for M5Stack Unit CamS3 (OV2640 and 5MP) and M5Stack Timer Camera
  • Resolutions and camera settings on the web according to the camera sensor
  • New logging to the micro SD card
  • Timelapse photos in a folder per day
  • Wi-Fi improvements, connection to hidden Wi-Fi networks
  • Fixed firmware update from the cloud
  • Bug fixes and stability improvements
  • Updated documentation

How to update from version 1.1.x


The firmware update from the cloud does not work in the versions 1.1.x. GitHub changed the certificate of the server that stores the release files, and the camera rejects the connection (HTTP error: connection refused). Update the camera manually:

  • Download the firmware file for your board from this release (see the table below).
  • Open the camera web page, go to the System tab, select the file and click Update from File.
  • If the upload stops or ends with an error, reboot the camera and upload the file again.
  • ESP32-S3 boards (ESP32-S3-EYE 2.2, ESP32-S3-CAM): version 1.1.2 with an inserted micro SD card restarts a few seconds after the start. Remove the micro SD card before the update, or flash the firmware over USB.

The configuration (Wi-Fi, token, camera settings) is kept and the camera stays paired with Prusa Connect. After the update to this version, the firmware update from the cloud works again.

Board Firmware file for the update Files for the first flash over USB
Ai-Thinker ESP32-cam ESP32_PrusaConnectCam.ino.bin esp32-cam.zip
Freenove ESP32-Wrover cam ESP32_WROVERDEV.bin esp32-wrover-dev.zip
ESP32-S3-EYE 2.2 ESP32S3_EYE22.bin esp32-s3-eye-22.zip
Seeed Studio XIAO ESP32S3 Sense XIAO_ESP32S3.bin xiao-esp32-s3.zip
ESP32-S3-CAM esp32-s3-cam.bin esp32-s3-cam.zip
Freenove ESP32-S3 Wroom ESP32-S3-WROOM_FREENOVE.bin esp32-s3-wroom-freenove.zip
M5Stack Unit CamS3 (OV2640 and 5MP) ESP32-M5-Unit-CamS3.bin m5stack-unit-cams3.zip
M5Stack Timer Camera M5STACK_TIMERCAM.bin m5stack-timercam.zip

Update arduino-ESP32 lib and other libraries


Library From To
arduino-ESP32 3.1.0 3.3.12 (ESP-IDF 5.5.5)
ESPAsyncWebServer 3.4.5 3.12.1
AsyncTCP 3.3.1 3.5.0
ArduinoJson 7.3.0 7.4.3
DHTnew 0.5.2 0.5.5

The ESPAsyncWebServer and AsyncTCP libraries moved to ESP32Async. Compiled and tested with Arduino IDE 2.3.10.

Added support for M5Stack Unit CamS3 and M5Stack Timer Camera


  • M5Stack Unit CamS3 with the OV2640 camera, and Unit CamS3-5MP with the PY260 camera. The camera module is detected automatically. The 5MP camera supports the resolutions 320x240, 640x480, 1280x720, 1600x1200 and 1920x1080 and has 3 quality levels, see the documentation. Thanks @pawelchcki (PR #102).
  • M5Stack Timer Camera with the OV3660 camera, see the documentation. Thanks @timmmmmmmmm (PR #114).

Camera


  • The web page offers only the resolutions and settings supported by the detected camera sensor. New resolutions 1280x720 and 1920x1080 (only with sensors that support them).
  • A resolution not supported by the sensor (for example after replacing the camera module) switches to 320x240. Before, the camera restarted again and again.
  • A change of the resolution or quality is applied within about 1 second, never during sending or saving the photo. Before, a change during the upload to Prusa Connect with timelapse enabled could crash the camera.
  • Refresh Snapshot no longer interferes with sending the photo to Prusa Connect.
  • The camera init is repeated when the sensor does not confirm the setting (seen with OV2640 on Ai-Thinker). Before, the resolution was reset to 320x240 or the camera restarted.
  • Camera make and model in the EXIF data according to the detected sensor (OV2640, OV3660, OV5640, ...). Based on PR #140, thanks @reznet.
  • Descriptions of the camera settings on the web page. Thanks @Wegerich (PR #139).
  • Fixed broken frames in the video stream.
  • Fixed sending of the photo to Prusa Connect when the photo size is a multiple of 2048 bytes. Before, the last 2048 bytes were not sent and the photo was rejected (INCORRECT DATA LENGTH in the log).
  • Fixed a crash when the photo was loaded from the web page (saved-photo.jpg) during the stream.

Logging to the micro SD card


  • A new log file for each start of the camera: SysLog_0000.log, SysLog_0001.log, ... Each file has up to 1 MB, the 100 newest files are kept.
  • ESP32-S3 boards: the micro SD card can be inserted and removed while the camera is running. ESP32 boards (Ai-Thinker, ...): the card is detected only during the start, insert it before powering on.
  • The last log messages before a restart are saved.
  • The token is masked in the log.
  • Tested with 32 GB micro SD cards (FAT32).

Timelapse


  • The photos are saved in a folder per day: /timelapse/YYYY-MM-DD/photo_YYYY-MM-DD_HH-MM-SS.jpg.
  • Photos taken before the time is synchronized are saved in /timelapse/0000-00-00/ with an index (_1, _2, ...). Existing photos are never overwritten.

Thanks @robertpouliot (PR #147).

Wi-Fi


  • The camera connects to a hidden Wi-Fi network (a network that does not broadcast its name). Enter the network name (SSID) and the password on the Wi-Fi tab.
  • A new Wi-Fi configuration from the web page is used without a reboot of the camera.
  • The camera connects to the Wi-Fi network when the network was not available at the start. Thanks @bbouabou (PR #146).
  • The service AP is easier to find when the configured Wi-Fi network is not available or the password is wrong. After 3 failed attempts, the camera tries to connect every 28 seconds and the service AP stays available.
  • Wi-Fi Enterprise (WPA2-Enterprise, PEAP-MSCHAPv2, without certificate). Experimental, not tested yet.
  • TLS handshake timeout of 20 seconds for Prusa Connect and the firmware update, the camera does not wait forever for a server that does not answer.
  • Fixed the hostname of the camera in the Wi-Fi network: the router shows Prusa-ESP32cam.

Several fixes are taken from PR #147, thanks @robertpouliot.

Firmware update and web page


  • Fixed the firmware update from the cloud (new GitHub certificates).
  • Fixed the firmware update from a file: the web page reports the end of the update only after the camera confirms it.
  • The System tab shows the firmware file of the board (FW File), the file to download for the manual update.
  • The System tab shows the build date and the ELF SHA256 of the firmware.
  • The web page is loaded again after the firmware update. Before, the browser could show the old page for up to 24 hours.
  • The photo from the web page (saved-photo.jpg) is sent with a correct Content-Length header (problem with Home Assistant). Thanks @sirmc (PR #136).

Serial console


  • New command resetcfg; resets the configuration to factory settings, the same as the reset pin.

Stability and memory


  • Fixed stack overflows on ESP32-S3 boards.
  • Lower use of the internal RAM: TLS buffers and the web page data in PSRAM, smaller web server stack.
  • More stack for the firmware download from the cloud.

Build script


  • fw_build.sh creates the configuration of arduino-cli and installs the tested versions of the arduino-ESP32 core and the libraries. Newer versions are not installed automatically.

Updated documentation


  • Documentation for M5Stack Unit CamS3 and M5Stack Timer Camera.
  • Arduino IDE settings of all boards according to arduino-ESP32 3.3.12.
  • Fixed the esptool command for Seeed Studio XIAO ESP32S3 (--flash_mode dio). Thanks @pless84 (PR #148).
  • README fixes, thanks @Perchik (PR #128), @eric-distributed-spectrum (PR #133) and @Neeeflix (PR #137). Comments in fw_build.sh, thanks @muesli (PR #130).

Tested boards


This version was tested on Ai-Thinker ESP32-cam (OV2640, OV3660, OV5640), Freenove ESP32-Wrover cam, ESP32-S3-EYE 2.2, ESP32-S3-CAM, Freenove ESP32-S3-Wroom, M5Stack Unit CamS3 (OV2640 and 5MP), M5Stack Timer Camera and Seeed Studio XIAO ESP32S3 Sense.

Known issues


  • No known issues.

Don't miss a new Prusa-Firmware-ESP32-Cam release

NewReleases is sending notifications on new releases.