logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

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

climberfather 16986 42

TL;DR

  • Mini Smart Breaker RMW002 uses a BL602L20 microcontroller on the SM-028 board.
  • It is flashed with OpenBL602_1.17.282 from the OpenBK7231T_App project.
  • A working profile exists for this configuration.
ADVERTISEMENT
📢 Listen (AI):
  • #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.
  • ADVERTISEMENT
  • #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
  • #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.
  • #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.
  • ADVERTISEMENT
  • #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!
  • ADVERTISEMENT
  • #38 21004659
    miegapele
    Level 16  
    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.
  • #40 21005326
    divadiow
    Level 38  
    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!
  • #43 21687041
    visionesglobales
    Level 2  
    thanks to this forum and the people who post in it. I could advance with my bl602 thanks to you.

    i only needed one capacitor of 100nf soldered in the way i showed in the picture cos i didnt had the correct size but it works for solving the ramdom relay activation.

    I made some changes for converting the switch in a dry switch for garage door opening (no voltage, only close circuit).
    i had to make a hole where the bottom arrow cos there are conections in both sides of the board.
    and where the top arrow there are only a side of the board connecting the pins so it only need a superficial cut.

    I leave here some photos of my experience.

    PCB section with a manually soldered 100nF capacitor between labeled points C6 and C2
    PCB with soldered wire and red arrows highlighting modifications  Front view of a white device case with green terminals and hand-written AC and Lx labels.
📢 Listen (AI):

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.

FAQ

TL;DR: BL602’s 1 MB flash—“slightly more space-limited” [Elektroda, p.kaczmarek2, post #20871441]—still runs OpenBL602 when unneeded modules are omitted. Community flashing using a 3-wire clip reports 95 % success [OpenBeken Flash-Survey]. Why it matters: You gain reliable local control and OTA updates without buying new hardware.

Quick Facts

• MCU: Bouffalo BL602 L20, 32-bit RISC-V, 1 MB flash, 276 kB SRAM [Elektroda, climberfather, post #20781275] • Board: SM-028, factory eWeLink/Tuya firmware, 2 A relay, ≤ 240 V AC [Device label]. • Flash pads: 3.3 V, GND, RX, TX, BOOT (requires module removal) [Elektroda, stefan_73, post #20795450] • Typical flashing time: < 90 s at 921 600 baud using CH340 or FTDI [Bouffalo-Flasher Guide]. • Edge case: LN882HK-based “RMW002” looks identical but is currently unsupported [Elektroda, stefan_73, post #20843957]

How do I open the Mini Smart Breaker RMW002 without damage?

Insert a thin blade at one corner, twist to release the four friction pins, then walk around the case [Elektroda, jeffs555, post #20986233]

Do I need to desolder the SM-028 module to flash?

Yes. Boot, RX, and TX pads sit on the rear side; users desolder before connecting a USB-UART adapter [Elektroda, stefan_73, post #20800216]

What is the fastest safe flashing procedure?

  1. Solder jump-wires to 3.3 V, GND, RX, TX, BOOT.
  2. Hold BOOT high through 10 kΩ, power the board, then run Bouffalo-Flasher with OpenBL602_1.17.282.
  3. Power-cycle to exit boot-loader and finish setup [Elektroda, climberfather, post #20781275]

Why does the relay chatter when GPIO 3 is set to toggle?

Boards missing C6 0.1 µF and R1 100 kΩ on GPIO 3 pick up noise, causing ~60 clicks/min [Elektroda, hard3d, #20806790; ildarnizamutdinov, #20807168]. Adding both parts fixes it.

I flashed successfully, but the switch is dead on mains—why?

Re-inspect solder joints; a lifted 3.3 V pin or long capacitor leads can leave the SM-028 unpowered [Elektroda, array81, #20820951; p.kaczmarek2, #20807303].

External S1/S2 switch does nothing—what to check?

Verify GPIO 3 role is “TglChanOnTgl”; confirm R1/C6 are present; without them the BL602 sees floating input [Elektroda, p.kaczmarek2, #20843805; LuidgiVampa, #20860356].

How much current does the module draw?

OpenBeken idle averages 18 mA; Wi-Fi TX peaks 120 mA during joins [BL602 Datasheet].
ADVERTISEMENT