logo elektroda
logo elektroda
X
logo elektroda

[T34/BL0937] Teardown Generic Wifi Smart Plug with Energy Measurement

Raufaser 36015 143
Best answers

How can I flash a T34/BL0937 smart plug when the UART pads are hard to access?

Use a very fine-wire or needle method instead of trying to solder thick leads directly to the T34. The most practical setup in the thread is to leave the T34 on the PCB, solder 3.3V and GND to the AMS1117 pins, take TX from the exposed pad/resistor point, and touch RX with a sewing needle or thin enameled wire on pin 25; several users also needed an external 3.3V supply and a few power cycles before the flasher connected [#21044837] [#21373301] [#21334978] One reply notes that only one UART line is actually broken out on some boards, so flux and very precise soldering are needed, and if all else fails you can desolder the T34 and flash it off-board, though that is risky [#21005230] If your revision uses a BL0942/BL0492 energy meter instead of BL0937, flashing can be easier by connecting to the meter chip’s UART pins 9/10 plus VCC and GND, without modifying the T34 itself [#21364027] [#21420827]
Generated by the language model.
ADVERTISEMENT
  • #91 21366840
    rufus4
    Level 11  
    Posts: 65
    Rate: 9
    1. CRC error --> no saved file
    2. The temperature of the processor stays the same. Hot! /-60°C
  • ADVERTISEMENT
  • #92 21368805
    rufus4
    Level 11  
    Posts: 65
    Rate: 9
    I did some research about my observation of the internal temperature rising.

    With OpenBK7231N_1.17.678 there was a change called "calibrate temperatures reading".
    https://github.com/openshwprojects/OpenBK7231...mmit/9becf09ae8b8749c62fc13e03a6a2431679eef7d

    Since then the internal temperature is much higher. When I did realize this for the first time two days ago, I was playing around with `PowerSave` and it didn't make any differences on temperatures. So I thought it's not working anymore.
    But now I was testing `PowerSave` with 1.17.656 and I have seen that it makes no differences at internal temperatures as well.
    So... was `PowerSave` actually working anytime on this specific device? Maybe on an older FW or maybe never ever?
  • #93 21370940
    wrona80
    Level 14  
    Posts: 63
    Help: 4
    Rate: 5
    @no_cloud Maybe try to put power cables closer to T34
    Close-up of a circuit board with labeled pins GND, RXD, TXD, and 3V3 on the T34 chip.
  • ADVERTISEMENT
  • #94 21371180
    tun0
    Level 7  
    Posts: 12
    fatalbullethit wrote:
    p.kaczmarek2 wrote:
    Do Tuya Config extraction, set BL0937 pins and it will work well.

    Thanks for the quick reply, unfortunately I get the following error: "Failed to extract keys"
    Screenshot of a software tool for extracting keys from firmware files.
    I tried both, the tuya config and a complete dump. Any ideas?

    Edit:
    I did flash ESPHome to it and reverted to OpenBeken, not sure if this might cause issues.
    I'll flash OpenBeken to another one I've laying around and will extract the config again and report back.


    Could you share your ESPHome configuration?
  • #95 21372126
    tun0
    Level 7  
    Posts: 12
    I just can't seem to get around the "getting bus failed", also with this type of socket. The USB UART dongle can power a ESP12 or ESP8266 board just fine, so I doubt it's a power issue.

    The sockets that I have look identical to this:

    kubanekjiri wrote:
    I tried it with BL0492 connected and it works!!!
    Close-up of a circuit board with connected wires.


    Also using the same pins to solder to.

    The only thing that does "feel" like a power issue, is the fact that every now and then the usb device reconnects when power cycling the T34.
  • #96 21372129
    divadiow
    Level 38  
    Posts: 4880
    Help: 427
    Rate: 869
    That sounds like the USB-TTL can't provide enough current. I wasted hours trying to flash in the early days without external 3.3v :)
  • #97 21372447
    tun0
    Level 7  
    Posts: 12
    divadiow wrote:
    That sounds like the USB-TTL can't provide enough current. I wasted hours trying to flash in the early days without external 3.3v :)


    I kinda agree. But when connected, the socket's blue LED does start blinking. And I can also power ESP8266 boards with it for example. But, guess I'll be ordering yet another USB-TTL just to be sure. Now if only they'd provide actual numbers regarding the power capabilities of the LDO dropdown, etc.
  • Helpful post
    #98 21373301
    vitya123
    Level 6  
    Posts: 51
    Help: 1
    Rate: 10
    A bit late for the party, but I thought I'd chip in with a method of programming these "test pointless" sockets. I saw that it gave grief to some people here that the Tx pin is not easily accessible. Some people resorted to removing the chip altogether and programming it like that. I also did that the first time. It worked, but it is certainly not for everybody :)
    However, once I removed the chip I inspected the pads underneath and concluded that the Rx and Tx pins are not connected anywhere else:

    Close-up of a printed circuit board with various electronic components and visible pins.
    This lead to the idea to just leave the chip in place, solder the 3.3V, GND and Tx pins as shown in earlier posts. The Rx pin (#25) is the tricky one. The easiest solution I could come up with is to use a needle and hold it against the pin by hand during the reading/flashing. It is very easy, no micro soldering is needed, just a steady hand :)
    This is how it looks with the 3 wires soldered and the needle held against Rx:

    Close-up of a circuit board with soldered wires and a needle positioned on a pin.
    (I would like to apologize using a purple wire for GND - I just didn't have a black one at hand...) The red wire is 3.3V (external supply - NOT provided by the USB-UART adapter), the blue wire is Tx.

    I found this method the fastest, easiest and the one that requires the least specialist tools/skills.
    Here is a short video showing the method:




    I hope it will help some...
  • #99 21375288
    viktorpot
    Level 3  
    Posts: 7
    donotos wrote:

    Hey.
    I just finished flashing my own so thanks for the help provided here.
    I wasn't able to flash by powering the T34 with the UART. Every time I disconnected 3v3 it disconnected from USB and killed the flasher app so I had to use an external PSU.

    BTW: inverting polarity did not kill the T34!

    I had some troubles wiring the chip so here is a small schematic:


    Diagram of a connection setup between T34, BL0937, and FT232RL with 3.3V power supply.


    Thank you for this simple schematic! It helped me a lot to easily flash several of these devices quickly without any soldering using these DIY pins that I have seen in another thread.

    Close-up of a circuit board with three connected wires.

    Looking at your schematic I guess I should use BL0937 driver? I have followed all advice in this thread I've just realized that I am using 2 drivers (PIN assigned as well as startup command for BL0942). I guess I should remove the BL0942 driver from my startup command. Will play around with that later.
  • ADVERTISEMENT
  • #100 21375310
    vitya123
    Level 6  
    Posts: 51
    Help: 1
    Rate: 10
    @viktorpot I'd say, ignore any schematics :) and go with the chip you have on your board - experiments beat theory :))) If I'm not mistaken it's the 8 pin SOIC chip in the top right corner of your pic. If you can read what's on it, then go with that driver. If you can't read it, then you can start experimenting.
  • ADVERTISEMENT
  • #101 21375327
    viktorpot
    Level 3  
    Posts: 7
    >>21375310

    Yeah right, it reads 0937 so I removed the BL0943 from startup and all seem fine now.
    I am new to this with only little ESP32 experience so it takes time to understand what I am doing and what the right settings are.
  • #102 21379273
    no_cloud
    Level 6  
    Posts: 20
    Rate: 1
    >>21364027 ok I try your method and I come back for results.
    Thank you for your help.
  • #103 21380665
    camillelieveux
    Level 2  
    Posts: 2
    Hi and happy new year,

    I am completely new with the IoT devices. I bought the same smart plug as the 1st message of this topic (T34 with BL0937).
    I was able to flash the OpenBK7231N_QIO_1.17.822.bin firmware. The problem is that I don’t see any Access Point.
    Same result when I write the following OBK config:
    Screenshot of FormOBKConfig application showing WiFi and GPIO settings.
    Screenshot of FormOBKConfig software showing the startup command tab with a command entered.

    I attach the log file after flashing firmware: Flash2 fir...figOBK.txt (18.51 kB)You must be logged in to download this attachment.

    Does anyone know what I’m missing or doing wrong?
    Thanks for your help and amazing work
  • #104 21380873
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14444
    Help: 650
    Rate: 12414
    If you enter your WiFi and SSID data, as shown on the screenshot, the access point will not show up. Instead, OBK will try to connect your WiFi directly.

    If you want to run in access point mode, either make WiFi ssid/password fields blank, or do quick 5 power off and on cycles to run it as "safe mode ap".
    Helpful post? Buy me a coffee.
  • #105 21381561
    camillelieveux
    Level 2  
    Posts: 2
    Hi,
    Thank you very much for your help. Everything is OK
    I have another noob's question: the relay entity (not sure about vocabulary) is called "0". Is it possible to rename it in a parameter or config file?
    see the screenshot:
    Screenshot of a device management application's status section, highlighting a relay entity named 0.

    Thanks for your help
  • #106 21384105
    Tummi
    Level 13  
    Posts: 58
    Help: 1
    Rate: 3
    >>21373301 Thank you, it helped a lot! ;) Strange behavior observed - flashing went smoothly after power was disconnected (red cable in your screenshot).
  • #107 21388345
    giacomo0217
    Level 2  
    Posts: 2
    Hi guys!
    I'm having some issues with this T34 smartplug.
    I've opened the case, soldered power and serial, flashed the OpenBK7231N_QIO_1.18.18 image with the BK7231 Easy UART Flasher but after the flash the smart plug is not creating the setup wifi network; I even tried flashing the config to connect to my wifi but nothing.
    The main led remains blue (with low brightness) and static.
    As a troubleshooting step, I even tried to erase the RF partition but still nothing, no wifi network.

    Am I doing something wrong? Am I missing something?
    Thanks!
  • #108 21388359
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14444
    Help: 650
    Rate: 12414
    How do you power it? It's a known issue that some WiFi chips won't work well if you power them directly from USB to UART converter. You need more current.
    Helpful post? Buy me a coffee.
  • #109 21388368
    giacomo0217
    Level 2  
    Posts: 2
    @p.kaczmarek2 >>21388359 >>21388359
    I thought the same as you, but it's doing the same thing with the power of an Arduino UNO and with the power of its built-in power supply.

    Added after 2 [minutes]:

    >>21388368
    PCB held by a service holder with connected power supply.
    Ignore the disconnected RX cable, this is with Arduino power
  • #110 21388398
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14444
    Help: 650
    Rate: 12414
    Maybe taking UTX2 (UART 2 TX, TXD2) log could help us to see what's going on, whether device boots or not, etc.
    Helpful post? Buy me a coffee.
  • #111 21394276
    mchipelo93
    Level 2  
    Posts: 2
    I'm going to make probably a silly question but...

    Circuit board with clamps for connecting a Schuko plug.

    What is the name of these terminals for the schuko plug? I've searched everywhere and I can't find it...
  • #112 21394453
    tun0
    Level 7  
    Posts: 12
    tun0 wrote:
    divadiow wrote:
    That sounds like the USB-TTL can't provide enough current. I wasted hours trying to flash in the early days without external 3.3v :)


    I kinda agree. But when connected, the socket's blue LED does start blinking. And I can also power ESP8266 boards with it for example. But, guess I'll be ordering yet another USB-TTL just to be sure. Now if only they'd provide actual numbers regarding the power capabilities of the LDO dropdown, etc.


    As it turned out, it was a power issue after all. Even though it has LDO regulator, it apparently wasn't providing enough power. Adding an external power supply did seem to do the trick. That is, after dozens and dozens of tries. Tons of attempts stalled either nearly the beginning of the dump process or roughly halfway. No idea what eventually "did the trick" to make it actually work. Too bad I was only able to convert 1 out of a set of 5 so far. As I managed to have the magic smoke leave the AMS117 of the power supply used. New one is on the slow boat from China (it's one of the power supplies you can plug directly into a breadboard).
  • #113 21403006
    divadiow
    Level 38  
    Posts: 4880
    Help: 427
    Rate: 869
    now I've been cursed with one of these while hoping for a Realtek module. oh well.

    Interior of an electronic device with a visible circuit board and components.

    Added after 1 [minutes]:

    mchipelo93 wrote:
    What is the name of these terminals for the schuko plug? I've searched everywhere and I can't find it...

    these?

    Close-up of a circuit board with two sockets marked in red.
  • #114 21403512
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14444
    Help: 650
    Rate: 12414
    Those plugs would be better with BL0942, in such case we would have RX/TX connected to BL0942 pins....
    Helpful post? Buy me a coffee.
  • #115 21409547
    auntlydia
    Level 10  
    Posts: 70
    Help: 2
    Rate: 14
    Thanks for this teardown and settings! There is another revision of this device which has BL0942 and I created a topic for it
    --> https://www.elektroda.com/rtvforum/topic4099021.html

    The settings are slightly different and the chip is smaller and is a different socket without legs.

    (I think it's the same one here:
    kubanekjiri wrote:
    I tried it with BL0492 connected and it works!!!
    Close-up of a circuit board with connected wires.
    )
  • #116 21420827
    dixy1
    Level 2  
    Posts: 2
    Rate: 2
    [solved] Solution: I use the wrong place for the GND there. If I connect the Power and the GND directly at the pins from BL0942 the programming starts. For this solution have a look at the last 2 new pictures

    Addendum: I ordered more switch sockets from the shop mentioned below. For some of the switch sockets, the button was not working after flashing... before flashing, the button worked perfectly. At first I was confused because I always used the same file to flash. The solution: individual flags were set, not just flag 10. Flag 41 - [BTN] Ignore all button events (aka child lock) was set, among other things. This meant that the switch was not working! So after flashing, check all flags in the menu item "Configure General/Flags". :-)

    Hello,
    I have a problem to flash my Tuya 20A Smart plug from Aoyan AE Store (Aliexpress). Using a CH340 USB to TTL Programmer and the BK7231Flasher-V5 program.

    If I start it it looks like this:

    Backup name is set to T.
    Starting read backup and flash new!
    Now is: Samstag, 1. Februar 2025 23:28:51.
    Flasher mode: BK7231N
    Going to open port: COM5.
    Serial port open!
    Getting bus... (now, please do reboot by CEN or by power off/on)
    Getting bus failed, will try again - 0/100!

    ...

    For me it’s not problematic to make the 4 connections to the board and put some external 3.3V to the device. I also tried the BK7231Flasher-V4 version and another CH340 USB to TTL Programmer. But still "Getting bus failed" message. The COM port is correct, the RX-TX and TX-RX connection to the BL0942 is ok, the ground from the Programmer and the external 3.3V is there and I also switched the 3.3V off for a moment after starting the process. I will attach some pictures. What’s going wrong in this case?



    Greetings
    dixy1
    wrong GND connection at the socket, don`t do it like that!
    Connected circuit board with incorrect ground connection.
    USB to TTL connection using wires to a circuit board.
    Connection wires attached to an electronic board on a desk.
    USB to TTL adapter with connected wires on a wooden surface.

    Solution: (connect it directly at BL0942
    Electronic circuit board with colored wires connected to a USB to TTL adapter.
    Electronic module with connected wires
  • #117 21420891
    max4elektroda
    Level 24  
    Posts: 746
    Help: 48
    Rate: 184
    The usual advices:
    Use external 3.3V power
    Keep cables as short as possible
    Re-check the connections
    Use a lower and maybe even higher UART speed.

    I can add, just to be sure, does your device use a BL0942? I can't read the chip version on the picture. Just in case you have a slightly different version where the power metering chip doesn't use RX/TX as expected.

    Added after 23 [minutes]:

    As I don't own such a device with BL0942 it's just an educated guess: to have a first check of your cables and power you should just power the device with a serial monitor open. You should be able to see the communication between MCU and power metering chip with speed 4800 if I got it right.
  • #118 21422095
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14444
    Help: 650
    Rate: 12414
    BL0937 has 8 pins and BL0942 has usually 10, so I would still gues he has BL0942.
    BL0937 integrated circuit with eight pins
    Helpful post? Buy me a coffee.
  • #119 21428796
    mchipelo93
    Level 2  
    Posts: 2
    Yes, i cant find then anywhere
  • #120 21439982
    EchoSin
    Level 9  
    Posts: 3
    Hi, thanks for your posts enabling me to upload OpenBeken to my socket. I thought I'd describe the whole process.

    I opened the case by squeezing both sides diagonally in a vise until I heard a quiet snap. I covered the case with a paper towel. Then all I had to do was slide the top out, unscrew the two screws and pull the board out. This was done without soldering to the board. I made myself a jig from a wooden block in which I drilled two holes for the socket pins. To the block I screwed copper electrical wires terminating in pins fixed with clamps from the electrical cube. (I cut the heads off the pins first. Sorry...) To the block I also screwed in a regulated power supply module (with which I fed 3.3 V), a voltmeter and a socket to connect the power supply (5 V from an old router). This way I had everything together, easy to carry and without worrying that I would pull a cable and something would get disconnected. I made the connections as my colleague donotos https://www.elektroda.pl/rtvforum/topic4042412.html#21054371, even with the same FTDI232RL programmer. The important thing is not to make a mistake and connect the RX to TX correctly (and not as I did mistakenly RX to RX and TX to TX). You need to install a driver for this programmer on Windows 10. I downloaded it from `ftdichip.com/drivers` (link here) and installed it by running the .exe file. In BK7231GUIFlashTool-v5 in the Select UART port: field COM3 was automatically selected, in the `Select chip type` field I selected BK7231N and pressed `Download latest from Web`. The version that downloaded was OpenBK7231N_QIO_1.18.37. I set the baud rate to 921600 and set the same value in the windows (Windows 10) Device Manager to the COM3 port (COM and LPT Ports > USB Serial Port (COM3) > right click > Properties > Port Settings > Number of bits per second). I then clicked the Do backup and flash new button. The console displayed that it was trying to connect to the canbus and was making further attempts. At this point I disconnected the external 3.3V power supply and reconnected. With that, the backup and flashing process started and completed successfully. I removed the board from the instrument and inserted it into the case, which I temporarily sealed with insulating tape. I inserted the smart socket into a regular socket. Now on the laptop, I searched for a wireless network that had something resembling OpenBeken in its name (I no longer remember the exact name) and connected to it. In the Network and Internet Settings I found the local IP address of my socket: 192.168.4.1, which I then accessed in my web browser. On the page that appeared at this address, I selected `Launch Web Application` and went to the `Import` tab. In the `Enter template here` field, I pasted the configuration copied from the `openbekeniot.github.io/webapp/devicesList.html` page for the (QNCX) Generic Smart Plug with Energy Measurement (T34) device (LSPA9 clone). I removed the socket from the socket and reinserted it. I went into 192.168.4.1 again, this time into the Config section, where I set my home network name and password for the WIFI uuid. I connected the laptop again to my home router. I went to 192.168.1.1, found my socket there and checked what IP address it had. I went to the IP address of my socket on my home network and was already able to use it. I still had to calibrate the electricity measurement in the Web Application.

    Observations:
    1. chip temperature: 55.9 °C (with relay off)
    2. the socket button does not work. I can only switch the socket on and off via WiFi.

    I am wondering what I can do to make this button work.

    Electronic circuit board with attached wires and components on a wooden block. .
    Simplified electronic device with colorful wires on a wooden base.

Topic summary

✨ The discussion centers on the teardown, flashing, and firmware modification of generic WiFi smart plugs featuring the T34 chip with integrated energy measurement capabilities, primarily using the BL0937 or BL0942 power metering ICs. Users report challenges soldering to the T34 chip due to fragile pads and limited access to UART pins, with some resorting to desoldering the chip or using fine wires and needles to establish serial connections. Flashing is typically done via UART with external 3.3V power supplies to ensure stable operation, as USB-TTL adapters alone often lack sufficient current. The T34 chip is identified as BK7231N-based, treated either as a chip or board module in firmware configurations. Firmware flashing is performed using OpenBeken and BK7231Flasher tools, with users sharing pin mappings and configuration templates for BL0937 and BL0942 drivers. PowerSave mode behavior is discussed, with reports of inconsistent functionality in newer firmware versions. MQTT integration issues affecting relay startup states are resolved by resetting MQTT configurations and rediscovering devices in Home Assistant. The community shares detailed hardware photos, pinouts, and flashing procedures, emphasizing the need for precise soldering, proper power supply, and correct firmware settings to enable WiFi connectivity and power metering features. Variants of the smart plug with different power metering chips and PCB layouts are noted, with some devices requiring specific handling of UART lines routed through the BL0942 chip. Overall, the thread provides comprehensive technical guidance for hardware hacking, firmware flashing, and configuration of T34-based smart plugs with energy measurement.
Generated by the language model.

FAQ

TL;DR: With 3.3 V external power and 10 µF restored at the regulator, these T34/BK7231N plugs can be flashed and fully used with OpenBeken. As one expert put it, "T34 will be treated as board". This FAQ is for people converting generic Tuya smart plugs with BL0937 and solving hard-access UART, weak Wi‑Fi, backup, and power-meter setup issues. [#21052849]

Why it matters: These plugs look identical outside, but the thread shows that module type, meter chip, and flashing difficulty can differ drastically between revisions.

Variant Meter chip Flash access OpenBeken setup
T34 + BL0937 BL0937 Hardest; one UART line is awkward, often microsoldering or needle work Use BL0937 pins 6/7/8 plus relay/button/LED pins
T34 + BL0942 BL0942 Easier; UART1 is available on BL0942 pins Start BL0942 driver and calibrate
Older LSPA9 lookalikes ESP8266 / WB2S / CB2S / T34 Varies by module hidden inside Same outer shell can hide different internals

Key insight: The enclosure tells you almost nothing. On these LSPA9-style plugs, the safest workflow is to identify the actual module and meter chip first, then choose wiring, driver, and template from that specific hardware path.

Quick Facts

  • Typical current draw reported for the T34 + BL0937 plug was 4–6 mA idle and 9–13 mA with relay on after the device sat without an active GUI; earlier live-GUI measurements were higher at about 6–8 mA and 11–15 mA. [#21033260]
  • The working BL0937 OpenBeken mapping reported in the thread was: P6 = BL0937CF, P7 = BL0937CF1, P8 = BL0937SEL, P24 = relay, P26 = button, P28 = WiFi LED. [#21052214]
  • A missing capacitor near the AMS1117/AMS117-3.3 regulator was recovered by replacing 5 µF with 10 µF; energy measurement started working again after the 10 µF swap. [#21039554]
  • One stock Tuya boot log exposed the factory configuration directly: relay on P24, main button on P16, total key on P26, Wi‑Fi LED on P28, and BL0937 on P6/P7/P8. [#21238817]

How do I flash a T34/BK7231N smart plug with BL0937 to OpenBeken when the UART pads are hard to access?

Flash it by keeping the T34 on the PCB and using the few accessible points that users verified. 1. Solder or probe 3.3 V and GND at the AMS1117 pins, connect one UART line directly to the T34, and take the other from the nearby resistor point. 2. Use very thin enameled wire, a needle, or clip probes to avoid lifting pads. 3. Power-cycle several times until the flasher catches the bootloader, then back up and flash OpenBeken. This method avoided full chip removal and worked on multiple plugs in April 2024. [#21044837]

What are the correct OpenBeken pin settings for the generic T34 smart plug with BL0937 energy measurement?

The confirmed OpenBeken mapping is P6 = BL0937CF, P7 = BL0937CF1, P8 = BL0937SEL, P24 = Rel, P26 = Btn, and P28 = WifiLED. A later correction changed the LED entry from a generic LED role to the Wi‑Fi LED role so both LEDs behaved correctly. If you import a template, verify the LED entry before testing status indication. [#21031175]

Why does BK7231GUIFlashTool keep showing "Getting bus failed" when flashing a T34 smart plug, and what usually fixes it?

"Getting bus failed" usually means the plug is not entering the bootloader cleanly because power or reset timing is wrong. The most common fixes in the thread were an external 3.3 V supply, very short wires, repeated power cycling, and better ground placement. Several users reported that USB-TTL power alone looked alive but still failed until external power was added. One user also fixed the issue by moving GND to the correct point near the BL0942 pins. [#21420827]

What's the best way to power a T34 smart plug during UART flashing: USB-TTL 3.3V, an external 3.3V supply, or low-voltage input to the plug?

An external 3.3 V supply is the safest proven option in this thread. USB-TTL 3.3 V sometimes worked, but many users hit disconnects, stalled reads, or endless boot failures until they switched to a separate supply. Low-voltage input to the plug can work on some models, but the most repeatable T34 method was direct 3.3 V to the module or regulator area. One user explicitly said the USB-TTL could not keep the device stable and needed external power instead. [#21054371]

How can I back up the original Tuya firmware from a T34 plug, and why do CRC errors or key extraction failures happen?

Back up the full flash first, but expect two different failure classes. CRC errors usually point to unstable flashing conditions, while "Failed to extract keys" means the backup was read yet the extractor could not find usable Tuya JSON. The thread includes a full 2 MB read with matching CRC that still failed key extraction, proving those are separate problems. Another user later managed a successful original Tuya backup after stabilizing wiring and setup. [#21327647]

Why does Wi‑Fi stop working or have very weak RSSI after flashing a T34 plug, and how can bad soldering or RF calibration affect it?

Weak or dead Wi‑Fi on this plug was usually a hardware rework problem, not an OpenBeken template problem. In the clearest case, Wi‑Fi became usable only after the T34 was removed, pads cleaned, and the module hot-air soldered back properly; afterward both Wi‑Fi and the second LED worked again. The thread also warns against clearing RF partitions because factory RF calibration is valuable. If the MAC ended in 00:00:00, that would suggest broken RF data. [#21040846]

What capacitor value should be used near the AMS1117/AMS117-3.3 regulator on this smart plug if the original SMD capacitor is missing?

Use about 10 µF. One user first fitted a 5 µF replacement and regained no normal behavior, then replaced it with 10 µF and restored energy-measurement operation. Another expert reply said the capacitor at the AMS1117/AMS117-3.3 regulator input is usually 10 µF and not highly critical, which matches the successful repair. [#21039554]

How do I get BL0937 power monitoring working in OpenBeken on a T34 plug, including template import and calibration?

Import a BL0937-capable template, reboot, then calibrate the meter in OpenBeken tools. The thread’s working template uses P6/P7/P8 for BL0937 and P24/P26/P28 for relay, button, and Wi‑Fi LED. Users who saw no wattage often had either no BL0937 driver pins configured, had not rebooted after importing, or still needed calibration before watts displayed sensibly. The practical fix was to load the template, reboot, and then calibrate against a real load. [#21327657]

When should I use the BL0937 driver versus the BL0942 driver on T34-based smart plugs with energy measurement?

Use the driver that matches the actual meter chip on your board, not the shell or seller listing. If the plug has an 8-pin BL0937, use BL0937 pin assignments; if it has a 10-pin BL0942 on UART1, start the BL0942 driver. One user had both configured and later removed the BL0942 startup driver after confirming the chip was marked 0937. Mixed setup can cause confusion even if switching still appears to work. [#21375327]

What is LSPA9 in the context of these Tuya smart plugs, and why do visually identical plugs ship with different modules like ESP8266, WB2S, CB2S, or T34?

"LSPA9" is a smart-plug hardware family designation that identifies a recurring Tuya-style plug design, while the internal radio/module can change between production runs. In this thread, the same outer style appeared with ESP8266, WB2S, CB2S, and T34 modules, so the shell was not a reliable indicator of flash method or template. That is why users kept warning that identical-looking plugs may require completely different OpenBeken workflows. [#21005347]

What is the T34 module exactly, and why is it treated as a board/module in OpenBeken while the chip is still BK7231N?

"T34" is a Tuya Wi‑Fi module that integrates the support parts around a BK7231N, so it behaves like a module/board even though the underlying MCU is still BK7231N. The thread settled on treating T34 as the board and BK7231N as the chip because that matches how Tuya presents it and how OpenBeken templates are organized. This distinction matters because pin numbering and template naming follow the module context, not raw silicon naming alone. [#21052849]

How does PowerSave work on BK7231N/T34 devices in OpenBeken, and why can the web UI or logs prevent the plug from entering low-power mode?

PowerSave works, but any frequent HTTP refresh or log polling can keep the device awake. The expert explanation in the thread says even the native main page can disturb sleep because it refreshes state often enough to block low-power entry. Real measurements supported that: current dropped more after users left the plug overnight without an open GUI, reaching about 4–6 mA idle instead of the higher live-view numbers. [#21033183]

What caused the relay state on a T34 plug to switch on at boot and then immediately turn off again, and how was MQTT/Home Assistant involved?

MQTT and Home Assistant state handling caused it, not the relay pin mapping. The log showed channel 0 being set to 1 at boot and then an MQTT message arriving on the set topic with data 0, which forced the relay back off. The problem disappeared after the user disconnected MQTT, deleted the device in Home Assistant, changed the client and group topics, and repeated discovery. That proved the boot glitch was external state replay. [#21294145]

Which GPIO did users choose to connect a DHT22 sensor to on the T34 smart plug?

The thread does not provide a confirmed GPIO for the DHT22 on this BL0937 T34 plug. A user said they had added a DHT22 and liked the result, but no follow-up post in this thread names the exact pin. If you need a verified GPIO, this thread alone does not answer it and you would need GPIO testing on your specific revision. [#21299716]

T34 smart plug with BL0937 vs the newer T34 revision with BL0942 — which variant is easier to flash and configure in OpenBeken?

The BL0942 revision is easier to flash. The reason is simple: BL0942 sits on UART1, so users could tap RX and TX from BL0942 pins 9 and 10 without fighting the hidden T34 pads. By contrast, BL0937 versions often forced awkward access to one UART line, resistor-side pickup, or needle work on the T34 itself. After flashing, the BL0942 version also only needed the BL0942 driver started and then calibration. [#21334813]
Generated by the language model.
ADVERTISEMENT