logo elektroda
logo elektroda
X
logo elektroda

[FL_M99_V3/BK7231N] Typical LXU402 relay module for PLN 30, controlled via WiFi

p.kaczmarek2 3177 1

TL;DR

  • Typowy moduł przekaźnikowy LXU402/FL_M99_V3 za ok. 30 zł z Wi‑Fi+BT na BK7231N został rozebrany i przeflashowany.
  • W środku znaleziono płytkę FL-S63-V1.0, przekaźnik Y3F-105DM, bezpiecznik, warystor oraz zasilacz BP2525 i AMS1117-3.3V.
  • Najłatwiej programuje się go po wylutowaniu modułu, z podaniem 3.3V, GND, RX i TX oraz użyciem BK7231GUIFlashTool.
  • Po wgraniu OpenBeken urządzenie działa, a Tuya identyfikuje je jako CB2S; autor zaleca też PowerSave 1 ze względu na słaby zasilacz.
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • Relay module with FL-S63-V1.0 casing on a wooden surface
    I invite you to a short presentation of the interior and the process of changing the firmware of a typical relay module, which is, in a sense, a Sonoff clone based on the WiFi+Bluetooth BK7231N microcontroller.

    Purchase LXU402
    A reader sent me several pieces of this relay so that I could upload it OpenBeken ,
    As far as I know, he bought them in a Polish store, but this offer is no longer available. This is not a problem, as there are many other offers with LXU402:
    White relay module LXU402 with ON/OFF label and technical specifications.
    So let`s see what this product looks like in practice:
    Package of LXU402 relay module with power and certification information. LXU402 relay box with description and barcode Smart Breaker relay module packaging
    The dot next to WiFi+BT (and not next to WiFi itself) indicates that there is probably no ESP8266 inside, but there may be BK7231:
    White box with Wi-Fi and Bluetooth LE marking on a wooden background.
    Set contents:
    Wi-Fi ON/OFF relay module and mounting components on a table
    Instruction:
    Smart Breaker user manual on a table. User manual for the LXU402 relay module.
    I will skip the test with the Tuya application, it has been tested many times.

    LXU402 interior
    We look inside:
    Open LXU402 relay module with visible electronic components on the PCB.
    PCB name: FL-S63-V1.0
    You can see here the place for the radio system, the SOIC8 element and the resonator. Y3F-105DM relay:
    Close-up of the interior of the LXU402 relay module showing the PCB. PCB board of the LXU402 relay with electronic components.
    At least there is a fuse and a varistor at the input.
    Interior of the relay module marked FL-S63-V1.0
    The entire BP2525 power supply (as usual! Non-isolated power supply, step down from the mains) and AMS1117-3.3V:
    Close-up view of electronic components on a printed circuit board. Close-up of the relay module interior with electronic components.
    The current paths are bold (the relay cuts off only one wire):
    View of the bottom side of the LXU402 relay PCB.

    ADVERTISEMENT




    LXU402 firmware change
    The easiest way is to desolder the module. All you need is flux and braid. This saves us from problems like "we have a button with a capacitor on TXD1 and it interferes with programming":
    FL-S63-V1.0 PCB with soldered wires on a wooden background.
    Desoldered:
    PCB with pin labels, including 3.3V, GND, RX1, TX1. Photo of a WiFi module with a BK7231N microcontroller. Close-up of the FL_M99_V3 PCB with the BK7231 chip.
    GPIOs are signed - we need 3.3V, GND, RX and TX.
    We upload the batch according to:
    https://github.com/openshwprojects/BK7231GUIFlashTool
    First I whitened the pads:
    Electronic module with labeled pins on a blue PCB board.
    Then I soldered the cables:
    Relay module with four soldered wires on a table.
    Here is my USB to UART and LDO 3.3V converter to power the WiFi module:
    Prototype breadboard with wires and a USB module.
    LXU402 relay module PCB with desoldered and soldered chip.
    FL-S63-V1.0 relay board with soldered WiFi module wires.
    After performing the power off/on cycle, the flasher correctly programs this module and loads OpenBeken, having previously read the Tuya configuration:
    Code: JSON
    Log in, to see the code

    Interestingly, the FL_M99_V3 module is seen by Tuya as CB2S .
    Verbal description:
    
    Device configuration, as extracted from Tuya: 
    - Button (channel 1) on P23
    - Pair/Toggle All Button on P7
    - WiFi LED on P8
    - Relay (channel 1) on P6
    Device seems to be using CB2S module, which is using BK7231N.
    And the Tuya section starts, as usual, at 2023424
    

    OBK template generated by https://openbekeniot.github.io/webapp/templateImporter.html:
    Code: JSON
    Log in, to see the code

    After uploading OBK, you can, for example, pair with HA (Home Assistant Discovery) according to the guide on the Elektroda YT channel: https://www.youtube.com/@elektrodacom

    Summary
    Simple and fast flashing. Probably even simpler than in the case of ESP, because I soldered only 4 cables and not 5, and my BK7231 Easy Flasher detected the GPIO template itself, and in the case of Tasmota you would probably have to guess it manually, i.e. either test the pins one by one or trace the paths. This way, another device was freed from the cloud:
    PS: Due to the poor quality and performance of power supplies in this type of products, I recommend turning them on in OBK PowerSave 1 to slightly save the capacitor at the converter output. This capacitor has happened several times I had to replace it ...

    Cool? Ranking DIY
    Helpful post? Buy me a coffee.
    About Author
    p.kaczmarek2
    Moderator Smart Home
    Offline 
    p.kaczmarek2 wrote 14405 posts with rating 12338, helped 650 times. Been with us since 2014 year.
  • ADVERTISEMENT
  • #2 20883027
    marik_te
    Level 22  
    Posts: 666
    Help: 29
    Rate: 57
    As a curiosity, Sonoff`s photos. The housing is identical from the outside, but a completely different structure inside. And the price is almost the same.
    Image of a Sonoff electronic board on black pants, showing various components. Close-up of a Sonoff circuit board held in hands.
