Camera: Sonoff Cam‐S2 - themactep/thingino-firmware GitHub Wiki

Sonoff Cam-S2

https://sonoff.tech/product/security-cameras/cam-s2/

Hardware

  • SoC: Ingenic T23N (64MB)
  • Image Sensor: SmartSense SC2336 (2MP)
  • WiFi Module: Altobeam ATBM6012BX (USB)
  • Flash Chip: NOR 16MB (Manufacturer's Datasheet)
  • Power: 5V DC USB-C

Installation

Method 1 - SD Card

  1. It is now possible to update the firmware using an SD card.
  2. Flash an SD card using the Thingino Installer for the Sonoff Slim Gen 2 camera, and insert it into the camera.
  3. Use a 'dumb' USB-C cable for power only to boot the camera. Avoid using one with handshakes as they can cause confusion during the flashing process.
  4. After a few minutes, the camera will begin updating its firmware. Once complete, a new WiFi network should appear called 'THING-xxx'; connect to this to access the web interface for configuration. Refer to the Wi-Fi Configuration Guide for further directions.
  5. On checking the SD card files, there should be a new file now called 'autoupdate-full.done', which indicates the firmware process has completed.
  6. This process is reversible. To revert back to the factory firmware, you will find a folder named 'backup' on the SD card. Save this folder separately for each camera you work with, as each camera has its unique firmware version.

If any complications arise during the flashing process such as an incomplete update of the firmware, some light surgery may be required:

  1. Turn off the power supply to the camera.
  2. Disassemble the camera from its housing by carefully separating it around the corners (held in by pressure, not glue).
  3. Unscrew the PCB from the housing, and gently lift out. Unplug the black and red cable from the speaker (marked SPK on the PCB).
  4. Turn over the PCB, to find the flash chip as circled in this image.
  5. Locate and identify pins 5 and 6 on the flash chip #TODO using the circle as the pin #1 reference point, then count counter-clockwise.
  6. Bridge pins 5 and 6 by holding a metal screwdriver or needle across the pins, while connecting the power cable to the camera. Remove the screwdriver/needle about a second later. Refer to the creator's YouTube Video walkthrough for visual guidance (the camera is a different model, but the process is the same). It may take a few tries to get the timing right.
  7. The camera should boot from the SD card and complete the firmware flashing process. Monitor for the THING-xxx WiFi network to appear.
  8. Once completed, reassemble the camera by remembering to connect the speaker cable, screwing the PCB back into the housing, etc.

Method 2 - SD Card over UART Connection

  • Flashing with a programmer and a programming clip.
  • Reading firmware from SD card from U-Boot shell over UART connection.
  • Cloner mode is not supported!
  • UART Details:

Sonoff Cam-S2 UART