logo elektroda
logo elektroda
X
logo elektroda

[SM-02/BL602L20] Mini Smart Breaker RMW002 Flashing OpenBL602 on BL602L20 Flash Like Esphome

climberfather 14592 40
ADVERTISEMENT
  • #31 20871097
    max_mcu
    Level 3  
    Hello, I have a relay (Mini Smart Breaker RMW002) with OpenBL602,
    -->> SendGet <<-- doesn't work. What do i have to do ? Thanks for the help

    OpenBL602_xxxxx
    Command Tool
    This is a basic command line.
    Please consider using 'Web Application' console with more options and real time log view.
    Remember that some commands are added after a restart when a driver is activated...

    Error:CMD:cmd SendGet NOT found (args http://192.168.188.25:8181/cuxd.exe?ret=dom.GetObject(xxxxx......)
    Unknown command

    doesn't work. What do i have to do ? Thanks for the help
  • ADVERTISEMENT
  • #32 20871441
    p.kaczmarek2
    Moderator Smart Home
    It looks like you're trying to use SendGET on BL602 platform. This is currently disabled, we haven't tested SendGET on this platform yet. Futhermore, BL602 is slightly more space-limited, as it has only 1MB of Flash instead of 2MB like Beken.

    In order to use SendGET on BL602, you'd have to switch define and makefile to include SendGET code:
    https://github.com/search?q=repo%3Aopenshwprojects%2FOpenBK7231T_App%20SendGet%20&type=code
    This theoretically should work after just those changes, so you don't really need coding skills to do that, but still, I am not 100% sure.

    I may look into it later, depending on my free time, but BL602 is not as popular as Beken and I don't have a BL602 dev board at hand, it was bricked when I started testing MAC change functionality... I'd need to get one first.
    Helpful post? Buy me a coffee.
  • #33 20871748
    max_mcu
    Level 3  
    ok I see... I can test it, but I didn't understand how I can build an .ota firmware from the .Bin
  • ADVERTISEMENT
  • #34 20871867
    p.kaczmarek2
    Moderator Smart Home
    Well, the simplest solution is to fork our app from Github and just commit to that. We have online build systems. When you submit a commit, it will build all binaries automatically. You will see a green OK sign or a red cross (error icon) next to the commit indicating whether build has failed or succeeded. If you click it, and search for "download artifacts" you will get zip file with binaries for all platforms.

    Keep in mind that BL602 OTA silently fails once you reach the flash limit. It will not update anymore, but it will NOT break your device. You will be able to update it as soon as you reduce the size of the next OTA binary.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #35 20872519
    nikolajpug
    Level 1  
    При попытке считать программатором на скорости 128 (ch340) нет Handshake. Для перепрограммирования затирка обязательна?
  • #36 20986233
    jeffs555
    Level 1  
    Just received a RMW002 from AliExpress, and the only thing not exactly clear in this thread was how to open the plastic case. Thought I would post a case photo and suggestion on the easiest way to do it. On the one I received, the only thing holding the case together appears to be the friction fit of a molded plastic pin in each of the four corners. I just used a razor knife wedged into one corner to separate one corner slightly. Then go around to each corner separating more and more until all the pins are free.

    Photo of a plastic RMW002 case from AliExpress, showing its opening process.
  • #37 21003994
    aliexpress
    Level 4  
    Hi,

    many thanks for creating this environment to also support Beken and Bouffalo devices. I think the BL602 is quite interesting.
    I am also the owner of RMW002 which has a board with BL602. It came es eWeLink device and works fine as such.

    I tried to flash the desoldered board but I can't. Basically, I see in the logs that the board most of the time keeps rebooting. If not, it is unresponsive to the flashing tool (I used exactly the one recommended here).

    The standard answer I find is: Check you power supply. Oh boy, I did that! I used 3 different power supplies including a lab power supply with Voltage 0-35 V and 2 Amps. I tried with 3.3 Volts with this PSU but also went up a little further (up to 3.7 Volts). The behavior would not change.

    Soldered back the BL602 into the RMW002 - works again stable. I suspect the boot loops might depend on some missing external connectivity (pull-up or pull-down of some pins) when the board is desoldered.

    Question to the ones who flashed successfully: Did you take out the BL602 board or flashed it when it was still soldered to the RMW002?

    Thanks!
  • #38 21004659
    miegapele
    Level 15  
    I do not have such switch, but I was running socket from the serial adapter using ams1117 for power without any issues
  • #39 21005274
    p.kaczmarek2
    Moderator Smart Home
    @aliexpress maybe you can check out related BL602 tutorials, they are not for this specific device but still may help:






    You can also search our devices list for BL602-based ones:
    https://openbekeniot.github.io/webapp/devicesList.html
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #40 21005326
    divadiow
    Level 34  
    aliexpress wrote:
    Question to the ones who flashed successfully: Did you take out the BL602 board or flashed it when it was still soldered to the RMW002?


    not specifically the RMW002, but the majority of BL602s I have removed and flashed externally. several SM-028s too. the exception was this where I used the DC5V barrel PSU and the BL602 was soldered to main PCB anyway https://www.elektroda.com/rtvforum/topic4024917.html
  • #41 21007489
    aliexpress
    Level 4  
    Many thanks for the highlighting again the videos.
    I have experience with flashing multiple ESP and Beken devices and I am sure my setup is generally working.

    Thanks for confirming the successful flashing of multiple de-soldered SM-028 boards!

    So this leaves me with the question what could be wrong on my end. I soldered connections to 3.3V, GND, RX, TX and BT (with 10k resistor to be connected to 3.3V for starting flashing with next power on).
    The issue here that persisted were the boot loops which I could monitor in the console (open UART) in the Bouffalo Flasher.
    The device kept rebooting with the frequently seen "reboot reason POWER_OFF" (or similar, comes from the top of my head).
    Therefore I tried 3 alternative power sources including high capacity lab power supply and I even experimented with higher voltage to get the board more stable. But it was unstable.

    Soldered back into the RMW002 mini switch board, it just worked as eWeLink device as before without any issues and apparently without reboots. So that is why I wondered about additional requirements to get the SM028 in a stable configuration. And this could only be through the other pins that are connected to RMW002.
    Or maybe my SM028 has a slight defect, causing any external connection to RX/TX to keep it in reset loop. But my CH340 serial interface works fine with all other boards.
    Too bad the CEN is not routed outside, would have been worth a try if it has any effect.

    Nevertheless, I am at this moment giving up with this particular board. Bought for less than 2€, it is not worth to spend too much time on it. Maybe I will try another one with BL602 sometime soon, with hopefully better results.

    All the best, and thanks for the great efforts spent in freeing these low-cost devices!

Topic summary

The discussion revolves around the Mini Smart Breaker RMW002, which features a BL602L20 microcontroller and is flashed with OpenBL602 firmware. Users share their experiences with the device, including configuration details, GPIO pin assignments, and issues related to phantom switching and firmware flashing. Some users report successful flashing and integration with Home Assistant, while others encounter problems such as boot loops and external switch functionality. Solutions are proposed, including soldering specific components to mitigate issues. The community also discusses the ease of opening the device and the necessity of soldering skills for firmware updates.
Summary generated by the language model.
ADVERTISEMENT