logo elektroda
logo elektroda
X
logo elektroda

[BK7231N / T34 ] Teardown Tuya Generic Wifi Wall Light Switch 3 Gang

CameronDev 34488 115

TL;DR

  • A Tuya Generic WiFi Wall Light Switch 3 Gang with a BK7231N/T34 was torn down and prepared for OpenBeken flashing.
  • The front glass lifts off from the bottom opening, and the motherboard unclips easily, but the T34 QFN chip has no exposed programming pads.
  • It shipped from AliExpress with firmware 1.3.10 and was already patched against the CloudCutter exploit.
  • Hot-air desoldering, jumper wires, and bk7231flasher were needed to dump and reflash the chip, and the T34 was resoldered successfully.
  • OpenBeken and ESPHome pin maps are provided, but the dump could not extract Tuya config, so this is a difficult mod to attempt.
Generated by the language model.
ADVERTISEMENT
📢 Listen (AI):
  • Close-up of a small electronic board with thin wires soldered and labeled TX/RX, Ground, and 3.3V.
    Here is how you can flash a T34-based wall switch with OpenBeken. This switch has no programming pads available, so desoldering T34 in QFN case is required.

    Purchased from AliExpress: https://www.aliexpress.com/item/1005005732402318.html

    Packaging of a touch light switch with an illustration of a finger touching the panel. Close-up of a green product packaging with technical parameters of a wall switch.

    Nothing special in the box, comes with a capacitor and some screws, and a wiring diagram.

    Back of a WiFi wall switch with labels L3, L2, L1, L, and N. Touch switch with three buttons on a white panel.

    Teardown is very straightforward, a flat head screwdriver is all that is required: Just gently lever the front glass off (There is an opening at the bottom for this purpose). Removing the motherboard is as simple as unclipping 4 plastic clips and lifting it up. It is joined to the back via 6 pins.

    The image shows a disassembled wall switch with three touch buttons and a circuit board. Two printed circuit boards with electronic components, one placed in a white frame.
    Close-up of a printed circuit board with several electronic components. Close-up of a circuit board with three white rectangles on a blue background.

    Flashing is a lot less straightforward. This switch came patched for the cloudcutter exploit. (Firmware 1.3.10).
    The 4 pads on the board don't appear to be connected to the T34 which is the brains of the operation. The far right pad is 3.3V, the one next to it is GND, unsure of the other two.

    All the pins of the T34 are hidden, so flashing is non-trivial. I had to hot air desolder it, solder some jumper wires, and then dump/flash it via bk7231flasher. Miraculously, I managed to resolder it successfully. This is not for the faint of heart.
    The dump also failed to extract the tuya config, but I was able to reverse it via inspection.

    Close-up of T34 chip with soldered wires.

    OpenBeken config is:

    
    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "Tuya Generic Touch Light Switch 3 Gang",
      "model": ???",
      "chip": "BK7231N",
      "board": "",
      "flags": "1024",
      "keywords": [
        "T34",
      ],
      "pins": {
        "8": "WifiLED;55",
        "14": "Rel;1",
        "22": "Btn;3",
        "23": "Btn;2",
        "24": "Btn;1",
        "26": "Rel;2",
        "28": "Rel;3"
      },
      "command": "",
      "image": "https://obrazki.elektroda.pl/2902642800_1708303164.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/viewtopic.php?p=20968165"
    }
    


    ESPHome Config:
    
    esphome:
      name: lightswitch-3gang
    
    # Enable logging
    logger:
    
    # Enable Home Assistant API
    api:
      encryption:
        key: "REPLACEME"
        
    ota:
      password: "REPLACEME"
    
    wifi:
      ssid: !secret wifi_ssid
      password: !secret wifi_password
      fast_connect: true
      reboot_timeout: 0s
    
      # Enable fallback hotspot (captive portal) in case wifi connection fails
      ap:
        password: !secret wifi_password
    captive_portal:
    
    button:
      - platform: restart
        name: "Restart"
    
    sensor:
      - platform: wifi_signal
        name: "WiFi Signal Sensor"
        update_interval: 60s
    
    bk72xx:
      board: generic-bk7231n-qfn32-tuya
    
    binary_sensor:
      - platform: gpio
        id: binary_switch_1
        pin:
          number: P22
          inverted: true
          mode: INPUT_PULLUP
        on_press:
          then:
            - switch.toggle: switch_1
      - platform: gpio
        id: binary_switch_2
        pin:
          number: P23
          inverted: true
          mode: INPUT_PULLUP
        on_press:
          then:
            - switch.toggle: switch_2
      - platform: gpio
        id: binary_switch_3
        pin:
          number: P24
          inverted: true
          mode: INPUT_PULLUP
        on_press:
          then:
            - switch.toggle: switch_3
    
    switch:
      - platform: gpio
        id: switch_1
        name: Relay 1
        pin: P28
      - platform: gpio
        id: switch_2
        name: Relay 2
        pin: P26
      - platform: gpio
        id: switch_3
        name: Relay 3
        pin: P14
    
    status_led:
      pin: 
        number: P8
        inverted: true  # Inverting enables the key backlights.
    


    Hope this is helpful to someone, but I would strongly advise not purchasing this one. With the T34 package, and no exposed pads or silk screen, these are non-trivial to flash.
    Attachments:
    • readResult_BK7231N_QIO_2024-18-2-14-38-38.zip (1.04 MB) You must be logged in to download this attachment.

    Cool? Ranking DIY
    About Author
    CameronDev
    Level 4  
    Offline 
    CameronDev wrote 12 posts with rating 15, helped 1 times. Been with us since 2024 year.
  • ADVERTISEMENT
  • #2 20968230
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    This is the most pro way of flashing I've ever seen here:
    Image of an electronic circuit with connected wires on a board, labeled: TX/RX, Ground, 3.3V, and CEN bridged to ground.
    Just a quick question - was using CEN really necessary?
    Helpful post? Buy me a coffee.
  • #3 20968315
    CameronDev
    Level 4  
    Posts: 12
    Help: 1
    Rate: 15
    p.kaczmarek2 wrote:
    This is the most pro way of flashing I've ever seen here:


    A pro wouldn't have taken 3 hours to do it :D

    p.kaczmarek2 wrote:
    Just a quick question - was using CEN really necessary?


    Don't know, I didn't try without grounding CEN. I just read somewhere that I needed to ground it.
    Either way, TX/RX are also inaccessible, so it required removing the IC.
  • #4 20968350
    ferbulous
    Level 18  
    Posts: 419
    Help: 8
    Rate: 56
    Hi @CameronDev
    How did you apply the solder paste to the back chip?
    Do you cover the entire back or just meticulously apply to each of the small pads?
  • ADVERTISEMENT
  • #5 20968363
    CameronDev
    Level 4  
    Posts: 12
    Help: 1
    Rate: 15
    ferbulous wrote:
    Hi @CameronDev
    How did you apply the solder paste to the back chip?
    Do you cover the entire back or just meticulously apply to each of the small pads?


    I didn't use solder paste. I tried to add solder to the board using the soldering iron, but it mostly went onto the ground and ignored the pins.
    Those pads are TINY. The wires in that picture are 0.25mm copper wires. The first time I put the chip back on, I didn't do it right. It powered up and connected to WiFi, but only one relay worked. I had to re-flow it while putting more pressure on the IC with some tweezers to get it 100% working.

    I am 100% an amateur, and I think I got very lucky. I suspected someone with more experience/skill would have a much more reliable outcome.
  • ADVERTISEMENT
  • #6 20968413
    ferbulous
    Level 18  
    Posts: 419
    Help: 8
    Rate: 56
    I see, so it’s mostly solder reflow and you heat it up with hot air.
    I tried it once with esp32 ic chip that got displaced when i was desoldering. Didn’t quite work for me though
  • #7 20968437
    divadiow
    Level 38  
    Posts: 5027
    Help: 438
    Rate: 891
    >>20968165

    this is impressive. kudos
  • #8 20975882
    jkwim
    Level 13  
    Posts: 186
    Help: 4
    Rate: 25
    Just curious to know the temperature ranges and the air flow settings use in Hotair guns that you use for these kind of desoldering/soldering.

    Some recommend preheating the board and then having a quick blast of 400 degrees C for a short period to avoid damages to the surrounding components.
  • #9 20975908
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    It varies from station to station, I have a 50$ station that can't desolder a component at 450C and I have a 400$ station that desolders the same component at 350C.
    Helpful post? Buy me a coffee.
  • #10 20983577
    CameronDev
    Level 4  
    Posts: 12
    Help: 1
    Rate: 15
    I didn't pre-heat the board, and used one of these:

    https://www.aliexpress.com/item/1005005855040180.html
    Soldering station 8858 with digital hot air gun and accessories.

    I just set it as hot as it will go, with a fairly narrow nozzle.
    I put kapton tape on the other nearby components, so if they melted, at least they should stay in place.
  • #11 20983657
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    Which flux did you use (if any)?
    Helpful post? Buy me a coffee.
  • #12 20983797
    jkwim
    Level 13  
    Posts: 186
    Help: 4
    Rate: 25
    CameronDev wrote:
    I didn't pre-heat the board, and used one of these:

    https://www.aliexpress.com/item/1005005855040180.html
    Soldering station 8858 with digital hot air gun and accessories.

    I just set it as hot as it will go, with a fairly narrow nozzle.
    I put kapton tape on the other nearby components, so if they melted, at least they should stay in place.


    :-)
    I have the exact same device. I am a novice when it comes to use of heat gun. So far I have used it once to remove a CB3S module. Some nearby small SMD components flew off the board.

    That is why I wanted to understand the best practice before my next job.

    So what is the temperature that you use? And the air flow setting on this device?
  • #13 20983826
    CameronDev
    Level 4  
    Posts: 12
    Help: 1
    Rate: 15
    Flux I used: https://www.ebay.com.au/itm/203741564643

    Ill try work out the settings, but i suspect they are on the defaults. The controls for that hot air thing are awful.

    I am also a novice (as demonstrated by the cheap tools), but I think taping down anything you dont want to move is a good idea.
  • #14 20983830
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    jkwim wrote:
    So far I have used it once to remove a CB3S module. Some nearby small SMD components flew off the board.

    Did you use the Pb solder and flux trick?





    jkwim wrote:

    So what is the temperature that you use? And the air flow setting on this device?

    I've did a small research on that and it turned out that the same temperature setting (like 350C) gives different results on various stations:
    https://openshwprojects.github.io/hotair/350c.html
    So, I think you should experiment yourself for the best results.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #15 20983845
    divadiow
    Level 38  
    Posts: 5027
    Help: 438
    Rate: 891
    p.kaczmarek2 wrote:
    Did you use the Pb solder and flux trick?


    sorry to chime in on everything it probably seems! I did the pb/flux trick like your video once but it seems if you have a module with 3 sides of soldered pins you can't liquify the pb fast enough between them all. I've not tried a 2-sided module yet though.

    CameronDev wrote:
    The controls for that hot air thing are awful.

    good to know. I was looking at the 8858 too. but I thought maybe something like this instead https://vi.aliexpress.com/item/1005006047499507.html

    maybe theyre all much of a muchness until you bump up your budget to a certain level?
  • #16 20983879
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    divadiow wrote:
    I did the pb/flux trick like your video once but it seems if you have a module with 3 sides of soldered pins you can't liquify the pb fast enough between them all. I

    My video used JCD 8908 at 450C I think. Review:
    https://www.elektroda.pl/rtvforum/topic3970314.html
    (Use Google Translate)
    but as I said, 450 on one station is not like 450 on the other:
    https://openshwprojects.github.io/hotair/350c.html
    https://openshwprojects.github.io/hotair/450c.html

    divadiow wrote:
    I've not tried a 2-sided module yet though.

    Two sided module trick:


    Helpful post? Buy me a coffee.
  • #17 20985028
    CameronDev
    Level 4  
    Posts: 12
    Help: 1
    Rate: 15
    I used 480c (Whatever that actually ends up being), and the fastest fan speed. Desoldering smaller things is easier, the T34 came off fairly easily.
  • #18 21007112
    t2004dd
    Level 5  
    Posts: 11
    Rate: 8
    >>20968230
    Hi ! About bridge from PIN 9 - CEN to the GND : do you have it permanently or short up it when flash was started ? and what baud rate did you use ?
  • #19 21007722
    t2004dd
    Level 5  
    Posts: 11
    Rate: 8
    I flashed T34 chip successfully.
    Bridge CEN is not needed. You can start flashing if you just interrupt 3.3V , attached to the PIN8.
    I flashed it with baud rate 921600.

    BK7231N chip with soldered wires on a white surface.
    Electronic module with green screw terminal block and black relay on a PCB.
  • #20 21007826
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    Good job! I actually never use CEN for flashing these days, but I haven't really encountered any T34s so far, only BK7231N
    Helpful post? Buy me a coffee.
  • #21 21007852
    t2004dd
    Level 5  
    Posts: 11
    Rate: 8
    Btw, Smart switch came from the same seller in Orange box. My advice is not to buy such switches, to avoid having the extra trouble of soldering out the T34 chip.
  • #22 21008328
    CameronDev
    Level 4  
    Posts: 12
    Help: 1
    Rate: 15
    t2004dd wrote:
    My advice is not to buy such switches


    I wonder if this is what actually kills 3rd party firnware for Tuya devices. Im definitely not going to buy T34 devices if this is what is required to flash them. Would be nice if Tuya could provide an official flashing method.
  • #23 21008716
    t2004dd
    Level 5  
    Posts: 11
    Rate: 8
    I have bought them from Ali very cheap. 1.87 Euro for one. May be it was reason of big discount :) Today 18.03 they are still in Ali for the same price. If it doesn't bother anyone to do a little reflow.
  • #24 21008885
    ferbulous
    Level 18  
    Posts: 419
    Help: 8
    Rate: 56
    Does the EU version has the same pcb with t34?
    I’ve already purchased them so it might take another 1-2 weeks to update

    @t2004dd did you put kapton tape around the components next to the T34 chip before desoldering?
  • #25 21009070
    t2004dd
    Level 5  
    Posts: 11
    Rate: 8
    Yes, when I was working with the chip, everything around it was taped up with Kapton tape to keep the other parts from blowing away.
    I attached picture with the box and case, came to me with T34. Better look for old stock in white boxes. They came with PADs for TX/RX.

    Two boxes with a Wi-Fi smart switch on a table.
  • #26 21014447
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14580
    Help: 654
    Rate: 12604
    I would like to get one such switch for the upcoming video for our Youtube channel . If anyone has one to spare, let me know.

    @t2004dd I don't think that all orange box switches are T34, or at least some time ago I was flashing a batch in orange boxes that weren't T34. My "orange boxes" were bought on Allegro.

    Added after 1 [hours] 27 [minutes]:

    EDIT: @t2004dd see here:
    https://www.elektroda.com/rtvforum/topic3874289-240.html#20546731
    This user has the same (?) device - even Tuya sticker matches - but in CB2S version:
    Two images of a Wi-Fi switch with a CB2S module and an orange box.
    Helpful post? Buy me a coffee.
  • #27 21014957
    CameronDev
    Level 4  
    Posts: 12
    Help: 1
    Rate: 15
    Where would I need to ship it to? Can you cover shipping? I don't have any real use for mine to be honest. Also, will 240v work for you?

    It might actually be cheaper to just order you one from Aliexpress, I am a bit far away in terms of shipping.
  • #28 21015737
    karayoooo
    Level 1  
    Posts: 1
    Rate: 1
    Hello guys

    it can be done directly without unsoldering T34.
    Here in a tuya socket.
    Yes It's tricky and yes a pcb pad is quite (but not) broken but it works !

    Close-up of a circuit board with an integrated circuit and a missing capacitor marked as C1.
  • #29 21016910
    CameronDev
    Level 4  
    Posts: 12
    Help: 1
    Rate: 15
    @karayoooo Looks like your pads are exposed, so that's helpful. On my switch, they were completely covered. The serial pins were not extended out of the T34 at all. I tried to stick some sharp thin pointy sticks in under the package, but no luck there
  • #30 21021190
    Raufaser
    Level 10  
    Posts: 47
    Help: 3
    Rate: 15
    Hi. Since you are just talking about soldering a T34: I am looking for a breakout board for the T34. It is a QFN32 with 0.6mm pitch. I can't find one :-/ Strangely there are boards with 0.5mm and 0.65mm pitch. Do you guys have any idea? Maybe woth trying the 0.65mm one?
