logo elektroda
logo elektroda
X
logo elektroda

[BL602] How to flash Magic Home over WiFi without soldering

alwas 12375 73
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #61 21507933
    divadiow
    Level 34  
    >>21507396

    as in your pin assignments in the config page aren't saving?
  • ADVERTISEMENT
  • #62 21585608
    kellerto
    Level 1  
    >>21418610 Any luck with 33_227_20231220_ZG-BL?
  • ADVERTISEMENT
  • #63 21585743
    divadiow
    Level 34  
    we could do with a backup of a 33_227_20231220_ZG-BL device firmware for the collection and to test mhflasher
  • ADVERTISEMENT
  • #64 21585983
    kellerto
    Level 1  
    >>21585743 thank you for help. I was able to read (dump) the original Flash firmware. I was also able to run AT+LVER\r with packetsender app in order to find the version: 33_227_20231220_ZG-BL\r
    I'm trying to flash MagicHome RGB controller without success. Tried by soldering approach accepts which seems to work but no AP appears (even after 5 power cycles) also firmeware installation via OTA by using AT+UPURL and powershell http listener on Port.1111

    Here the original flash bin
  • #65 21586017
    p.kaczmarek2
    Moderator Smart Home
    AP may not work if you power device from USB to UART converter. You need a good 3.3V power supply that can provide enough current.

    You can just watch UART log output via UART to see if it crashes.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #66 21586037
    kellerto
    Level 1  
    Unfortunately problem exists even when I power up via regular DC 5….28V input socket (I used 12VDC)
  • #69 21586062
    p.kaczmarek2
    Moderator Smart Home
    Why would you want it to be full size? We only overwrite main application, there is no need to overwrite full flash. I will say even more - we need to do this that way, otherwise we would:
    - overwrite RF partition and lose calibration (get worse WiFi quality, known problem on Beken)
    - overwrite MAC address and get MAC collisions (on some platforms)
    - overwrite Tuya GPIO Config (which we can extract on Beken and use to configure device)
    - overwrite your OBK config (only if you reflash)
    So, we obviously provide only app section, not full flash, just like Tasmota does.
    Helpful post? Buy me a coffee.
  • #70 21586076
    kellerto
    Level 1  
    Makes sense, thank you for clearing this thought.
  • #71 21586087
    p.kaczmarek2
    Moderator Smart Home
    If you think that you may misconfigured your device and want to "refresh" it, then the recommended method is to rewrite full 2MB factory flash (assuming you have taken it), and then flash our firmware again.

    Still, I'm saying that just for other readers, because in your case I am not sure if that's the problem... maybe something else is incorrect, let us know when you manage to take the debug log.

    Btw, did you make sure to disconnect BOOT pin before trying?
    Helpful post? Buy me a coffee.
  • #72 21586110
    kellerto
    Level 1  
    …was thinking the same. First instal the original backup, which I pulled at the beginning. Then instal the newest OpenBL602.bin
    Which is exactly what I did at the beginning of this journey. :-)
    And get us the debug log. Hope debug log is possible with bouffalolab flasher.
  • #73 21586120
    p.kaczmarek2
    Moderator Smart Home
    Any UART client can set debug log as long as you set valid baud rate
    Helpful post? Buy me a coffee.
  • #74 21586157
    divadiow
    Level 34  
    for the record your backup does work and here is the debug log from that. 2000000 baud
    Code: Text
    Log in, to see the code


    mhflasher OTA method fails, as you know. this is log for when pushing 'flash' button in mhflasher app
    Code: Text
    Log in, to see the code

Topic summary

The discussion focuses on flashing the Magic Home devices equipped with the BL602 chip over WiFi without soldering, utilizing the OpenBeken firmware. The process involves resetting the device, downloading the appropriate firmware, and setting up an HTTP server to facilitate the OTA update. Key steps include using specific AT commands to initiate the firmware download and addressing issues related to different firmware versions and device compatibility. Users share experiences with various devices, including CozyLife and Ewelink, and explore methods for restoring factory firmware and troubleshooting connection problems. The conversation highlights the importance of understanding the firmware architecture and communication protocols for successful flashing.
Summary generated by the language model.
ADVERTISEMENT