logo elektroda
logo elektroda
X
logo elektroda

Failed attempt to program WB2S from smart plug - BK7231Flasher.exe

Honsu 405 1
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20960613
    Honsu
    Level 3  
    Circuit soldered out of smart plug with power measurement.
    Connected to power supply from contact board and attempted to program BK7231Flasher.exe.
    Logs from program
    Quote:
    Backup name is set to kwadata7.
    Starting read backup and flash new!
    Now is: Tuesday, February 13, 2024 23:54:13.
    Flasher mode: BK7231T
    Going to open port: COM5.
    Serial port open!
    Getting bus... (now, please do reboot by CEN or by power off/on)
    Getting bus success!
    Going to set baud rate setting (921600)!
    Going to start reading at offset 0x00...
    Reading 0x00... Ok! Reading 0x1000... Ok! Reading
    itp. etc.
    Quote:
    Ok! Reading 0x1FF000... Ok!
    Basic read operation finished, but now it's time to verify...
    Starting CRC check for 512 sectors, starting at offset 00
    CRC matches 0xCCB8AA9B!
    All read!
    Loaded total 0x200000 bytes
    Wrote 2097152 to readResult_BK7231T_QIO_quadrat7_2024-13-2-23-54-49.bin
    Backup 2MB created, now will attempt to extract OBK config.
    It's not an OBK config, header is bad
    OBK config not found.
    Backup 2MB created, now will attempt to extract Tuya config.
    Tuya config extractor - magic is at 2023424
    Saving debug Tuya decryption data to lastRawDecryptedStrings.bin
    Malformed key?
    Malformed key?
    Malformed key?
    Malformed key?
    Tuya keys extraction has found 72 keys
    Tuya config extracted and shown.
    MAC seems to be 18:D E:50:CD:42:0A
    Reading file firmwares/OpenBK7231T_QIO_1.17.308.bin...
    Loaded 1048576 bytes from firmwares/OpenBK7231T_QIO_1.17.308.bin...
    Using BK7231T hack to write QIO - just skip bootloader
    Preparing to write data file to chip - resetting bus and baud...
    Getting bus... (now, please do reboot by CEN or by power off/on)
    Getting bus failed, will try again - 0/100!

    Failed to get bus!
    Failed to get bus!
    Failed to get bus!
  • ADVERTISEMENT
  • #2 20961080
    p.kaczmarek2
    Moderator Smart Home
    According to the logs, reading the flash is successful. If that's the case, maybe just put the read flash (or at least the loaded Tuya JSON configuration) here and then already try flashing without backup - use the "Do firmware write (no backup)" button or something like that.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT