logo elektroda
logo elektroda
X
logo elektroda

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

Raufaser 17448 132
ADVERTISEMENT
  • #121 21439997
    p.kaczmarek2
    Moderator Smart Home
    The button doesn't work because probably the wrong pin index is configured? Try extracting the configuration with this method:
    https://www.youtube.com/watch?v=WunlqIMAdgw
    or use GPIO Doctor: https://www.elektroda.com/rtvforum/topic3976371.html
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #122 21440258
    EchoSin
    Level 9  
    >>21439997 .
    Extracting the configurations by means of the video failed: `Failed to extract keys` (from both the 2 MB file and the 72 kB file).
    I clicked through all the pins in GPIO Doctor and found 3 pieces from relay, button and wifi led and they turned out to be the same as in the configuration I imported earlier (QNCX) Generic Smart Plug with Energy Measurement (T34) (LSPA9 clone).

    I re-imported this configuration and, to my delight, the button started working!

    Chip temperature: 58 °C. Is this the normal temperature of the socket standby chip?

    Thanks for your help.
  • #123 21440305
    p.kaczmarek2
    Moderator Smart Home
    This is a tiny temperature and in addition it is only shown for reference, it is not a precise measurement. For comparison, my dev board:
    OpenBK7238 user interface with temperature and humidity readings. .
    My LEDs above the window:
    Screenshot of a user interface displaying BK7231T system parameters. .
    If you want to try to reduce the temperature and you are not using BL0937, you can try to autoexec.bat or to the startup command line add PowerSave 1 .
    Helpful post? Buy me a coffee.
  • #124 21440480
    EchoSin
    Level 9  
    >>21440305 .
    Thanks, you've cleared up my doubts.
    I care about the energy measurement, so I'll leave it as is.
    I may end up taping the housing already (maybe I'll try to add a screw or two).
  • ADVERTISEMENT
  • #125 21451164
    Slash402
    Level 3  
    Hi everyone,
    I've been following this thread because I'm interested in flashing a smart plug that uses these chips. However, I'm quite new to this topic and would really appreciate some guidance.

    1. Which schematic should I follow to perform the flash? Should I connect to the T34 chip, or are the flashing pins also available on the BL0937?
    2. Is the 3V supply from the TTL-USB adapter sufficient, or do I need an external power source?
    3. Which specific firmware should I flash?

    Thanks in advance for any help!
  • #126 21451202
    rufus4
    Level 10  
    welcome,
    1. Go the way that suits you. If it does not work, choose another.
    2. This depends on the adapter. If it has a big capacitor, it could work. If not, better use an external power supply.
    3. Go with the newest, maybe visit the changelog to be informed about bigger changes.
  • #127 21451367
    Slash402
    Level 3  
    >>21451202
    1. I'd rather not, we're talking microsoldering here, I don't wanna go trial and error if people have already done and found the correct way before me. Also, that doesn't really answer my question regarding if the pins on the BL0937 can be used or not.
    2. This is the adapter that I have https://www.amazon.it/dp/B07TFSZ3ZP is there a way to tell if it's gonna work?
    3. Umm, I only know about this tool https://github.com/openshwprojects/BK7231GUIFlashTool and I'm not really sure what chip to select when flashing as none of the ones I have are listed?
  • ADVERTISEMENT
  • #128 21451911
    max4elektroda
    Level 20  
    Slash402 wrote:
    >>21451202
    1. I'd rather not, we're talking microsoldering here, I don't wanna go trial and error if people have already done and found the correct way before me. Also, that doesn't really answer my question regarding if the pins on the BL0937 can be used or not.
    2. This is the adapter that I have https://www.amazon.it/dp/B07TFSZ3ZP is there a way to tell if it's gonna work?
    3. Umm, I only know about this tool https://github.com/openshwprojects/BK7231GUIFlashTool and I'm not really sure what chip to select when flashing as none of the ones I have are listed?

    Trying to answer your questions:

    If the layout of your T34 chip allows to access the pins with needles, you may try to adopt the solutions shown in this thread:
    https://www.elektroda.com/rtvforum/topic4051203.html
    The pins are not connected to the BL0937.

    Usually it's impossible to tell if a specific adapter works, but they usually do. I would advise to use a separate power supply in every case, but it might be sufficient to power the pins of the plug with a power supply, sometimes 12 to 15V is enough to start the plug without connecting to high voltage.

    T34 is the "BK7231N" chip.
  • ADVERTISEMENT
  • #129 21453078
    Slash402
    Level 3  
    Thanks, that clarified things quite a bit.

    max4elektroda wrote:
    Usually it's impossible to tell if a specific adapter works, but they usually do. I would advise to use a separate power supply in every case, but it might be sufficient to power the pins of the plug with a power supply, sometimes 12 to 15V is enough to start the plug without connecting to high voltage.

    I'm not quite sure about one thing: why do I need to supply 12/15V if the pin requires 3.3V? Wouldn't I risk damaging something by providing 12V?

    Also, I noticed that some people add a capacitor to the TTL. Why is that? Is there a guide I can read to understand how to do it? Unfortunately, I couldn't find much on the forum.
  • #130 21453241
    p.kaczmarek2
    Moderator Smart Home
    I think Max meant that you can connect 12V DC to the input of the plug directly. Not to the 3.3V rail, of course! That would burn WiFi module.

    Capacitor to TTL or to AMS1117-3.3V? If you mean the later, then answer is in the AMS1117 datasheet. It's recommended and required for stable voltage.
    Helpful post? Buy me a coffee.
  • #131 21453273
    max4elektroda
    Level 20  
    p.kaczmarek2 wrote:
    connect 12V DC to the input of the plug directly. Not to the 3.3V rail

    Exactly, sorry if this was not clear.
    I have some plugs which works perfectly on 12V on the "high voltage input", the plugs contacts, usually plugged into the power outlet, some which obviously will need more voltage and won't start that way.
    As long as you have a decent 3.3V supply, use that.
  • #132 21454169
    Slash402
    Level 3  
    >>21453241
    p.kaczmarek2 wrote:
    I think Max meant that you can connect 12V DC to the input of the plug directly. Not to the 3.3V rail, of course! That would burn WiFi module.

    Oh I see. So instead of connecting to the 3V3 pin, I can just try to power the device using 12/15V?

    p.kaczmarek2 wrote:
    Capacitor to TTL or to AMS1117-3.3V? If you mean the latter, then answer is in the AMS1117 datasheet. It's recommended and required for stable voltage.

    I mean things like this I saw in the forum https://obrazki.elektroda.pl/6133912500_1714225565.png (capacitor attached to the TTL adapter).
  • #133 21523164
    Slash402
    Level 3  
    >>21454169
    Update. I managed to flash it fine, just by using the TTL adapter and nothing else.
    Just a couple of questions if anyone knows.
    1. Is it possible to set up a routine (eg. turn on at X time, turn off at Y time) that will keep working without being connected to a network?
    2. Is it possible to flash ESPHome via OTA in case I'd like to?
    Thanks.

Topic summary

The discussion revolves around the teardown and modification of a generic WiFi smart plug, specifically the T34 model, which features energy measurement capabilities. Users share their experiences with soldering connections for UART flashing, troubleshooting issues with the T34 chip, and the challenges faced during the process. Key points include the identification of the chip as BK7231N, the use of OpenBeken firmware, and the importance of proper pin connections for successful flashing. Users also discuss power consumption measurements and the implications of power-saving modes. The conversation highlights various techniques for soldering and the significance of component values, such as capacitors, in the device's functionality.
Summary generated by the language model.
ADVERTISEMENT