logo elektroda
logo elektroda
X
logo elektroda

mini smart switch - Belon BL2028N

skrc1 
mini smart switch - Native module firmware for working without a cloud, via mqtt service.


In the application from Tuya, it looks like this:


The case is assembled on 4 latches, it is opened with a mediator or a plastic card or nails :-) we start from the slot from the corner with contacts.
Inside is a quite decent 16 amp relay and an unknown module a la Tuya

The module has a chip from Belon BL2028N

Not enough information, for example
We will flash it as a BK7231N chip
To read data and firmware, it is enough to connect an external power supply 3.3v and uart
All pins are accessible without desoldering the module.

Thanks to the developers - you can not look for anything, everything is signed on the board:

we need 3.3v, GND, RX1, TX1
TP CS is obviously not a select chip, but CEN (reset), see photo from the front, but we don’t need it.

It is better to flash according to the instructions from https://github.com/openshwprojects/OpenBK7231T_App#flashing-for-bk7231n
You need Python installed and flasher archiver
But for starters, it is useful to save the current firmware. switches -r --unprotect --startaddr 0x0 --length 200000 (--baudrate 115200 if your port can't 921600 all described here: https://github.com/OpenBekenIOT/hid_download_py )
The method of reading (firmware) is connected to the port, we start the flash driver for reading (writing) and we supply power to the chip. If everything starts up, the flash driver will begin to cheerfully draw different numbers on the screen. If it doesn't start, repeat. If you get a 2mb file at the output - you have a backup of poppies, calibrations and firmware from the manufacturer - you can always roll back.
On the project page
take the latest release
We need BK7231N UART Flash
We flash:
python uartprogram c:\temp\OpenBK7231N_QIO_1.14.104.bin --unprotect -d com10 -w --startaddr 0x0

At the end of the firmware, the chip will reboot and an open access point will rise. We connect, open the address 192.168.4.1 in the browser
We set up a connection to wifi, mqtt, and set the chip pin settings:

We send discovery

and get in HA:

Russian version

About Author
skrc1 wrote 8 posts with rating 15 . Been with us since 2022 year.

Comments

Add a comment
p.kaczmarek2 01 Nov 2022 11:27

This is great discovery. I haven't ever seen a FL_M99_V1 module yet. Great job. Hmm, Belon BL2028N... I remember seeing Belon name somewhere. I think it was here: https://obrazki.elektroda.pl/6374864200_1667298394_thumb.jpg... [Read more]

kaankasim88 08 Nov 2022 23:24

I got one of these https://www.aliexpress.com/item/1005003162960608.html?spm=a2g0o.order_list.0.0.76f11802vbkD5g and inside I found Belon BL2028N with FL_M95_V1 (not 100% sure, hard to read) I couldn't... [Read more]

p.kaczmarek2 09 Nov 2022 10:14

Hello, this is an interesting finding. Now you should find VDD (3.3V) and GND. GND will be connected to the ground of electrolytic capacitors on the board. Even to the ground pin of the 400V capacitor.... [Read more]

kaankasim88 09 Nov 2022 18:28

I succeeded in flashing openbeken to these lights, mostly through trial. I found GND and assumes 3v3 would be next to it based on similar board. I took some closeup pictures. https://obrazki.elektroda.pl/5330815800_1668014590_thumb.jpg... [Read more]

p.kaczmarek2 10 Nov 2022 12:07

Great job. Feel free to create new thread, also maybe attach there some screenshot from the page offer where you bought the LED, etc. We will add this to devices database later. Regarding 9W... well,... [Read more]

kaankasim88 10 Nov 2022 13:16

Absolutely doesn't take 9W from the mains, only about 3 watts for white and seems to be a bit less with warms. So only 5-6W for whites, RGB's probably add up to 9W but I didn't test it. Also, all the... [Read more]

grericht 15 May 2023 20:51

seeml like i found a special version of this smart switch. flashing worked like descripted but pins are different. https://obrazki.elektroda.pl/3574245600_1684176608_thumb.jpg https://obrazki.elektroda.pl/3387007500_1684176608_thumb.jpg... [Read more]

p.kaczmarek2 15 May 2023 21:13

Please post JSON template from Web App as well, thanks! [Read more]

grericht 15 May 2023 21:31

here it is: { "vendor": "Tuya", "bDetailed": "0", "name": "Wi-Fi DIY Smart Switch", "model": "Mini WiFi Smart Switch", "chip": "Belon BL2028N", "board": "TODO", "flags": "1024", ... [Read more]

p.kaczmarek2 15 May 2023 21:42

What do you mean by "upload", to our database? You can open Pull Request here: https://github.com/OpenBekenIOT/webapp but I can also add this template later myself, if that's needed [Read more]

grericht 15 May 2023 21:57

opened a pull request. hope i did i the right way. https://github.com/btsimonh/oldopenbekenwebpages/pull/4 but i cant upload the json file there? [Read more]

p.kaczmarek2 15 May 2023 22:05

Sorry, but this pull request is not correct. 1. you are opening pull request to wrong repository 2. the pull request does not contain update of devices.json file 3. the pull request should not contain... [Read more]

justindaleorton 24 Sep 2023 14:33

I have the same version of this, but the pinout listed doesn't toggle the relay. Does anyone know if there is yet another variant with the Rel on another pin? [Read more]

p.kaczmarek2 24 Sep 2023 14:44

So maybe do the GPIO extraction like in our tutorial? [Read more]

khangtm1work 09 Aug 2024 06:08

I am trying to flash a mini smart switch - Belon BL2028N and I saw you can flash it and I tried but it doesn't work. I don't know if I soldered it wrong or not that I can't flash it https://obrazki.elektroda.pl/4359788000_1723177882_thumb.jpg... [Read more]

p.kaczmarek2 09 Aug 2024 13:53

Try BK7231N mode. This is a standard Beken key. [Read more]

khangtm1work 11 Aug 2024 17:04

Thanks a lot!!! I tried it and it worked [Read more]