📢 Listen (AI):

Topic summary

✨ The discussion focuses on the teardown and flashing process of Tuya generic WiFi wall light switches based on the BK7231N chip and T34 board, particularly 3-gang and 2-gang variants. The T34 chip is in a QFN package with no accessible programming pads, requiring desoldering for flashing with OpenBeken firmware. Users share detailed methods for desoldering and resoldering the T34 chip using hot air guns (temperatures around 350-480°C), flux, and soldering techniques, emphasizing the difficulty due to tiny pads and risk of PCB damage. Alternatives like needle probes for direct serial connection are discussed but often limited by concealed pads. Flashing is done via UART or SPI using FTDI232RL or CH340G-based USB-TTL adapters, with baud rates up to 921600. Some users report success without grounding the CEN pin by interrupting 3.3V supply to enter flash mode. Firmware extraction challenges include missing or manually created JSON configs. The devices often include additional components like BL0937 power measurement chips and WF480RA RF transceivers for remote control, sometimes unadvertised. Community members provide pin mappings for relays, buttons, and LEDs, and share templates for OpenBeken configuration. PowerSave mode and local NTP server support in OpenBeken are also mentioned. The discussion includes warnings about the complexity of flashing T34 devices, recommending caution and skill in SMD rework. Some users note differences in PCB versions, with older white-box versions having accessible TX/RX pads. Overall, the thread serves as a comprehensive resource for hardware hacking and firmware replacement on T34-based Tuya switches.
Generated by the language model.

