logo elektroda
logo elektroda
X
logo elektroda

Manhot Store's BK7231N / CB3S Tuya Smart 4 Gang Switch: WiFi not Zigbee, CB3S Chip Inside

celulari 
I've bought a wall switch from Manhot Store in aliexpress with 4 "clicky" buttons.

AliExpress link: https://www.aliexpress.com/item/1005005901971631.html
Four white wall switches with varying numbers of buttons are shown on an online store page.



The device is listed as a Zigbee Smart switch, but it's actually a WiFi switch!! with a CB3S chip inside.

Smart wall switch packaging with Wi-Fi and Zigbee features. Cardboard packaging of a Smart Light Switch with compatibility information for Google Assistant and Amazon Alexa printed on it. Orange box with a QR code and information about app availability on the App Store and Google Play.

Now the fun part!

White wall switch with four buttons and an LED indicator.
Wall switch with four buttons and visible electrical connections. Interior view of a wall switch housing with five buttons and LEDs on a circuit board.

Circuit board with visible buttons and Made in China labeling. Wall switch module with CB3S chip on a printed circuit board. CB3S module on a circuit board with visible traces and components.

Regarding functionality, when a button is pressed, the corresponding relay is triggered.
The button has a light that shows whether the relay is open or closed - it will show up as orange when the relay is ON and blue when the relay is OFF.

The device is powered by a CB3S chip, although not all of its pins are soldered on the PCB. Upon checking the datasheet for the MCU, we can determine the required pins to flash the device:

Datasheet: https://developer.tuya.com/en/docs/iot/cb3s?id=Kai94mec0s076

Soldered a small wire to the CEN pin to put the device into bootloader mode in order to flash a new firmware.
Pin Name Pin Number
CEN 3
VCC 8
GND 9
RX1 15
TX1 16



Circuit board with a CB3S module connected by wires to an adapter on a computer mat background.
Close-up of a CB3S module on a circuit board with connected wires. Electronic module with connected wires on a blue background. Back view of a red circuit board with soldered wires.

I was able to flash OpenBK using the new BK7231GuiFlashTool and the OpenBK7231N_QIO_1.17.308.bin firmware under windows, but no luck using the flash tool under linux (ubuntu).
I've attached the original .json device template.

This is the actual OpenBK pin configuration of the module.
PinTypeChannel
P6WifiLED_n-
P7Relay4
P8Relay3
P9Relay2
P10Button4
P14Relay1
P23Button3
P24Button2
P26Button1

Now only the orange led turn on when the relay is on, but the blue light doesn't work. it's fine...
Screenshot of the OpenBK7231N interface with toggle switch buttons.
Screenshot of OpenBK module pin configuration for a Wi-Fi switch.

About Author
celulari wrote 3 posts with rating 1 . Been with us since 2023 year.

Comments

p.kaczmarek2 02 Dec 2023 10:12

Thanks for the review. That's very strange, you got a WiFi version instead of Zigbee, you should get a refund! Regarding the template, can you also add GPIO in a form of OBK template from the Web App? EDIT:... [Read more]

celulari 03 Dec 2023 04:33

Hi! Playing a bit with the GPIO finder i've dicovered that PIN 11 controls the BLUE LEDS. Selecting "LED" for pin 11 turns on the blue LEDs when the relay is off. when the relay is on, le blue leds... [Read more]

p.kaczmarek2 03 Dec 2023 08:09

That's interesting and very useful. By the way, If you want a permanent setting, you can change LED_n to AlwaysHigh or AlwaysAll. [Read more]

celulari 03 Dec 2023 18:20

Thanks for the tip!! I'm trying to find the way to get the opposite behaviour of the leds. blue when the relay is on and orange when is off. my other light switches work that way and is more intuitive,... [Read more]

chabalalasmike 25 Jun 2024 11:48

What about the reset button at the top, what is the pin number? [Read more]

p.kaczmarek2 25 Jun 2024 12:41

Whoa, very good question! It seems that we've missed one pin: https://obrazki.elektroda.pl/1440584900_1719312080_thumb.jpg It seems I need to add backlit_io_pin to our flasher soon. [Read more]

chabalalasmike 28 Jun 2024 23:11

Any progress on finding that missing pin? [Read more]

p.kaczmarek2 29 Jun 2024 09:11

As I said, have you tried P11? [Read more]

chabalalasmike 29 Jun 2024 18:32

GPI013 [Read more]

p.kaczmarek2 02 Jul 2024 13:04

I can't see this particular GPIO in the JSON. Can you try getting Tuya binary (Web App -> Flash tab) and attach it here so I can investigate if it was correctly extracted? [Read more]

divadiow 20 Nov 2024 08:19

yes. I have a Tuya device with 3 LEDs and this in the keys. "backlit_io_pin": 23 Device configuration, as extracted from Tuya: - Button (channel 1) on P20 - LED (channel 1) on P26 - WiFi... [Read more]

p.kaczmarek2 20 Nov 2024 12:16

Isn't it already added? https://github.com/search?q=repo%3Aopenshwprojects%2FBK7231GUIFlashTool%20backlit_io_pin&type=code Or maybe I need to add a build... [Read more]

divadiow 20 Nov 2024 12:20

ah yes. a few commits not in June 5th build it seems [Read more]

divadiow 24 Nov 2024 10:35

https://obrazki.elektroda.pl/7361657300_1732440883_thumb.jpg https://obrazki.elektroda.pl/5401697800_1732440934_thumb.jpg cool I've rather presumptuously given it a version of 1.3.4 [Read more]