logo elektroda
logo elektroda
X
logo elektroda

Disassembling and Dumping Flash from an SQ11 Mini DV Camera with CH341A SPI Programmer

divadiow 1530 7
ADVERTISEMENT
  • Helpful post
    #1 21215517
    divadiow
    Level 34  
    A while ago I bought one of those cheap almost-certain-to-be-rubbish cube-like Instagram cameras off Ali Express. Almost certainly a clone of something better.
    Mini SQ11 camera with motion detection, night vision, and up to 100 minutes work time.

    The SQ11 Mini DV is sold alongside claims of "1080p", "HD", "night-vision". "infra-red". These were taken with a large pinch of salt.

    I took it apart quite a few months ago, so didn't document that, but there are many videos and pictures elsewhere online of how to open it. My most recent interest is because I was looking around for devices I already had with an 8 pin SOIC flash memory chip on which I could try my new CH341A "black" SPI programmer and clamp.

    CH341A SPI programmer with 8-pin microcontroller clamp

    Mine came with a clamp for use on 8-pin chips left in-situ. Eg (from https://winraid.level1techs.com/t/guide-how-t...-spi-programmer-flasher-with-pictures/33041):

    Device with a clip connected to a chip on a circuit board.

    Before I continue here are some pictures of the dismantled chassis and the PCB inside. Predictably there are no LED lamps, just black plastic that vaguely resembles a ring of LEDs.

    Disassembled parts of the SQ11 Mini DV camera on a blue background. Disassembled SQ11 Mini DV camera on a blue background Operating manual for SQ11 Full HD 1080P mini camera. Dismantled SQ11 Mini DV camera with wires connected to the electronic circuit. PCB with a microchip labeled 935B-V3.0 held between fingers. Close-up of a circuit board from a disassembled device with visible flash memory chip and microSD slot. Dismantled circuit board of the SQ11 Mini DV camera with connected power wires. Dismantled mini camera with visible circuit board and components. Circuit board of disassembled camera with visible chip and battery Damaged battery with two wires on a blue background Close-up of a circuit board with a microSD slot and flash memory chip. Image of a circuit board from an SQ11 Mini DV camera with a visible microSD slot. Circuit board of SQ11 Mini DV camera showing the MCU and microSD slot.

    You can see the 8-pin flash memory chip - a UC25WQ40 - just at the base of the microSD connector.

    The QFN48 MCU is a bit of mystery. At a good angle you can make out that it's labelled EA257411.1 2325NRZ.
    Close-up of a microprocessor labeled EA257411.1 2325NRZ on a circuit board of a camera.
    A Google for that and the PCB silkscreen 935B-V3.0 has not proven fruitful.

    But surely one or two of the MCU legs must be a UART log out? Maybe even one of the silver pads on the PCB? I cautiously probed around with the RX leg of a USB-TTL adaptor connected to a jumper cable with a sewing needle soldered at one end, powering the camera off and on again from an external 3.3v PSU after desoldering the useless battery. USB-TTL and the external PSU sharing a ground.
    USB to TTL converter with attached cables on a blue background.

    at 115200 baud this pad here gives an output

    View of the disassembled circuit board with a microchip and marked TX point.

    but not a very helpful one

    Code: Text
    Log in, to see the code


    Time to try the CH341A. After carefully lining up pin 1 of the SOIC with the red pin1 of the clamp

    Close-up of disassembled mini DV camera with a clip connected to a microchip. Close-up of a circuit board with a chip reading clip attached. View of an SPI programming set with a connected clip and micro camera.

    NeoProgrammer detects the IC - UC25WQ40 [3.3V] 4 Mbits, 512 Kbytes

    NeoProgrammer window detecting UC25WQ40 chip.

    NP read the entire chip and I attach the dump to this thread for reference.

    Screenshot of NeoProgrammer software showing memory data from UC25WQ40 microchip.

    It doesn't seem like there's an awful lot of code in there. Does the MCU also have onboard flash?

    Strings found are minimal
    Code: Text
    Log in, to see the code


    Tomorrow I will see if the test pad opposite the TX is an RX and if it'll respond to AT commands.
  • ADVERTISEMENT
  • #2 21216292
    divadiow
    Level 34  
    meh. not much more to say about this little thing. It does not respond to AT commands. The most I can get out of it is some SD card kind of messages when hitting buttons.

    Code: Text
    Log in, to see the code

    video and audio quality is low.
    Screenshot of the properties window for the MOVI0001.AVI video file.

    it's going back into its box

    Added after 11 [minutes]:

    tore off the lens hoping for a make/model. no

    Electronic module with detached lens on a blue background.
  • ADVERTISEMENT
  • #3 21216629
    p.kaczmarek2
    Moderator Smart Home
    Interesting, maybe binwalk on flash dump could say more?

    @DeDaMrAz hacked some larger camera once with binwalk, it was running a tiny build of Linux
    Helpful post? Buy me a coffee.
  • #4 21216640
    divadiow
    Level 34  
    alas, nothing comes of a binwalk on it

    A screenshot of a terminal showing an attempt to use binwalk to analyze a binary file.
  • ADVERTISEMENT
  • #5 21216697
    p.kaczmarek2
    Moderator Smart Home
    But now to think of it... it's 4Mbits, not 4MB. Just 512KB. So maybe it's not the program.

    Can this camera work with flash chip removed?
    Helpful post? Buy me a coffee.
  • #6 21216876
    divadiow
    Level 34  
    well. it doesn't love it being removed. it still does something so it must have on-board flash too

    boot with flash IC removed

    Code: Text
    Log in, to see the code


    and police siren LEDs to signal its unhappiness





    Added after 8 [minutes]:

    and if you push one of the buttons while it's flashing the blue will go solid. it's putting some files on the SD card but theyre 0kb

    Screenshot showing 0 KB AVI and IDX files.

    probably a silly question but would the memory in the MCU be addressable from the SPI connections to the 4mbit flash, now removed?

    Added after 13 [minutes]:

    hmm

    Code: Text
    Log in, to see the code
  • #7 21520347
    ndria90
    Level 1  
    Is there any schematic for this minicamera? Is it possible to use it connected to esp32?
    Many thanks
  • ADVERTISEMENT
  • #8 21563567
    dragonmen
    Level 3  
    Above camera is a cheap clone of real SQ11.
    I have original one and it's completely different - mine really have IR for night mode.
    Seems that clones have that colored stripe there.
    Answer to @ndria90: It's not usable for ESP32, this small device is really integrated and probably incompatible with ESP32 chip as I cannot identify MCU, like poster above, but mine is different.

Topic summary

The discussion revolves around the SQ11 Mini DV camera, a low-cost device purchased from Ali Express, which claims to offer features like "1080p" video and "night-vision." The user disassembled the camera and is exploring the possibility of dumping the flash memory using a CH341A SPI programmer. Initial attempts to communicate with the device via AT commands yielded no results, revealing low video and audio quality. The flash memory chip is identified as 4 Mbits (512 KB), and attempts to use binwalk on the flash dump were unsuccessful. Further experimentation showed that the camera does not function properly without the external flash chip, indicating the presence of onboard memory. The user is investigating whether the MCU memory can be accessed through the SPI connections to the removed flash chip.
Summary generated by the language model.
ADVERTISEMENT