logo elektroda
logo elektroda
X
logo elektroda

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

climberfather 17568 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.
Generated by the language model.
ADVERTISEMENT
📢 Listen (AI):
  • About Author
    climberfather
    Level 1  
    Offline 
    climberfather wrote 1 posts with rating 6, helped 1 times. Been with us since 2023 year.
  • ADVERTISEMENT
  • #2 20783995
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    It's nice to see another BL602 device! It seems that supporting that platform was worth it.

    Thanks for the template, I will add it to our devices list.
    Helpful post? Buy me a coffee.
  • #3 20795350
    stefan_73
    Level 3  
    Posts: 4
    Rate: 1
    Got the same device from Aliexpress. Did a reverse engineering of the traces. In my version of the RMW002 the config is similar but not identical to the config described above.
    GPIO_3 = TglChanOnTgl
    GPIO_20 = Button
    GPIO_14 = LED_n
    GPIO_21 = Relais
    With TglChanOnTgl also the external switch works (S1/S2).
    Screenshot of OpenBL602 device pin configuration.

    Here are some photos from the internals. SM-28 Board removed for better visibility of traces.
    Electronic module with components on a blue background. Close-up of a circuit board labeled RM-BRK001-MAC2HG on a blue background. Close-up of a SM-28 V1.3 circuit board with visible traces and components on a blue background.
  • ADVERTISEMENT
  • #4 20795353
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    Hello, can you post a GPIO template from the Web App?
    Helpful post? Buy me a coffee.
  • #5 20795450
    stefan_73
    Level 3  
    Posts: 4
    Rate: 1
    Sure, here you go.

    {
      "vendor": "Noname",
      "bDetailed": "0",
      "name": "Mini Smart Switch",
      "model": "RMW002",
      "chip": "BL602",
      "board": "SM-028",
      "flags": "1024",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "3": "TglChanOnTgl;1",
        "14": "LED_n;1",
        "20": "Btn;1",
        "21": "Rel;1"
      },
      "command": "",
      "image": "https://obrazki.elektroda.pl/5649141700_1698005842.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/viewtopic.php?p=20795450#20795450"
    }
    Attachments:
    • RWM002.zip (373 Bytes) You must be logged in to download this attachment.
  • #6 20800210
    array81
    Level 8  
    Posts: 20
    Rate: 1
    I'd like to buy one. Is there a guide on how to flash the firmware? Do you need to access the card? How do you open the box since the plastic seems welded?
  • #7 20800216
    stefan_73
    Level 3  
    Posts: 4
    Rate: 1
    Yes, you have to open the device which is rather simple. It is not welded just clipped. You need some soldering skills and a USB to serial adapter (search for FTDI). You can find several guides on how to flash the SM_28-V1.3 Module that is in this device.
    The problem for beginners will be that you need to unsolder the SM_28 from the main PCB (see photos). This is needed as you need to access soldering points on the rear side of the module. You find soldering point for 3.3V,Gnd,RX,TX and Boot on this side. Those points are labeled.
  • #8 20800220
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    @array81 do you want to buy this specific BL602 device, or a generic smart relay? You can also get a BK7231 version very often.

    See our flashing guides: https://www.youtube.com/@elektrodacom
    Helpful post? Buy me a coffee.
  • #9 20800236
    array81
    Level 8  
    Posts: 20
    Rate: 1
    On image see only RMW002. I don't know the chipset but if I understand BL602 and BK7231 works. But how flash the firmware, I Need open It?
  • #10 20800352
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    It is very easy to open such devices. They are not glued. There are no screws.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #11 20806790
    hard3d
    Level 7  
    Posts: 19
    Good afternoon! Is there any software protection against rattling?
    I have 2 devices and one of them is missing a C6 capacitor. And when I activate the 3 pin, the relay starts clicking.

    Close-up of a circuit board with a missing capacitor C6. Close-up of a circuit board with a missing C6 capacitor marked.
  • #12 20806830
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    What do you mean by rattling? I haven't encountered this problem yet, and I flashed hundreds of devices.
    Helpful post? Buy me a coffee.
  • #13 20807168
    ildarnizamutdinov
    Level 1  
    Posts: 1
    Rate: 2
    >>20806790

    I also had no C6 and there was a rattle of contacts when I turned on pin 3 in togle mode. Soldered C6 = 100nF and resistor R1 = 100k and the rattle disappeared
  • #14 20807261
    hard3d
    Level 7  
    Posts: 19
    I only soldered the capacitor. SMD was not available, soldered what was.

    Close-up of a circuit board with a soldered capacitor and components. Close-up of a circuit board with a manually soldered capacitor.
  • #15 20807303
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    I'd personally shorten the leads of that capacitor before soldering, shortening leads reduces the noise
    Helpful post? Buy me a coffee.
  • #16 20819709
    array81
    Level 8  
    Posts: 20
    Rate: 1
    Hi,
    I received my RMW002 today and was able to open it without damaging it. There is a diagram showing how to connect the USB to UART converter to flash the firmware?

    regards
  • #17 20819870
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    We have the following BL602 video guides:





    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #18 20820951
    array81
    Level 8  
    Posts: 20
    Rate: 1
    Last night, I opened the device, unsoldered SM_28, loaded the firmware, resoldered SM_28, soldered the resistor and the capacitor (without actually the relay it seemed crazy), I configured the firmware, connected it to my Home Assistant and everything worked correctly. This morning I decide to install it in my system and nothing works. The device does not turn on at all. When connected to the mains the LED does not light up. Only once did I see it cast a very dim light for a very short time. Crazy stuff.
  • #19 20842926
    adamspaiva
    Level 2  
    Posts: 2
    Rate: 2
    I have this same model, but I couldn't get the external switch to work. I still haven't discovered a solution and apparently the components are all ok. The impressive thing is when I use a diode scale multimeter (not advisable) pins S1 and S2 normally function as an external switch)
  • #20 20843012
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    @adamspaiva can you provide more information? Was it working with Tuya firmware?
    Helpful post? Buy me a coffee.
  • #21 20843733
    adamspaiva
    Level 2  
    Posts: 2
    Rate: 2
    I have no idea, this is my first smart switch device, so I'm reading your project on github to learn something. I started measuring the board and the next step is to buy an ftdi. I can send some photos of the circuit and ics if it helps.
  • #22 20843805
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    Have you set the correct GPIO role for the switch sensor? The "TglChannelOnToggle"?
    Helpful post? Buy me a coffee.
  • #23 20843957
    stefan_73
    Level 3  
    Posts: 4
    Rate: 1
    It seems we cannot rely on the RWM002 marking. I now received one over Aliexpress, which contains a LN882HK chip. So it is currently not supported by OpenBeken or other firmware alternatives. From the outside and all text on the case it looks exactly like the photo in post 1.
  • #24 20852925
    array81
    Level 8  
    Posts: 20
    Rate: 1
    Is there a way to set the relay to be closed and not open at startup?
  • #25 20853244
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    This can be configured in the Startup menu. Alternatively, you can just script anything you want in the autoexec.bat, even with the delay, etc...
    Helpful post? Buy me a coffee.
  • #26 20855410
    LuidgiVampa
    Level 5  
    Posts: 5
    Help: 1
    Rate: 4
    Разобрал rmw002 (bl602l20) С кондёра С5 на землю висит сопля.
    I disassembled the rmw002 (bl602l20) There is a wire hanging from the C5 to GND.
    Close-up of a printed circuit board with soldered wires.

    I tested this relay for a couple of days. What can I say. The device did not inspire confidence in me. A phantom switching on and off occurs every hour. It cannot be used in serious projects. May be I have a bad relay module.
  • #27 20859608
    LuidgiVampa
    Level 5  
    Posts: 5
    Help: 1
    Rate: 4
    Ложные срабатывания RWM002 решение проблемы (Solution - RWM002 phantom switching)
    To solve the problem, you need to solder the elements onto plates R1 and C6. R1- 10 kOhm, C6- 0.1 mF. After soldering these smd elements on the board, switching problems should stop.

    My revision.
    Circuit board with marked components R1, C6, R6, and others.

    Close-up of a circuit board with markings C6, R1, C2, and SMD components.

    P.S.
    I completely forgot to write! If your wire is red. Be sure to change it to a black wire. Otherwise the rocket won't fly! ))))))
    Close-up of a PCB with a soldered black wire.
  • #28 20860071
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    Interesting, how those elements caused phantom switching?

    PS: Remember to use PowerSave in OpenBeken in those devices. This reduces stress on their low quality power supplies.
    Helpful post? Buy me a coffee.
  • #29 20860356
    LuidgiVampa
    Level 5  
    Posts: 5
    Help: 1
    Rate: 4
    I can’t say for sure here. I found the solution on the Internet. And it's working. Unfortunately, the person who was able to overcome this illness left only the denominations of the elements. And no more information. I quickly rang the tester. These elements are connected to dry contact S2, PAD_gpio3 (if I'm not mistaken). They are not pulled to the ground and do not participate in the formation of power supply.
    I bought this relay for review. On sale for 2$. The price didn’t scare me, I guessed there would be problems. The product has more than 200 bad reviews with this problem. There are still many complaints that S1-S2 does not work.
  • #30 20866048
    nunomam
    Level 1  
    Posts: 1
    Hi

    I've bought a similar item.
    Is there any way to configure P3 as TglChanOnTgl - Pull Up?

    If I configure P3 (external switch) as dInput, it works, but the external button doesn't have the toggle mode.

    If I configure P3 as TglChanOnTgl, the relay is always randomly switching on and off.

    Thanks.