FAQ

TL;DR: At 480°C and 921600 baud, one expert conclusion was: "Bridge CEN is not needed." This FAQ helps OpenBeken users flash hard-to-access Tuya T34/BK7231N wall switches, recover pin maps when config extraction fails, and avoid common UART, power, and LED pitfalls on 1–3 gang boards. [#21007722]

Why it matters: These Tuya switches can look identical at purchase time, yet one version may flash from exposed pads while another requires chip removal, needles, or pogo-pin probing.

Method Hardware access Risk level Proven result in thread
Hot-air chip removal Full T34 desolder High Worked, but described as "not for the faint of heart"
Needle / sewing-needle UART Touch hidden pins in-circuit Medium Successful dump and flash without desoldering
Pogo-pin probe rig Weighted vertical probes Medium Used to flash multiple T34 devices quickly
Exposed factory pads Direct board pads Low Some later boards flashed easily from pads

Key insight: The hardest part is usually not OpenBeken itself. It is gaining stable electrical access to T34 UART, then keeping power, contact pressure, and baud rate stable long enough to read or write flash.

Quick Facts

  • One 3-gang T34 switch shipped with Tuya firmware 1.3.10, blocked Cloudcutter, and had four board pads where only 3.3 V and GND were identified as useful for power, not direct flashing. [#20968165]
  • Reported hot-air settings ranged from 400°C to 480°C, with one successful T34 removal taking under 60 seconds and another user running the fan at maximum speed. [#21049685]
  • Successful direct flashing reports used 921600 baud and also 230400 baud on similar T34 boards, but unstable setups produced read or write failures even after a nominally successful erase. [#21007722]
  • One buyer paid 1.87 euro per switch on 2024-03-18, which explains why some users still accepted the extra rework needed for T34 packages. [#21008716]
  • A cheap $50 hot-air station could fail at 450°C, while a $400 station removed the same part at 350°C; the temperature number alone was not a reliable benchmark. [#20975908]

How do you flash a Tuya T34/BK7231N wall light switch with OpenBeken when the module has no exposed programming pads?

You flash it by either removing the T34 or reaching its hidden UART pins in-circuit. 1. Open the switch by prying off the glass front and unclipping the board. 2. Expose UART by hot-air desoldering the QFN T34 or by touching RX/TX with needles or pogo probes. 3. Dump first, then write OpenBeken with a BK7231N-compatible tool and restore the board carefully. One successful 3-gang case needed full T34 removal because no programming pads reached the chip. [#20968165]

Why does Tuya config extraction sometimes fail on T34 firmware dumps with 'no json start found', and how can you recover the pin mapping manually?

It fails because the dump can contain Tuya data that the extractor does not parse cleanly, even though the configuration still exists in flash. You can recover the mapping by reading decrypted strings or boot logs and matching relay, button, and LED pins manually. On one 3-gang dump, the author rebuilt the map by inspection and published P8 as WiFi LED, P14/P26/P28 as relays, and P22/P23/P24 as buttons. That gives a working template even when automatic extraction fails. [#20968165]

What is the CEN pin on a T34 or BK7231N, and how is it used during flashing?

CEN is a control pin used to reset or enable the chip during entry to flashing mode. Early attempts grounded it because that was thought necessary, but later successful T34 flashes showed it was not required. A direct report stated, "Bridge CEN is not needed," and flashing started by interrupting 3.3 V on pin 8 instead. That makes CEN optional in this thread’s T34 cases, not a mandatory wire for every setup. [#21007722]

What is the BL0937 chip in Tuya smart plugs and switches, and why does it matter for OpenBeken PowerSave settings?

"BL0937 is an energy-measurement IC that reads electrical parameters, uses timing-sensitive signals, and appears in some Tuya plugs and switches, which makes aggressive MCU sleep settings more sensitive than on simple relay-only boards." It matters because one OpenBeken maintainer said PowerSave is fine on devices without BL0937, but BL0937 devices may need a different PowerSave approach. A 2025 plug example without BL0937 ran cooler after PowerSave, while BL0937 cases were called out as exceptions. [#21486413]

Which hot air settings work best for desoldering and resoldering a T34 QFN chip without frying the PCB or blowing away nearby SMD parts?

No single temperature works best; station behavior matters more than the number on the display. The safest thread-backed practice was: 1. Use Kapton tape on nearby parts. 2. Use a narrow nozzle and the lowest setting that actually melts solder on your station. 3. Verify on scrap boards before touching T34. Reported successful settings ranged from 400°C to 480°C, but a maintainer showed that 350°C on different stations produced very different real temperatures and heating times. [#21050033]

When flashing a T34, why might interrupting 3.3V or briefly making and breaking the TX connection work better than grounding CEN?

It can work better because the chip often enters the bootloader on a power-state transition or a momentary valid UART event, not from a permanent CEN short. One T34 user flashed successfully by interrupting 3.3 V on pin 8, and another later discovered that briefly lifting and re-touching the TX probe triggered communication. Those reports point to timing and contact quality as the real issue on hidden-pin T34 boards. [#21636218]

What OpenBeken pin configuration works for the Tuya Generic Touch Light Switch 3 Gang with T34 and BK7231N?

A proven 3-gang OpenBeken mapping is P8 = WifiLED;55, P14 = Rel;1, P22 = Btn;3, P23 = Btn;2, P24 = Btn;1, P26 = Rel;2, and P28 = Rel;3. The same thread also shared an ESPHome layout using P22/P23/P24 for buttons, P28/P26/P14 for relays, and P8 as an inverted status LED. That configuration came from a firmware dump and manual reverse-mapping after extractor failure. [#20968165]

How can you flash a T34 directly in-circuit with needles, pogo pins, or trace access instead of removing the chip?

You can do it by contacting the hidden UART points mechanically and avoiding full chip removal. 1. Solder stable 3.3 V and GND first. 2. Touch RX and TX with sewing needles, pogo probes, or accessible traces. 3. Start the flasher, then adjust contact pressure or re-touch TX until the bus syncs. One user dumped and flashed a concealed-leg T34 entirely in-circuit with sewing needles, and another later flashed multiple boards using vertical pogo-pin rods resting by weight. [#21117908]

BK7231GUIFlashTool vs hid_download_py: which is better for backing up and flashing T34/BK7231N devices?

Neither was presented as universally better; the thread treats them as complementary. BK7231GUIFlashTool is convenient for guided UART flashing, while hid_download_py was suggested when readout problems persisted and users needed an alternative path. One maintainer explicitly recommended trying the Python tool after UART read issues, alongside timeout tuning and shorter wires. In practice, the better choice in this thread was the one that matched your adapter, wire quality, and board behavior on that specific T34. [#21031906]

Why does a freshly flashed T34 switch sometimes fail to start the OpenBeken WiFi AP even though the write process reports success?

The usual cause is not the firmware file alone; it is unstable flashing, bad contact, or a partial write that still looked successful during the session. One 2025 case erased and wrote sectors, but the switch never entered AP mode after five power cycles, the WiFi LED flashed weakly once, then stayed bright blue, and even writing the original backup back failed at sector 0x11000. That pattern points to corrupted flash contents or unreliable electrical access during programming. [#21619518]

What causes UART flashing read or write errors on T34 boards, and how do wire length, baud rate, power supply quality, and USB-TTL adapters affect reliability?

Long wires, unstable 3.3 V, noisy supplies, weak USB-TTL adapters, and mismatched baud rates all cause failures. The thread gave concrete fixes: shorten wires, tune UART timeouts, try 115200 to 921600 baud, and avoid relying on the UART adapter’s 3.3 V pin for full module power. One user fixed repeated read errors simply by changing the lab supply, while others reported old adapters failing and FTDI232RL or CH340G working better. Enough current matters, especially once Wi-Fi starts. [#21032083]

How do you configure the WiFi LED on T34-based wall switches so it turns off after connecting instead of staying bright blue all the time?

Set the LED pin to the opposite WiFi LED polarity. A 2026 report solved the always-on blue LED by changing the original setting from WifiLED_n to WifiLED. Another 2025 ESPHome example used an inverted GPIO output on P7, but that could also change button backlight behavior. The simplest OpenBeken fix in this thread was to try WifiLED versus WifiLED_n on the same LED pin until the post-connect state matches your hardware. [#21810549]

What’s the difference between T34, CB2S, and CB3S Tuya modules when choosing a smart switch that is easier to reflash?

T34 is the risky choice when the board hides UART and exposes no usable pads. The thread repeatedly warned against buying T34-based switches because flashing often required chip removal, needles, or rework. By contrast, older stock in white boxes and some CB2S-based units were reported with accessible TX/RX pads, making them much easier to reflash. One buyer even advised looking for white-box stock specifically to avoid T34 trouble. [#21009070]

Which USB-to-UART adapter is more reliable for T34 flashing, CH340G or FTDI232RL, and why do some adapters fail on these boards?

Both CH340G and FTDI232RL can work, but the thread gave FTDI232RL a slight edge for stability on difficult boards. One user used an FTDI232RL-based red adapter successfully and said CH340G also works, while another failed with older adapters and had to switch hardware before flashing succeeded. Adapters fail when they provide noisy power, insufficient current, or marginal UART timing. The chip choice matters less than clean 3.3 V, solid contact, and a converter that handles the board reliably. [#21049770]

How could you program or access a T34 through alternative pins like JTAG or board-side MCU pads when RX and TX are hard to reach?

The thread did not provide a confirmed JTAG flashing method for T34. One later analysis noted that some board-side pads appear to reach a small companion MCU and that T34 pins P22 and P23 map to JTAG TDO and TDI in normal operation, but this stayed a hypothesis. The only proven alternatives in the thread were UART through hidden legs, exposed traces, removed companion parts, or board pads that happened to break out power and serial. Treat JTAG access here as unverified. [#21326143]
Generated by the language model.
ADVERTISEMENT