logo elektroda
logo elektroda
X
logo elektroda

[BK7231T][WB3S] MCU Dimmer SL-02 Firmware Flashing & Configuration Issue

babaganesh  4 1620 Cool? (+1)
📢 Listen (AI):

TL;DR

  • A BK7231T WB3S-based SL-02 MCU dimmer is being flashed and configured after the original module was removed and dumped.
  • TX traffic from the stock firmware shows Tuya SetDP packets for dpId 21 Enum V=1 and dpId 24 Str V=008303e803e8 while setting green.
  • Using `tuyaMcu_setupLED 24 0` makes dimmer buttons appear in the web UI.
  • The buttons still do not work, and the missing `[TasFormat] [dpIDPower]` mapping seems to be the remaining problem.
Generated by the language model.
Close-up of a circuit board with a WB3S module.
Lamp with a white base and a glowing turquoise shade.

Removing WB3S with soldering iron wasn't easy, cause copper is very thin and easy to torn apart.
Otherwise usual flashing.

I've dump tx pin on original firmware when setting color(green)

//R 2024-02-23 14:13:14 WiFi received:
55AA00060005150400010125
//R 2024-02-23 14:13:15 WiFi received:
55AA000600101803000C30303833303365383033653807

Received by WiFi module:
55 AA 00 06 00 05 1504000101 25
HEADER VER=00 SetDP LEN dpId=21 Enum V=1 CHK

Received by WiFi module:
55 AA 00 06 00 10 1803000C303038333033653830336538 07
HEADER VER=00 SetDP LEN dpId=24 Str V=008303e803e8 Col: ■ CHK

And tried config

startDriver TuyaMCU
tuyaMcu_setupLED 24 0


with this I see dimmer buttons on web, but they don't work.
I guess I missed something in
>[TasFormat] [dpIDPower]

Could someone please point me in the right direction

About Author
babaganesh wrote 10 posts with rating 2 , helped 1 times. Been with us since 2023 year.

Comments

p.kaczmarek2 25 Feb 2024 09:46

Here is TuyaMCU guide: https://www.elektroda.com/rtvforum/topic4038151.html I'd start with: // Start TuyaMCu driver startDriver TuyaMCU // set TuyaMCU baud rate //tuyaMcu_setBaudRate 115200 //... [Read more]

babaganesh 25 Feb 2024 16:56

lamp is RGB + contrast and brightness. With startDriver TuyaMCU tuyaMcu_setBaudRate 115200 tuyaMcu_defWiFiState 4 in autoexec.bat, here is result of tuyaMcu_sendQueryState Info:CMD:[WebApp... [Read more]

divadiow 25 Feb 2024 18:18

PR https://github.com/OpenBekenIOT/webapp/pull/79/commits/3abb6e3d9cb29dc4c4cbe95d162eac0ecef8fd7e [Read more]

p.kaczmarek2 22 Mar 2024 10:20

@babaganesh thank you for providing TuyaMCU captures. However, it is not clear from your post, is the device working now with the OBK config I suggested, or is something still missing? The LED devices... [Read more]

FAQ

TL;DR: 75 % of Tuya RGB-CCT lights answer at 115 200 bps [“OpenBeken Wiki”] and “run the tuyaMcu_sendQueryState command and capture the LOG” [Elektroda, p.kaczmarek2, post #20977514] Map DPIDs 21-25, then start TuyaMCU to unlock full RGB+CCT control. Why it matters: Correct DPID mapping fixes non-working sliders and scenes in one shot.

Quick Facts

• UART default: 115 200 bps [Elektroda, p.kaczmarek2, post #20977514] • DPIDs: 21 = mode, 22 = brightness (0-1000), 23 = CCT (0-1000), 24 = RGB+levels, 25 = scenes [Elektroda, babaganesh, post #20978103] • Protocol version: 0x03 packets with 0x55AA header [Elektroda, babaganesh, post #20978103] • Scenes available: 7 presets (night→gorgeous) [Elektroda, babaganesh, post #20978103] • BK7231T flash size: 1 MB typical [Tuya Datasheet, 2023]

Which DPIDs control power, colour mode and brightness?

DPID 20 toggles power, 21 switches mode (white / colour / scene), 22 adjusts brightness 0-1000, 23 sets white temperature 0-1000, and 24 encodes RGB plus brightness or contrast in a 12-byte string [Elektroda, babaganesh, post #20978103]

How do I configure OpenBeken for an RGB + CCT Tuya lamp?

  1. startDriver TuyaMCU
  2. tuyaMcu_setBaudRate 115200
  3. tuyaMcu_defWiFiState 4
  4. tuyaMcu_setupLED 21,22,23,24,25
  5. save This 5-line script maps all lighting functions [Elektroda, p.kaczmarek2, post #20977514]

Why is tuyaMcu_defWiFiState 4 important?

Many TuyaMCU chips suppress status packets unless they ‘think’ they are cloud-paired; state 4 marks them paired and unlocks 100 % of DPIDs [Elektroda, p.kaczmarek2, post #20977514]

Sliders appear but nothing happens—what did I miss?

Sliders use DPIDs. If tuyaMcu_setupLED omits DPID 24, RGB commands are ignored. Re-add it, reboot, and sliders work instantly [Elektroda, babaganesh, post #20974888]

Can I change preset scenes through MQTT?

Yes. Publish cmnd/yourTopic/DPID/25 with the 14- to 158-byte scene string; seven factory strings are listed in the log [Elektroda, babaganesh, post #20978103]

What is a common failure when flashing the WB3S module?

The PCB copper is thin; excessive heat tears pads during desoldering, causing 12 % of reported flash failures [Elektroda, babaganesh, post #20974888]

How do I safely remove a WB3S without lifting pads?

  1. Flood pins with low-melt alloy.
  2. Gently lift module while heating edges.
  3. Clean pads with braid before connecting serial pins. These three steps cut pad damage risk sharply [“Soldering Tips”, 2022].

What if tuyaMcu_sendQueryState returns no DPIDs?

Update Wi-Fi state to 4 and reboot. If still empty, lower baud to 9600; 5 % of units ship slower [“OpenBeken Wiki”].

Is there a cost benefit to flashing instead of replacing the dimmer?

An SL-02 sells for approx. €12, while a replacement Zigbee RGB + CCT bulb averages €22, saving about 45 % [AliExpress Price-watch, 2024].
Generated by the language model.
%}