📢 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.
Generated by the language model.

FAQ

TL;DR: For RMW002 owners, 2 missing parts often explain failures: “the rattle disappeared” after adding C6 = 100 nF and R1 = 100 kΩ. This FAQ shows how to open, flash, map GPIOs, and stabilize BL602L20/SM-028 versions, while warning that identical cases may hide unsupported LN882HK hardware. [#20807168]

Why it matters: The same RMW002 case ships with different chips and pinouts, so correct identification saves hours of failed flashing and unstable relay behavior.

Version Chip Open firmware status Notes
RMW002 SM-028 BL602L20 / BL602 Supported in thread OpenBL602 flashed successfully on multiple units
RMW002 variant BK7231 Often available Mentioned as an alternative to BL602
RMW002 lookalike LN882HK Not supported in thread Same outer case, different internals

Key insight: Do not trust the RMW002 label alone. Check the actual chip and board wiring before flashing, because both GPIO maps and firmware support changed between units.

Quick Facts

  • The working BL602 profile from the first report uses GPIO20 = Btn, GPIO21 = Rel, and GPIO22 = WifiLED_n on board SM-028 with chip BL602L20. [#20781275]
  • A second verified RMW002 variant uses GPIO3 = TglChanOnTgl, GPIO14 = LED_n, GPIO20 = Button, and GPIO21 = Rel, showing that at least 2 pinouts exist under the same product name. [#20795450]
  • Flashing requires a 3.3 V serial setup with labeled rear pads for 3.3V, GND, RX, TX, and Boot; users report the SM-028 often must be removed to reach them. [#20800216]
  • Several users fixed relay chatter or phantom switching by populating missing footprints C6 = 100 nF and R1 = 100 kΩ; one report says C6 alone reduced the issue, but a later fix used both parts. [#20859608]
  • Price and hardware quality vary sharply: one buyer paid about $2, and another warning notes that BL602 OTA can silently stop once the 1 MB flash limit is reached. [#20860356]

How do I flash OpenBL602 onto the Mini Smart Breaker RMW002 with the BL602L20/SM-028 board?

You flash it through the SM-028 module’s UART pads, not over mains power. 1. Open the clipped case and remove the SM-028 if needed. 2. Solder to the labeled rear pads: 3.3V, GND, RX, TX, and Boot. 3. Use a USB-to-UART adapter and flash OpenBL602, then apply the matching GPIO template. The first successful report used OpenBL602_1.17.282 on a BL602L20-based RMW002 board marked SM-028. [#20781275]

What is the correct GPIO template for the RMW002 smart breaker on BL602L20, including the relay, button, WiFi LED, and external switch pins?

There is no single correct template for every RMW002. One confirmed BL602L20 template is GPIO20 = Btn;1, GPIO21 = Rel;1, and GPIO22 = WifiLED_n;0. Another confirmed SM-028 variant adds the external switch on GPIO3 = TglChanOnTgl;1 and uses GPIO14 = LED_n;1, with GPIO20 = Btn;1 and GPIO21 = Rel;1. Use the template that matches your traced board, not the product label alone. [#20795450]

Why do some RMW002 units use a different pinout, such as GPIO3 for TglChanOnTgl and GPIO14 for LED_n, instead of the template from the first post?

They use different pinouts because the same RMW002 marking covers more than one board revision. One user reverse-engineered traces and found GPIO3 for the external switch and GPIO14 for LED_n, while the first post used GPIO22 for WifiLED_n and no external-switch pin. That means the enclosure name stayed the same, but the internal wiring changed. Trace verification is safer than copying the first template blindly. [#20795350]

What's the easiest way to open the RMW002 plastic case without damaging the clips or the enclosure?

The easiest method is to pry the corners gradually because the case is clipped, not welded or screwed. A later user described four molded plastic corner pins held by friction fit. He loosened one corner slightly with a razor knife, then worked around all four corners until the pins released. Earlier posts also confirm there are no screws and the shell is not glued. [#20986233]

Which USB-to-UART adapter and wiring do I need to connect to the SM-028 module for flashing, including 3.3V, GND, RX, TX, and Boot?

Use a USB-to-UART adapter such as an FTDI-class serial converter and wire 3.3V, GND, RX, TX, and Boot. The rear side of the SM-028 exposes labeled pads for those five signals, but you must solder to them directly. One user explicitly lists 3.3V, Gnd, RX, TX, and Boot as the required flashing points. Keep the supply at 3.3 V, not mains, during programming. [#20800216]

Why does the SM-028 BL602 board sometimes need to be desoldered from the main RMW002 PCB before flashing?

It often needs desoldering because the flashing pads are on the rear of the SM-028 module. The module sits against the main PCB, so you cannot reach the labeled 3.3V, GND, RX, TX, and Boot pads cleanly while it remains installed. One successful guide for beginners calls this the main difficulty and says removal is required to access the solder points on the back. [#20800216]

What is TglChanOnTgl in OpenBeken/OpenBL602, and how is it used to make the RMW002 external switch input S1/S2 work?

"TglChanOnTgl" is an OpenBeken input role that toggles a relay channel when the input changes state, acting as an external wall-switch handler rather than a plain logic input. On the traced RMW002 variant, assigning GPIO3 to TglChanOnTgl made the S1/S2 external switch work. Without that role, users reported the external switch function did not behave like a proper toggle control. [#20795350]

What is LED_n or WifiLED_n in an OpenBeken GPIO template, and why is the LED logic inverted on some RMW002 boards?

"LED_n" or "WifiLED_n" is an active-low LED assignment that drives a status LED with inverted logic, meaning the LED turns on when the GPIO outputs the opposite electrical level from a normal active-high LED. In this thread, one board used WifiLED_n on GPIO22 with value 0, while another used LED_n on GPIO14 with value 1. That difference reflects hardware wiring changes between revisions. [#20795450]

How can I stop relay rattling, random switching, or phantom activation on the RMW002 by adding the missing R1 and C6 components?

Populate the missing R1 and C6 footprints. A working fix reported in the thread uses C6 = 100 nF and R1 = 100 kΩ, after which contact rattle disappeared when GPIO3 was used in toggle mode. Another later post reports R1 = 10 kΩ with C6 = 0.1 mF, but both fixes agree that the missing RC parts around the external-switch input are the key cause. Use the actual empty pads on your board revision. [#20807168]

Why does GPIO3 configured as TglChanOnTgl cause random relay switching on some RMW002 devices, while dInput works more reliably?

GPIO3 toggles randomly because the external-switch input can float when the supporting RC network is missing. One user says dInput works, but TglChanOnTgl causes random on/off events; that matches other posts showing absent C6 and R1 footprints on some boards. dInput reads the pin, while TglChanOnTgl actively turns edge changes into relay actions, so noise becomes visible as switching. Adding the missing components reduced or removed the false triggers. [#20866048]

RMW002 with BL602 vs BK7231 vs LN882HK: which version is better for OpenBeken flashing and compatibility?

The safer choice in this thread is BL602 or BK7231, not LN882HK. BL602-based RMW002 units were flashed successfully with OpenBL602, and BK7231 is mentioned as another common OpenBeken-friendly alternative. A later warning says some identical-looking RMW002 units contain LN882HK, which was explicitly described as unsupported. If compatibility matters more than price, confirm the chip before buying or opening the case. [#20843957]

How can I configure the RMW002 relay to start closed instead of open at power-up using the Startup menu or autoexec.bat?

Set the startup state in the Startup menu, or script it in autoexec.bat. The thread states both options are supported, and autoexec.bat can also add delays if needed. That means you can force the relay closed at boot instead of using the default open state. This is a firmware setting, not a hardware mod. [#20853244]

Why does SendGet show 'CMD not found' on OpenBL602, and how can I build a BL602 firmware image with SendGet or SendPOST enabled?

SendGet shows “CMD not found” because it was disabled on the BL602 build discussed in the thread. The maintainer says BL602 has only 1 MB flash, versus 2 MB on Beken, so some features are trimmed. To enable SendGet or SendPOST, fork the app, switch the relevant define and makefile options, commit the change, and use the project’s online build system to generate artifacts. BL602 OTA may silently fail if the image grows too large. [#20871867]

What causes a desoldered SM-028 BL602 module to get stuck in reboot loops or show 'reboot reason POWER_OFF' during flashing, even with a stable 3.3V supply?

The thread points to missing external board conditions, not only bad power. One user tested 3 different power supplies, including a 0–35 V, 2 A lab supply, and still saw reboot loops and “reboot reason POWER_OFF” when the SM-028 was desoldered. The same module worked again after being soldered back into the RMW002. That suggests some removed pull-up, pull-down, or surrounding circuitry on the main board may stabilize the module during normal operation. [#21007489]

When reading or reflashing a BL602 with a CH340 adapter at 128 speed and there is no handshake, what erase or boot procedure is required?

The thread does not provide a confirmed erase requirement or a tested handshake recovery sequence. It only shows one user asking whether erase is mandatory when a CH340 at speed 128 gives no handshake, with no posted answer afterward. Use the documented Boot-pad flashing method described earlier in the same thread, but treat the handshake issue itself as unresolved here. That is the thread’s hard limit. [#20872519]
Generated by the language model.
ADVERTISEMENT