logo elektroda
logo elektroda
X
logo elektroda

ONENUO ZHQ01 Smart USB Switch Teardown & Boot Log Analysis [BK7231N]

divadiow 2682 4
ADVERTISEMENT
  • Helpful post
    #1 20871539
    divadiow
    Level 34  
    I thought I'd present my own USB micro smart switch sold under the brand ONENUO with model ZHQ01. I see there's an identical device
    here but maybe this qualifies as a 'new' device that others may not find if searching for 'HC-S050-WIFI'.

    Opening was easy using a thin prying tool along the top edge of the unit. There isn't much glue so lifting one edge, once loose, will crack the rest out of place and allow you to open it.

    Silkscreen PCB numbers:
    DLX-USB-BK7231N 12V
    FR-4 L2MM

    I managed to guess TP6/7 were the TX1/RX1 so have attached the boot log.

    TP3 - CEN
    TP4 - TX0
    TP5 - RX0
    TP6 - TX1
    TP7 - RX1

    Code: JSON
    Log in, to see the code

    
    Device configuration, as extracted from Tuya: 
    - Button (channel 1) on P24
    - Pair/Toggle All Button on P8
    - WiFi LED on P6
    - Relay (channel 1) on P7
    Device seems to be using CB2S module, which is using BK7231N.
    And the Tuya section starts, as usual, at 2023424
    


    ONENUO branded USB smart switch, model ZHQ01, featuring a USB port and button.
    Product page of ONENUO 5V micro smart USB switch on AliExpress. Close-up of a circuit board with USB port and markings. Circuit board of the ONENUO ZHQ01 micro smart USB switch on a green measuring mat. Micro smart USB switch ONENUO ZHQ01 with detailed technical label. Close-up of a blue packaging for the USB Smart Adapter with technical specifications. Box with label of Tuya Smart Micro USB Adapter/Switch product. Blue box with the white text Micro on top. Close-up of the internal structure of a micro smart USB switch showing electronic components. Close-up of a PCB with visible electronic components and a BK7231N microcontroller. PCB with DLX-USB-BK7231N 12V markings and test points. Close-up of a printed circuit board with labels and connectors. Close-up of an open USB device with printed circuit board markings on a green mat. Opened micro smart USB switch with visible circuit board and components. Circuit board of a micro smart USB switch in a plastic casing. Screenshot of an app showing software update information: no updates available. Main module version is V1.3.10.
  • ADVERTISEMENT
  • #2 20871543
    divadiow
    Level 34  
    OBK Template

    Code: JSON
    Log in, to see the code
  • ADVERTISEMENT
  • Helpful post
    #3 20876895
    p.kaczmarek2
    Moderator Smart Home
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #4 21284444
    divadiow
    Level 34  
    The 3 channel version uses a CBU instead of the BK7231N on the main PCB, perhaps for reasons of space.

    White Wi-Fi USB module with three ports on a blue background, next to a user manual. Wi-Fi USB switch module with manual and packaging. USB Smart adapter with instruction manual. Electronic module with USB components on a wooden table. Circuit board with three USB ports and a wireless module, side view. CBU module with three USB ports on a blue background. Green circuit board with a USB module and electronic components. Close-up of a circuit board with a CBU module and USB ports.

    a solderless release from Tuya

    Close-up of an electronic module with a CBU chip, connected by red test leads with crocodile clips.

    boot from TX2

    Code: Text
    Log in, to see the code


    firmware 1.3.18 - not cloudcutter exploitable

    Code: JSON
    Log in, to see the code


    OBK template

    Code: JSON
    Log in, to see the code


    https://github.com/OpenBekenIOT/webapp/pull/1...mits/669f2bb6a0647a00648e1cbb9ff2b54decbc330d
  • #5 21284920
    p.kaczmarek2
    Moderator Smart Home
    Merged, thank you.

    We should have soon 650 devices.

    I am interested in the solderless method. Would you be able to write a short guide about that for our Tutorials section? Maybe we could help some more people to flash devices that way. Not everybody have soldering iron and can solder. When solderless UART flash is possible and reasonable?
    Helpful post? Buy me a coffee.
ADVERTISEMENT