logo elektroda
logo elektroda
X
logo elektroda

OpenBeken Flashing Tutorial via Tuya-Cloudcutter for ElektrodaBot Users

asusapplis 24 1
ADVERTISEMENT
  • #1 21858621
    asusapplis
    Level 1  
    @ElektrodaBot Give me tutorial OpenBeken flashing via Tuya-CloudCutter, please
    AI: What is the exact brand and model of the device you want to flash with OpenBeken via Tuya-CloudCutter?
    3003366 Outdoor Flood Light (LSC)
    AI: Have you already tried any steps or is this your first time flashing with Tuya-CloudCutter?
    I've already tried a few times, but it hasn't always ended well.
  • ADVERTISEMENT
  • #2 21858622
    ElektrodaBot
    AI OpenAI ChatGPT4
    asusapplis wrote:
    @ElektrodaBot give me tutorial openbeken flashing via tuya-cloudcutter please
    AI: What is the exact brand and model of the device you want to flash with OpenBeken via Tuya-Cloudcutter?
    3003366 Oudoo...
    Short answer

    Yes — your LSC 3003366 sensor flood light is a known OpenBeken target, and the available teardown/configuration info points to a WB3S module with BK7231T, not BK7231N. For this model, the smart board is reported to be in the PIR sensor head, and a working OpenBeken pin mapping has already been shared on Elektroda. Tuya-Cloudcutter can flash unpatched BK7231T devices over Wi‑Fi, but patched Tuya SDK builds are not exploitable and then you must fall back to serial/UART. (elektroda.com)

    The two mistakes most likely to ruin this flash

    Because you said your previous attempts “haven’t always ended well”, for this exact lamp the two biggest mistakes are:

    1. Using BK7231N firmware/template from a different LSC floodlight family. A different LSC outdoor floodlight discussed on Elektroda uses BK7231N/CB2L, so do not copy that template to model 3003366. (elektroda.com)
    2. Using the wrong OpenBeken image type. For Cloudcutter you want the BK7231T “CCtr Flash” file, e.g. `OpenBK7231T_UG_<version>.bin`. The releases page separately provides OTA, CCtr Flash, UART, and SPI images; for Cloudcutter, the instructions say to place supported Cloudcutter firmware files in `custom-firmware`, and the release page labels the CCtr file explicitly. (github.com)

    ---

    Tutorial: OpenBeken flashing on LSC 3003366 via Tuya-Cloudcutter

    1) Prepare the host properly

    Use a real Linux machine if possible, preferably Ubuntu with NetworkManager, Docker, and a separate Wi‑Fi adapter that is not your main network link. The Cloudcutter project explicitly lists a standalone Wi‑Fi adapter, sudo privileges, NetworkManager/nmcli, Docker, and preferably Ethernet for the host’s main connectivity. Their instructions also say non-virtualized Ubuntu is the expected environment; VMs may work only if the Wi‑Fi adapter is passed through cleanly. (github.com)

    Install and start from the official repo:

    Code: text
    Log in, to see the code


    If your adapter is temperamental, retry with:

    Code: text
    Log in, to see the code


    The `-r` option is specifically mentioned by the project as helpful when NetworkManager or the adapter does not reset cleanly. (github.com)

    2) Download the correct OpenBeken file

    For LSC 3003366 = BK7231T, download the BK7231T CCtr Flash image from OpenBeken releases, named like:

    Code: text
    Log in, to see the code


    Do not use:

    - `OpenBK7231N_...`
    - `OpenBK7231T_UA_...` for UART
    - `OpenBK7231T_QIO_...` for SPI/manual flashing

    Put the Cloudcutter-compatible file into the `custom-firmware` folder inside the Tuya-Cloudcutter directory. The Cloudcutter instructions say custom firmware goes into `./custom-firmware`, and OpenBeken releases label the BK7231T CCtr Flash image separately from UART and SPI builds. (github.com)

    3) Reset the lamp and remove Tuya pairing cleanly

    If the lamp is still paired in Smart Life / Tuya, remove it using “Disconnect and wipe data” before retrying. That is the project’s own recommendation when a device was previously onboarded. (github.com)

    Then put the lamp into AP mode. Cloudcutter’s instructions for Tuya lights say this is usually done by:

    - power cycling 6 times with about 1 second between toggles, until it slow-blinks, or
    - long-press reset until it fast-blinks, release, then hold again until it slow-blinks. (github.com)

    Important: for Cloudcutter you want the slow blink / AP mode, not just fast blinking. If it fast-blinks, keep cycling until it reaches slow blink. (github.com)

    4) Start Cloudcutter in interactive mode

    Inside the repo directory:

    Code: text
    Log in, to see the code


    Then choose:

    1. Flash 3rd Party Firmware
    2. Select your `OpenBK7231T_UG_...bin`
    3. For profile selection, prefer “By firmware version and name” if you know the Tuya main module version from the app, because Cloudcutter’s own instructions describe that as the fallback when you do not know the exact device profile. (github.com)

    If you still have the Tuya app available, you can get the module version from:

    - device
    - top-right pencil/edit
    - Device Update
    - note the Main Module version. (github.com)

    5) Let the exploit run, then do the second-stage reconnect

    Cloudcutter’s documented sequence is:

    - it connects to the lamp’s temporary Tuya AP,
    - runs the exploit,
    - the device may appear to freeze,
    - then it reboots back into AP mode,
    - then Cloudcutter starts its own AP named `cloudcutterflash`,
    - you power-cycle the device once more so it reconnects for the flashing stage. (github.com)

    If nothing happens for more than about 2 minutes, the official instructions say to power-cycle the device back into AP mode and, if necessary, use a SmartLife-compatible app to tell it to join `cloudcutterflash` with password `abcdabcd`. (github.com)

    6) After a successful flash

    Once OpenBeken is running, connect to the new firmware AP and open:

    Code: text
    Log in, to see the code


    The OpenBeken flashing tool documentation states that after writing firmware, the firmware access point appears and you then go to 192.168.4.1 to configure it. (github.com)

    Configure your normal Wi‑Fi, save, and let the lamp join your LAN. Then open its new IP address.

    ---

    Known-good OpenBeken config for LSC 3003366

    For your exact model, a working user-shared configuration on Elektroda is: BK7231T, flags `267264`, with P6 = digital input/PIR, P8/P9 = PWM outputs, and P23 = ADC/light sensor. (elektroda.com)

    Code: text
    Log in, to see the code


    Apply that in OpenBeken after the first boot. If you prefer, OpenBeken also provides a template importer that can parse Cloudcutter JSON / config data and generate an OpenBeken template. (openbekeniot.github.io)

    ---

    What this mapping means on your lamp

    From the earlier teardown of this exact 3003366 flood light:

    - module: WB3S
    - board location: inside the PIR sensor head
    - P8 / P9 are PWM-controlled lamp outputs
    - P6 is the PIR digital input
    - P23 is the ambient light sensor ADC. (elektroda.com)

    So if the flash succeeds but the lamp behaves strangely, the problem is usually configuration, not flashing.

    ---

    Troubleshooting for the failures you likely saw before

    A) “Waiting for device” / “nothing connects”
    Usually this is a host-side problem:

    - bad Wi‑Fi adapter
    - VM timing issues
    - NetworkManager not resetting cleanly

    Use bare-metal Ubuntu if possible and rerun with `-r`. That is exactly the environment Cloudcutter expects. (github.com)

    B) Exploit starts but never completes
    That often means the device firmware is patched. Cloudcutter’s README states Tuya patched the SDK as of February 2022, and the wiki keeps a current list of known patched firmware versions; patched devices must be flashed by serial instead. (github.com)

    C) Flash completes but the lamp does not work correctly
    For model 3003366, use the BK7231T template above. Do not borrow the template from the separate BK7231N LSC outdoor floodlight family. (elektroda.com)

    D) You think you may need UART recovery
    Do not start by trying to pry open the main floodlight housing. For this model, users reported the useful electronics are in the PIR sensor section, while the main glass/front is glued and not nice to disassemble. (elektroda.com)

    ---

    Optional: recreate the original PIR + day/night behavior

    A working OpenBeken script example was shared for this model using:

    - `Channel3` as PIR trigger input
    - `Channel4` as ADC/light threshold
    - `led_enableAll` to switch the lamp
    - a timer to turn it back off. (elektroda.com)

    So once flashing is done, you can get close to stock behavior instead of just basic on/off.

    ---

    Practical recommendation

    If I were doing your exact lamp, I would use this sequence:

    1. Fresh Linux boot, no VM. (github.com)
    2. Remove lamp from Tuya app with Disconnect and wipe data. (github.com)
    3. Download `OpenBK7231T_UG_...bin` only. (github.com)
    4. Run `sudo ./tuya-cloudcutter.sh -r`. (github.com)
    5. Put lamp in slow-blink AP mode. (github.com)
    6. Flash OBK. (github.com)
    7. Apply the 3003366 template above. (elektroda.com)

    That minimizes the two common errors: wrong chip family and wrong firmware package. (elektroda.com)

    Brief summary

    For LSC 3003366, the best available evidence says: WB3S / BK7231T, Cloudcutter-compatible if unpatched, use `OpenBK7231T_UG_...bin`, then configure P6=dInput, P8/P9=PWM, P23=ADC with flags 267264. If Cloudcutter repeatedly hangs at exploit stage, assume patched firmware and move to UART recovery via the PIR sensor head, not the main lamp body. (elektroda.com)

    If you want, in the next message I can give you:

    1. a copy-paste exact command sequence for Ubuntu, and
    2. a post-flash OpenBeken script that restores PIR + ambient-light automatic behavior for the 3003366.
    You can call me in any topic by writing @ElektrodaBot. Disclaimer: Some answers provided by the ElektrodaBot may be inaccurate. Elektroda not responsible for accuracy, reliability or completeness of the information presented. All ElektrodaBot responses should be verified by the user. OpenAI can monitor and save information entered after calling ElektrodaBot.
ADVERTISEMENT