logo elektroda
logo elektroda
X
logo elektroda

Info on BL602 Module SDV-002_V1.2 from Aliexpress 3-Gang Switch, Pin Compatibility & GPIOs

patentjyp 17952 66
Best answers

How can I identify the pinout and flashing/boot connections for the SDV-002_V1.2 BL602 module in a 3-gang Aliexpress wall switch?

You can flash it by using the standard BL602 UART pins plus the BOOT strap: TX and RX are on the expected pads, VCC/GND are on the main board pads, and pulling R2 up to 3.3 V during power-up reliably puts the module into boot mode [#20533595] For the 3-gang version, the working OpenBeken mapping found in the thread is pin 1 = Rel;2, pin 2 = Btn;2, pin 3 = Rel;1, pin 12 = WifiLED;0, pin 14 = Btn;1, pin 20 = Btn;0, and pin 21 = Rel;0 [#20535155] The same mapping was later packaged into a full device template for the SDV-002_V1.2 board, confirming the 1/2/3-gang relay and button assignments [#20535955] A later teardown also identified the module as SDV-002_V1.2 / TI602B3S made by Trolink [#21125557]
Generated by the language model.
ADVERTISEMENT
  • #61 21589619
    ausalex
    Level 3  
    >>21589603

    Yes that is what appeared to be happening, in the browser window that appears on connect. It seems OK now it is connected to the network and I go there directly with Safari
  • ADVERTISEMENT
  • #62 21589630
    p.kaczmarek2
    Moderator Smart Home
    It seems to work on my iPhone. Can you provide more details which browser do you have?
    Info on BL602 Module SDV-002_V1.2 from Aliexpress 3-Gang Switch, Pin Compatibility & GPIOs
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #63 21590483
    ausalex
    Level 3  
    >>21589630

    Safari on iOS 18.6 works now it is on my network but never worked when it was acting as a hotspot.
  • ADVERTISEMENT
  • #64 21590654
    p.kaczmarek2
    Moderator Smart Home
    Hm.. let me recheck... in AP mode
    iOS 15.8.3, it seems... still working
    Info on BL602 Module SDV-002_V1.2 from Aliexpress 3-Gang Switch, Pin Compatibility & GPIOs
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #65 21629997
    bashioo
    Level 1  
    Thanks to this forum and this post specifically, I was able to flash yet another incarnation of a very similar relay from AliExpress.

    2 Channels eWeLink WiFi Smart Switch Module 7-32V

    AliExpress link: https://www.aliexpress.com/item/1005009212238503.html

    WiFi relay module SDV-002_V1.2 with two blue relays and various electronic components
    2CH eWeLink WiFi switch module placed on grey carpeted floor
    Smart switch box eWeLink 7–32V with WiFi, CE, and Alexa/Google Assistant logos
    Receiver module label with manufacturer details and CE, UKCA, RoHS markings
    WiFi relay module under magnifying glass, with soldered wires and a lit red LED

    Exactly the same BL602 Module SDV-002_V1.2.

    Flashed as per instructions from this post - powered the board separately via USB, and only connected Ground, TX and RX from FTDI adapter. Connected Reset to VCC via 10k resistor.

    Config:

    
    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "Full Device Name Here",
      "model": "enter short model name here",
      "chip": "BL602",
      "board": "TODO",
      "flags": "1088",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "0": "Rel;0",
        "1": "Rel;1",
        "12": "Btn;0",
        "22": "Btn;1"
      },
      "command": "",
      "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
    }
    


    Could not find WiFi LED though.
  • #66 21630790
    divadiow
    Level 38  
    bashioo wrote:
    Could not find WiFi LED though.

    Odd. There can't be that many GPIOs left to try on that module when you subtract pwr, gnd and your other discoveries.

    Sometimes pin config is printed out at boot by factory firmware, if you took a backup.
  • #67 21702698
    mseelye
    Level 1  
    >>21452814
    @dullu
    Hello, I have a very similar unit to the one you were able to flash.
    Relay board with Wi-Fi module and four push buttons on a green PCB

    Some QQs:
    Were you able to get it into boot mode using that R2 wire just going to Pin1/EN? Or did you find some other way to get to BT?

    Also I'm assuming in your images `Blue` is VCC, across from it `White` is GND, on the same side as GND is RX and TX (Red-ish and Tan-ish). And the other (white-ish) wire looks to be soldered to R2. Is that correct?

    Also, is TX actually connected to anything? I can't seem to trace it, (I have a SDV-002_V1.2 as well)

    Thank you!

Topic summary

✨ The discussion centers on the BL602-based SDV-002_V1.2 module found in 3-gang and other multi-gang Wi-Fi touch switches purchased from AliExpress, primarily focusing on pin compatibility, GPIO mapping, and flashing procedures. The module integrates a BL602 chip with a 10-pin touch controller and relay-driving transistors. Users mapped pins using multimeter continuity tests, identifying GPIOs connected to relays, touch buttons, and a Wi-Fi LED. The BOOT (BT_EN) pin corresponds to GPIO8 and must be pulled high (e.g., via resistor or soldered wire to R2) to enter UART download mode for flashing. Flashing tools such as BLDevCube and blflash were recommended, with OpenBeken firmware (OpenBK7231T_App) as the preferred custom firmware. Challenges included identifying correct pinouts, ensuring sufficient power supply (external LDO recommended), and overcoming flashing errors like "shake hand fail." The module's pinout partially resembles ESP-07 and TYWE3S modules but is distinct. Users shared JSON device templates for 1-, 2-, 3-, and 4-gang versions, enabling configuration in OpenBeken. The switches originally run modified eWeLink firmware, with some identified as Sonoff knockoffs or branded as Axus. Response delay in touch sensing was noted and resolved by enabling the "instant touch reaction" flag in firmware. Attempts to use ESPHome were unsuccessful due to lack of BL602 support. The SDV-002_V1.2 module is also identified as TI602B3S by Trolink, with datasheets shared. Overall, the thread provides detailed hardware analysis, pin mapping, flashing instructions, firmware recommendations, and community-shared configurations for these BL602-based smart switches.
Generated by the language model.

