logo elektroda
logo elektroda
X
logo elektroda

[CB2S/BK7231N] LDNIO SEW3452 USB QC extension/charger strip

p.kaczmarek2 2106 1
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • LDNIO SEW3452 power strip with three sockets and four USB ports in a box. Today I will present the interior and firmware change of a strip/extender offering three power sockets and four USB sockets, in addition with QC support. I will upload open source software onto the product OBK so that it works 100% locally, in a way that is secure and respects the user's privacy, without the cloud.

    Purchase LDNIO SEW3452 USB QC
    This strip is available to buy in many shops, usually for a little more than 100 zł:
    Search results for LDNIO SEW3452 power strip product.
    Parameters by. Seller:
    Quote:

    Manufacturer: LDNIO
    Model: SEW3452
    Number of AC outlets: 3
    Number of USB ports: 4
    Cable length: 2m
    Power rating: 2500W
    Input: 100-250V 50/60Hz 10A (max.)
    PD output: 5V/3A, 9V/3A, 12V/2.5A, 15V/2A, 5A 30W (max.)
    PPS output: 3.3-5.9V/3A, 3.3V-11V/3A
    QC output: 5V/3A, 9V/2A, 12V/1.5A 18W (max.)
    Auto-ID output: 5V/2.4A
    Power output: 30W (max.)
    Wireless connectivity: WiFi 2.4 GHz
    Colour: White
    Application: Tuya Smart
    Dimensions: 15.6 x 10.3 x 4 cm
    Gross weight: 535g

    What you get in practice:
    Box of LDNIO SEW3452 power strip with three sockets and four USB ports. Packaging of LDNIO SEW3452 power strip with 200 cm power cord Package of the LDNIO SEW3452 Wi-Fi power strip on a table. White power strip with three electrical sockets and four USB ports in a box. Instruction:
    User manual of LDNIO SEW3452 power strip Wi-Fi power strip instruction manual with three sockets and four USB ports. User manual for LDNIO SEW3452 Wi-Fi Smart Power Strip Instruction for adding WiFi-Socket device on a leaflet. User manual for a power strip with WiFi function.

    Interior of the LDNIO SEW3452 USB QC This will be a bit tricky. You need a special screwdriver with a triangular tip.
    Bottom of a power strip with technical data and QR codes Screwdriver opening power strip case with a set of bits.
    The interior is really rich. I can even see some coil and filters, although there is an empty space for a varistor?
    Interior of a disassembled LDNIO SEW3452 power strip showing electronics and sockets. Interior of a power strip with electronic components. Interior of the QC USB LDNIO SEW3452 power strip showing electronic components. There is also an NTC thermistor, probably limits the inrush current.
    Interior of LDNIO SEW3452 power strip with WiFi module CB2S.
    The WiFi module is a CB2S (BK7231N). You can see the step down converter next to it (element U4 with large coil L2). The relay is for 5V, 1ASTE-DC5V.
    Interior of LDNIO SEW3452 power strip showing electronic components. Interior of LDNIO SEW3452 power strip showing electronics including WiFi module, capacitors, and relays.
    You can see the A63A circuit:
    Close-up of the PCB board of the LDNIO SEW3452 power strip with visible electronic components and USB connectors. Close-up of the interior of the LDNIO SEW3452 power strip showing an electronic component and USB ports. Close-up of electronic components on the LDNIO SEW3452 circuit board
    The intermediate inverter is based on NDP1335KC:
    Close-up of a circuit board with electronic components, including USB ports and capacitors. Close-up of a circuit board with electronic components, including USB ports and capacitors.
    Technical specification of the NDP1335KC chip.
    PCB designation: SCW3451-A REV1.5
    MK2687+NDP1360+NDP1335+FT8498A
    Interior of a disassembled power strip showing the circuit board.
    On the underside I also see an NDP7912KC and I think some kind of optocoupler.
    Interior of SEW3452 power strip with electronic components on PCB Close-up of a PCB with electronic components inside the LDNIO QC USB SEW3452 power strip. Interior of the LDNIO SEW3452 power strip showing a printed circuit board. Close-up of a circuit board with electronic components and markings. Close-up of the circuit board inside the LDNIO SEW3452 power strip. Close-up of the PCB of the QC USB LDNIO SEW3452 power strip with visible electronic components. Close-up of the interior of the LDNIO SEW3452 power strip showing electronic components. Close-up of a circuit board with electronic components. NDP7912KC is a synchronous rectifier, not bad, it's more efficient than a Schottky diode:
    Flyback converter schematic with transformer and PWM circuit.
    Another inverter seen on the bottom is the NDP1360:
    Technical specifications of the NDP1360KC converter Diagram of a typical application circuit with an integrated circuit and passive components.
    The flyback converter controller itself here is an MK2687:
    MK2687 series - wide power supply range and high efficiency flyback PWM controller. Technical features of the MK2687A/B power module.
    [b] Current capacity test of the LDNIO SEW3452 USB QC
    I wanted to test the current capacity of this strip, but I did not have a suitable artificial load. I therefore used two loads at once - LD25 and LD35.
    Testing LDNIO SEW3452 power strip with two loads Two electronic loads with fans and LED displays showing current values. Two test loads with fans and digital displays on a table. LDNIO SEW3452 power strip connected to testing devices. Let's add up the currents - 3.5A + 2.74A,
    Power: 18.2W + 12.3W. That is, a total of 31W.
    Then the protection is switched on.

    I also checked the QC with my Xiaomi phone:
    Charger Doctor display showing a voltage reading of 1.84A. Display of a meter with a connected USB cable showing 7.49 V.
    Truly, it switches on 7.5V and 1.5A.

    However, not every port has QC:
    Display of a USB Charger Doctor current meter connected to an LDNIO power strip showing a reading of 1.51A. Electronic voltmeter displaying 4.89V connected to a USB port of the LDNIO power strip.

    Changing the QC USB firmware LDNIO SEW3452 In the middle is CB2S, or BK7231. You can upload OpenBeken:
    https://github.com/openshwprojects/OpenBK7231T_App
    According to the flasher instructions:
    https://github.com/openshwprojects/BK7231GUIFlashTool
    And our tutorials on YT:
    https://www.youtube.com/playlist?list=PLzbXEc2ebpH0CZDbczAXT94BuSGrd_GoM
    CB2S is best soldered out. I soldered it out straight away, I didn't test the programming in the circuit. After all, all you need is a bit of braid, flux and you're done.
    Close-up of a circuit board labeled SCW3451-A REV1.5 with electronic components. Close-up of the PCB of LDNIO SEW3452 power strip showing electronic components. PCB module with pin labels on a wooden surface.
    My flashing circuit (USB to UART converter and LDO 3.3V):
    Breadboard connected with an electronic module and wires on a wooden surface.
    After reading the 2MB firmware my flasher correctly decodes the Tuya configuration partition, so we know the GPIO roles. There is no need, as with Tasmota, to guess what is on which pin. Everything is given like on a tray:
    BK7231 flasher software interface with device GPIO configuration readout results.
    Tuya configuration:

    Code: JSON
    Log in, to see the code

    Word description:
    
    Device seems to be using CB2S module, which is BK7231N chip.
    - Relay (channel 1) on P6
    - Relay (channel 2) on P7
    - Relay (channel 3) on P8
    - Relay (channel 4) on P26
    - WiFi LED on P23
    - Pair/Toggle All Pin on P24
    


    The fourth relay controls the USB outputs.
    OpenBeken template:
    Code: JSON
    Log in, to see the code

    The template can be added according to the instructions from here:



    After uploading, everything works as expected.


    Summary Quite a nice strip, and even future-proof - without QC it's already like being without a hand. The electronics inside itself are quite complex and you don't see too much cost cutting, this is no longer a simple USB "charger" power supply, there are several inverters, there is PD control and they even gave a synchronous rectifier instead of a Schottky diode at the output of the first stage (flyback converter). In addition, the product can be converted to work locally and with Home Assistant, so there are no privacy concerns. Just solder out the WiFi module and upload the firmware , no problem with GPIO configuration, my flasher reads everything automatically.[/b]

    Cool? Ranking DIY
    Helpful post? Buy me a coffee.
    About Author
    p.kaczmarek2
    Moderator Smart Home
    Offline 
    p.kaczmarek2 wrote 12319 posts with rating 10206, helped 583 times. Been with us since 2014 year.
  • ADVERTISEMENT
  • #2 21559220
    Jinaria
    Level 8  
    You can use this script in the autoexec.bat file:
    First set the pin 24 to "BtnScriptOnly, then create autoexec.bat in the filesystem and pase the script below:

    
    setButtonTimes 30 3 1
    addEventHandler OnClick 24 ToggleChannel 1
    addEventHandler OnDblClick 24 ToggleChannel 2
    addEventHandler On3Click 24 ToggleChannel 3
    addEventHandler On4Click 24 ToggleChannel 4
    addEventHandler OnHold 24 restart
    

    After reboot, Use the button to control the outlets and USB or to Restart the chip:
    Press Once = Toggle Relay 1
    Press Twice = Toggle Relay 2
    Press Three times = Toggle Relay 3
    Press Four times = Toggle USB Power
    Long Press = Restart
📢 Listen (AI):
ADVERTISEMENT