logo elektroda
logo elektroda
X
logo elektroda

Aliexpress ' ON i OFF ' Wifi Smart Switch - BK7231N/T34 Pinout Search

leon22heart 345 14
ADVERTISEMENT
  • #1 21850861
    leon22heart
    Level 4  
    Hello again . Got this last batch of smart switches on aliexpress. From a first glance i cant seem to find any uart points on the board. So i want to ask this , has anyone on the forum posted something similar or has any thoughts if it can be flashed with openbk ?


    Green PCB in a white enclosure with a relay and blue screw terminals Aliexpress ' ON i OFF ' Wifi Smart Switch - BK7231N/T34 Pinout Search Aliexpress ' ON i OFF ' Wifi Smart Switch - BK7231N/T34 Pinout Search


    Packaging, a WiFi Smart Switch module in a white case, and a small manual on a white surface Packaging and Wi‑Fi ON/OFF smart switch module with user guide and QR codes on a white tabletop

    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "Full Device Name Here",
      "model": "enter short model name here",
      "chip": "BK7231N",
      "board": "TODO",
      "flags": "2048",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "6": "RCRecv;0",
        "8": "WifiLED_n;0",
        "10": "Btn_Tgl_All;0",
        "14": "TglChanOnTgl;1",
        "15": "Rel;1",
        "23": "TglChanOnTgl;1",
        "24": "Btn_Tgl_All;0",
        "26": "Rel;1"
      },
      "command": "PowerSave 1\r\n",
      "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
    }
  • ADVERTISEMENT
  • Helpful post
    #2 21850865
    divadiow
    Level 38  
    Any markings on that black square chip?
  • #3 21850874
    leon22heart
    Level 4  
    >>21850865 i am scanning now the board . Had to remove the button in order to scan properly. Will post in a little while.

    Added after 58 [minutes]:

    >>21850865
    T34
    Z547GYYJ9
    Y50B3C

    or

    T34
    2547GYYJ9
    X50B3C

    Seems to be a Beken BK7231N

    Ps1 if pin 2 and 3 are tx and rx i think i have found them on the back of the board. Missing vcc and ground.
  • Helpful post
    #4 21850996
    p.kaczmarek2
    Moderator Smart Home
    Where do you see RX and TX?

    This is T34 (BK7231N).
    T34 LGA36 flashing pinout diagram and a bottom-view photo labeled UART1, GND, and 3.3 V connections
    Helpful post? Buy me a coffee.
  • #5 21851045
    leon22heart
    Level 4  
    >>21850996 the shematic i saw was for 7231t . So either its t or n or the rx tx are not connected to the board.
  • ADVERTISEMENT
  • Helpful post
    #6 21851049
    p.kaczmarek2
    Moderator Smart Home
    Here is T34 guide:
    https://www.elektroda.com/rtvforum/topic4151159.html
    I think you still have easier scenario, you have physical access to TX and RX on pads of the T34, you can solder a very thin wire there...
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #7 21851052
    leon22heart
    Level 4  
    >>21851049 thank you my friend i think i absolutely fall in this scenario. Thankfully i have a solder station with heat gun. Bad thing is i never tried for someting this small.
  • Helpful post
    #8 21851053
    p.kaczmarek2
    Moderator Smart Home
    Well, you can try on scrap boards first. Get some old device and play around...

    One of the crucial things is to use thin wires, if you solder huge wire directly to T34 pad, you will tear off the pad.
    Helpful post? Buy me a coffee.
  • #9 21851058
    leon22heart
    Level 4  
    >>21851053 i can extract a single copper wire strand from a normal copper wire used for electricity or micro electronics.
  • #10 21851105
    p.kaczmarek2
    Moderator Smart Home
    Yes, that's not a bad approach, give it a go and let us know how it went.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • Helpful post
    #11 21851127
    leon22heart
    Level 4  
    >>21851105 Unexpectedly it went perfect . Posting firmware for the collection . Will update the template . Have another 3 to flash.
    Attachments:
    • readResult_BK7231N_QIO_2026-28-2-19-44-21.bin (2 MB) You must be logged in to download this attachment.
  • #12 21851145
    p.kaczmarek2
    Moderator Smart Home
    Yes! Did you also manage to solder it back in place?

    I usually solder it back in place on the same solder as it used to be, altough I often see people cleaning ICs with solder wick and applying new solder.
    Helpful post? Buy me a coffee.
  • #13 21851149
    leon22heart
    Level 4  
    >>21851145 using the same solder as it had . Have no confidence to add more solder or clean the pads . if it was a bigger chip np . Also i use the creamy solder wick not the liquid one thus making it more difficult.

    ps1 flashed and soldered successfully my 2nd switch .

    Added after 1 [hours] 16 [minutes]:

      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "Full Device Name Here",
      "model": "enter short model name here",
      "chip": "BK7231N",
      "board": "TODO",
      "flags": "1024",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "8": "WifiLED;0",
        "10": "dInput;0",
        "26": "Rel;0"
      },
      "command": "",
      "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
    }


    Template thus far . Is there anything in the firmware , another function or something i have to find ?
    And shoud i rename the topic to "on i off smart switch " ?
  • #14 21851425
    p.kaczmarek2
    Moderator Smart Home
    I think you should rather use Button and not dInput for button, or is this on purpose?

    You can rename topic to something more fitting if you feel like.
    Helpful post? Buy me a coffee.
  • #15 21851431
    leon22heart
    Level 4  
    >>21851425 No its not intentional. Just left it as found on Gpio doctor . I have no need for the button , only the relay , so i left it as is.

    Ps1 updated template on 1st post. Extracted from tuya firmware backup. It's complete.

Topic summary

A user received a batch of Tuya-based smart switches from AliExpress featuring the BK7231N chip but initially could not locate UART points on the PCB for flashing with OpenBK firmware. After removing the button for better inspection, markings on the black square chip confirmed it as a Beken BK7231N (T34). The user identified potential TX and RX pads on the back of the board but noted missing VCC and GND connections. Community members referenced a T34 (BK7231N) guide and suggested soldering thin wires directly to the chip pads for UART access, cautioning about the fragility of the pads. The user successfully soldered thin wires extracted from copper wire strands and managed to flash the firmware using OpenBK. The switches were then resoldered using the original solder without cleaning the pads. The user plans to update the device template with the new firmware details and flash additional units. The discussion includes references to the T34 chip schematic and practical advice on handling small SMD pads for UART flashing.
Summary generated by the language model.
ADVERTISEMENT