logo elektroda
logo elektroda
X
logo elektroda

[Tutorial] Flashing OpenBK via OTA using tuya-cloudcutter

ferbulous 20874 38
ADVERTISEMENT
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #33 21048455
    p.kaczmarek2
    Moderator Smart Home
    That's interesting, so, are you able to back original firmware? Does it come with AT command line flashed?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #34 21048465
    divadiow
    Level 35  
    not yet tried.

    it should be noted that the BKWriter dump is junk and has partitions in the wrong place or something. BK Easy Flasher dump is OK. I will try flashing back soon.

    Added after 14 [minutes]:

    p.kaczmarek2 wrote:
    Does it come with AT command line flashed?


    I have not explored this either. I will

    Added after 15 [minutes]:

    divadiow wrote:
    p.kaczmarek2 wrote:
    Does it come with AT command line flashed?


    hang on. yes, it must. half the HLK-B30 PDF from Hi-Link goes on about it in relation to whatever the image is they ship these with

    Screenshot of Hi-Link documentation showing AT instructions and an example of querying the module version.
  • ADVERTISEMENT
  • #35 21049609
    divadiow
    Level 35  
    hi-link factory dev fw (dump in previous post) boot log - D12 = TX log output

    Close-up of a WiFi module with pins, one marked as D12 TX.

    Code: Text
    Log in, to see the code


    OpenBeken for T just boot loops with

    Code: Text
    Log in, to see the code


    Added after 37 [minutes]:

    p.kaczmarek2 wrote:
    are you able to back original


    Yes. Original fw dump flashes back and boots after erase/flash OBK-T
  • #36 21054466
    divadiow
    Level 35  
    @akosschneemaier did you ever get a dump of your module? I'd be interested to flash to HLK-B30 if you did.
  • #38 21054699
    divadiow
    Level 35  
    thanks. I have flashed your dump and the HLK-B30 has booted!


    Code: Text
    Log in, to see the code


    Added after 12 [minutes]:

    can't find any bluetooth or wifi AP after several resets, which I was hoping would put it in pairing mode. I'm using the Arnoo app too

    Added after 21 [minutes]:

    Ah. AiDot app finds it
    Device addition screen with a message about regional restriction for the Wi-Fi RGBW A19 (2nd Gen) bulb.

    Added after 9 [hours] 22 [minutes]:

    p.kaczmarek2 wrote:
    Does it come with AT command line flashed?


    Should I be querying it for anything? Did you flash HLK fw to your B30 module @p.kaczmarek2 ?
  • #39 21590319
    divadiow
    Level 35  
    akosschneemaier wrote:
    Hello, I ran into a modul with CC8000, it is in a modul made by Leedarson based on the MAC address. On their website I was only able to find the ESP8266 version which has the same form factor and pinout then my CC8000 module.


    LDI12B000A
    https://developer.arnoo.com/document/zh-CN/50...elopment/10%20CC8000%20Module%20Specification

    CC8000/BK7231U opensource alternative firmware developments - https://www.elektroda.com/rtvforum/topic4127374.html

Topic summary

The discussion centers on flashing OpenBK firmware over-the-air (OTA) using the tuya-cloudcutter tool, emphasizing the critical need to verify the device's actual chip type (BK7231T or BK7231N) before flashing to avoid bricking. Due to inconsistent PCB labeling by Tuya (e.g., CB2S boards labeled incorrectly), physical inspection or running the 'run_detach' script is recommended to confirm chip identity. Flashing the wrong firmware version can cause devices to fail booting, requiring serial re-flashing methods. Recovery mode procedures vary by device but generally involve specific button press sequences to enable OTA flashing again. The conversation also explores the presence of CC8000 chips (possibly rebadged BK7231U) in some Tuya modules like the AVATTO bulb and WB2L devices, which differ from BK7231T/N chips and may require different flashing tools or SDKs. Attempts to back up and flash firmware on CC8000 modules using BK7231 tools show mixed results, with challenges in obtaining UART logs and successful firmware dumps. The CC8000's pinout appears compatible with BK7231, but bootloader and encryption differences complicate firmware development. Community members share firmware dumps, boot logs, and experiences flashing HLK-B30 modules with CC8000 chips, noting the need for specialized approaches. Recommendations include using UART1 (TX1/RX1) for flashing and UART2 for debug logs, pulling the CE pin high with a resistor (commonly 4.7k to 10k) to enable chip boot, and careful power supply considerations. The discussion references tools like BK7231GUIFlashTool, BKWriter, BK Easy Flasher, and highlights the importance of full flash backups before experimentation. Links to firmware dumps, GitHub repositories, and related documentation are provided for further development and troubleshooting.
Summary generated by the language model.
ADVERTISEMENT