Elektroda.com
Elektroda.com
X
Elektroda.com

mini smart switch - Belon BL2028N

skrc1 1098 6
  • mini smart switch - Native module firmware for working without a cloud, via mqtt service.
    mini smart switch - Belon BL2028N
    mini smart switch - Belon BL2028N
    In the application from Tuya, it looks like this:
    mini smart switch - Belon BL2028N
    mini smart switch - Belon BL2028N
    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
    mini smart switch - Belon BL2028N
    The module has a chip from Belon BL2028N
    mini smart switch - 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.
    mini smart switch - Belon BL2028N
    Thanks to the developers - you can not look for anything, everything is signed on the board:
    mini smart switch - Belon BL2028N
    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.
    mini smart switch - Belon BL2028N
    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:
    Code:
    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:
    mini smart switch - Belon BL2028N
    We send discovery
    mini smart switch - Belon BL2028N
    and get in HA:
    mini smart switch - Belon BL2028N
    Russian version

    Cool? Ranking DIY
    About Author
    skrc1
    Level 3  
    Offline 
    skrc1 wrote 5 posts with rating 12, helped 0 times. Been with us since 2022 year.
  • #2
    p.kaczmarek2
    Level 28  
    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:
    mini smart switch - Belon BL2028N
    Belon Writer 1.55? Does it ring a bell? It seems like a previous version of Beken Writer 1.60. Was Belon renamed to Beken at some point?

    I am attaching the document where I've found the mention of Belon Writer.
    mini smart switch - Belon BL2028N
    EDIT: attaching some extra documentation related to BL.
  • #4
    p.kaczmarek2
    Level 28  
    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. Can you find it?
    3.3V might be slightly harder, but you can do it by the process of elimination.
    It's obviously not than pin, because it goes to LED:
    mini smart switch - Belon BL2028N
    You can also look where the other signals go or which signals go to chip that may look like a 3.3V LDO.

    I would need better photos of board to help more. So maybe start with GND...

    PS: Isn't this board similar to one here?
    https://www.elektroda.pl/rtvforum/topic3923992.html
    Markings 4 and 5 are similar.
    5 is most likely PWM5 which is GPIO26 on Beken and 4 is PWM4 which is GPIO24 on Beken.
    Most likely same logic goes for 2 etc...

    Here are Beken PWM pins for the reference:
    5PWM5I/OGPIOP_26, which is connected to the P26 pin on the internal IC
    6PWM4I/OGPIOP_24, common GPIO, which is connected to the P24 pin on the internal IC
    13PWM3I/OGPIOP_9, common GPIO, which is connected to the P9 pin on the internal IC
    14PWM2I/OGPIOP_8, which is connected to the P8 pin on the internal IC
    10PWM1I/OGPIOP_7, which is connected to the P7 pin on the internal IC
    7PWM0I/OGPIOP_6, which is connected to the P6 pin on the internal IC


    What kind of LED driver chip is on the board with LEDs? Is it a "I2C"-based one, or is it a PWM user?
  • #5
    kaankasim88
    Level 3  
    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.

    mini smart switch - Belon BL2028N mini smart switch - Belon BL2028N mini smart switch - Belon BL2028N mini smart switch - Belon BL2028N

    Device powered on after flashing, so I guess 3v3 pin is correct. In my first attempt I used completely wrong pins (gpios) for 3v3 and ground, but I was able to flash openbeken just fine. The only issue was that the device obviously didn't power on after.

    The IC on the led side is "BP1633". Also non of the pin configuration on the database matched this device, but I found the correct ones.

    Pins
    6 = 4
    7 = 3
    8 = 5
    24 = 2
    26 = 1

    These lights are so disappointing though. I thought 9w would be better than my dumb ww leds but It seems it's only 9w when all of the leds are on, not just whites.

    I'll go ahead and create a separate thread now.
  • #6
    p.kaczmarek2
    Level 28  
    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, first of all, the power consumption is not the good determinant of lighting, because some LEDs are less efficient than others, and also, does it really takes 9W from mains? Sellers tends to overestimate stuff to make their products seem more attractive.
  • #7
    kaankasim88
    Level 3  
    p.kaczmarek2 wrote:
    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, first of all, the power consumption is not the good determinant of lighting, because some LEDs are less efficient than others, and also, does it really takes 9W from mains? Sellers tends to overestimate stuff to make their products seem more attractive.


    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 other teardowns with this exact same bulb and shell (right down to the printed text) has 4 more LED's on them.