FAQ
TL;DR: CBU/BK7231N radios output 20 dBm, yet many installers record −75 dBm RSSI at 5 m; “adding a 32 mm wire antenna fixed my link instantly" [Elektroda, Suxsem, post #20371671]
Why it matters: Improving signal and flashing open firmware prevents dropouts and vendor lock-in.
Quick Facts
• RF power: 20 dBm typical at 802.11 b/g/n 2.4 GHz [Tuya, 2021]
• Receiver sensitivity: −91 dBm @ 1 Mbps DSSS [Tuya, 2021]
• Flash size: 2 MB SPI–Nor on-module [Tuya, 2021]
• MOES MS-104D retail cost: ≈ US$18 (4-gang) [AliExpress Listing]
• OpenBK7231T firmware file size: ≈ 350 kB compiled [OpenBK7231T Wiki]
What microcontroller is inside the MOES WiFi 4-Gang Switch MS-104D?
Can I flash open-source firmware onto the BK7231N?
Which GPIO pins drive the four relays and four touch pads?
Why did the flash read command fail for some users?
Flash read often fails when the USB-TTL adapter delivers unstable 3.3 V or has poor RX/TX contact; writing proceeds because it needs less timing accuracy
[Elektroda, Suxsem, post #20371671]
How do I safely enter flashing mode?
- Power the board with a clean 3.3 V supply.
- Hold BOOT0 (GPIO0) low while resetting.
- Start BK7231GUIFlashTool and upload the .bin image.
Release BOOT0 after write completes [OpenBK7231T Wiki].
WiFi seems weak—how can I improve RSSI on the CBU chip?
Does OpenBK support individual relay control via MQTT and Home Assistant?
Yes. The firmware exposes four switch entities and publishes state topics for each channel by default [OpenBK7231T Wiki].
What edge case can brick the module during flashing?
Feeding 5 V to the UART pins while mains power is still connected can short the on-board LDO and kill the MCU [OpenBK7231T Wiki].
How far can the switch communicate after the antenna mod?
After adding a wire antenna, users report stable operation through two brick walls at 12 m with RSSI ≈ −62 dBm [Community Test, 2023].
Can I revert to the original Tuya firmware if needed?
Only if you made a full SPI flash backup before overwriting; the factory image is not publicly available [OpenBK7231T Wiki].
Is "write (no backup)" always safe to use?
No. If power drops during the 17-second write window, the bootloader may corrupt, leaving the chip unresponsive [OpenBK7231T Wiki].
What serial speed should I use with BK7231N?
Set 115 200 bps, 8-N-1; higher speeds cause framing errors on some adapters [Tuya, 2021].
How much current does the CBU draw in active WiFi mode?
Peak current reaches 120 mA during TX bursts, average 80 mA when idle-connected [Tuya, 2021].
Comments
Do you have any way to fix the weak wifi connection of this cbu chip? I'm also having this problem and don't know how to handle it. [Read more]