FAQ

TL;DR: Flashing the SDV-002 V1.2 (Bouffalo BL602) at 2 000 000 baud verified 100 % success while “set instant touch reaction” cuts switch latency below 0.1 s [Elektroda, p.kaczmarek2, #20888403, #20814638].

Why it matters: Faster DIY flashing and snappier touch response turn these budget Wi-Fi wall switches into reliable local-control devices.

Quick Facts

• MCU: Bouffalo Lab BL602 @ 192 MHz, 2 MB SPI-flash detected [log #20814624] • Module pinout follows TYWE3S/ESP-12 layout; 3.3 V logic, 1.27 mm pitch [Elektroda, p.kaczmarek2, post #20531756] • Typical flashing baudrate 500 k–2 000 000, UART 0 pins GPIO6 (TX) / GPIO7 (RX) [Elektroda, logs #20814624] • Minimum stable supply ≈ 120 mA; 4 mA PL2303 LDO fails to boot [Elektroda, chlebok, post #20815848] • BOOT (GPIO8) reachable via R2 pad; pull-high with 10 kΩ during power-up [Elektroda, gyenchev, post #20533595]

What exactly is the SDV-002 V1.2 module?

It is a 24 mm × 16 mm Wi-Fi/BLE module built around the Bouffalo BL602 RISC-V SoC with 2 MB on-board SPI flash and PCB antenna, used in many 1- to 4-gang touch wall switches sold on AliExpress [Elektroda, patentjyp, post #20531652]

Which GPIOs drive relays and buttons on 3-gang switches?

Factory mapping: Relay 0 GPIO21, Relay 1 GPIO3, Relay 2 GPIO1; Buttons 0 GPIO20, 1 GPIO14, 2 GPIO2; Wi-Fi LED GPIO12 [Elektroda, gyenchev, post #20535155]

How do I enter bootloader mode to flash OpenBeken?

  1. Solder a wire to the R2 pad (connected to GPIO8/BOOT).
  2. Hold R2 at 3.3 V through a 10 kΩ resistor and power the board.
  3. Connect TX, RX, VCC (3.3 V) and GND to a USB-UART and start BLDevCube or blflash.
    Flashing succeeds as soon as the tool handshakes [Elektroda, gyenchev, post #20533595]

Flasher says “SHAKEHAND FAIL”. What now?

This means the MCU never entered UART download. Check that BOOT is high, swap TX/RX, lower baud to 115 200, and power the board from a 200 mA-capable 3.3 V regulator—not the 4 mA PL2303 LDO that caused repeated failures [Elektroda, chlebok, #20815848; p.kaczmarek2, #21214638].

Which toolchain works on Windows?

The BouffaloLab DevCube (v1.8.6) contains BlDevCube.exe for GUI flashing; it’s linked in post #20532765 and supports full backup/restore in “Advanced” mode [Elektroda, p.kaczmarek2].

Can I run ESPHome on BL602?

No. ESPHome targets Espressif chips only. For BL602 the maintained open-source firmware is OpenBeken, which already offers MQTT, Home Assistant auto-discovery and Tuya-like templates [Elektroda, divadiow, post #21196987]

How do I remove the 1-second touch delay?

In OpenBeken enable flag 6 “instant_touch_reaction”. Users report relay activation drops from ≈1.2 s to <0.1 s [Elektroda, SuperXL, post #20888453]

Is LittleFS or file storage available?

LittleFS is disabled on BL602 builds because only 2 MB flash leaves ~32 kB PSM space; use Short Startup Command or MQTT for scripts instead [Elektroda, p.kaczmarek2, post #20816125]

Where can I download stock firmware?

Community dumps for single-, dual-, triple- and quad-gang variants (v1.3.2–v1.6.0) are hosted at github.com/openshwprojects/FlashDumps [Elektroda, divadiow, post #21454829]

What current does the board draw during Wi-Fi TX?

Measured peak is ~180 mA at 3.3 V during 802.11 TX; flashing is reliable once supply can deliver ≥120 mA continuous [Elektroda, chlebok, post #20815848]

Edge-case: my USB-UART powers the module but it resets when Wi-Fi starts.

Budget PL2303 adaptors export only the chip’s 4 mA LDO. Use an external AMS1117-3.3 or TC1264-3.3 regulator rated 300 mA as shown in the video guide [Elektroda, p.kaczmarek2, post #20815897]

How can I back up firmware before experimenting?

Open BLDevCube, enter Advanced ➜ Read Flash, set length 0x200000, click Read. “One could also try doing a binary backup with BLDevCube.exe” [Elektroda, p.kaczmarek2, post #20535243]

Can button LEDs be dimmed or colour-swapped in software?

No. LEDs are hard-wired to the Hellosi H8G300H touch ASIC; PWM on relay pins changes colour briefly but relay clicks at 50 % duty, so only hardware mods would invert colours [Elektroda, gyenchev, post #20535155]
Generated by the language model.
ADVERTISEMENT