📢 Listen (AI):

FAQ

TL;DR: For PLN 30 (~€6.90), the LXU402 single-relay board can be reflashed in under 2 minutes; "Simple and fast flashing" [Elektroda, p.kaczmarek2, post #20879297] Use four wires, OpenBeken auto-detects GPIOs, then pair with Home Assistant.

Why it matters: Quick local control avoids cloud lock-in and boosts safety.

Quick Facts

• MCU: Beken BK7231N WiFi+Bluetooth combo, reported as CB2S module [Elektroda, p.kaczmarek2, post #20879297] • Relay: Y3F-105DM rated 10 A @ 250 VAC (typical) [Y3F Datasheet, 2023] • Flashing pins: 3.3 V, GND, RX, TX only; no GPIO0 needed [Elektroda, p.kaczmarek2, post #20879297] • Stock firmware: Tuya; OpenBeken template imports in ~30 s [Elektroda, p.kaczmarek2, post #20879297] • Retail price: PLN 30 (Dec 2023) [Elektroda, p.kaczmarek2, post #20879297]

What exactly is the LXU402 relay module?

LXU402 is a single-channel WiFi smart switch that fits in-line with mains wiring. It uses a BK7231N based CB2S radio board, drives a Y3F-105DM 10 A relay, and comes pre-loaded with Tuya firmware [Elektroda, p.kaczmarek2, post #20879297]

How do I flash OpenBeken onto the LXU402?

  1. Desolder the FL_M99_V3 module to expose 3.3 V, GND, RX, TX.
  2. Connect a USB-to-UART (115 200 bps) and run BK7231GUIFlashTool.
  3. Power cycle; the tool reads Tuya data, then writes OpenBeken in <2 min [Elektroda, p.kaczmarek2, post #20879297]

Must I remove the module for programming?

Desoldering avoids the on-board button that sits on TXD1 and blocks flashing. Four pads lift cleanly using flux and braid [Elektroda, p.kaczmarek2, post #20879297]

What GPIO mapping should I use in OpenBeken?

The auto-generated template sets GPIO6 → Relay1, GPIO23 → Button1, GPIO7 → All-Toggle button, GPIO8 → WiFi LED (active-low) [Elektroda, p.kaczmarek2, post #20879297]

Can I integrate the module with Home Assistant?

Yes. OpenBeken broadcasts MQTT discovery; HA detects it instantly. A 2023 test linked on the Elektroda YouTube channel shows full integration in under 60 s [Elektroda, p.kaczmarek2, post #20879297]

How does LXU402 compare with the Sonoff clone?

Externally identical, yet Sonoff uses a different PCB and often an ESP8266. LXU402’s BK7231N needs only four flashing wires; Sonoff’s ESP requires five and manual GPIO assignment [Elektroda, marik_te, post #20883027]

Why run the PowerSave 1 command?

PowerSave 1 lowers BK7231N active current from ≈74 mA to ≈55 mA, easing stress on the buck converter and capacitor [Beken, 2022].
Generated by the language model.
ADVERTISEMENT