logo elektroda
logo elektroda
X
logo elektroda

Mapping Pins and Flashing Firmware on WB2S/BK7231T Chip from La Foir'Fouille Smart Plug

bmarchais 981 2
ADVERTISEMENT

  • Hello,

    I've recently found this smart plug at a France store (La Foir'Fouille) for really cheap (less than 5 dollars on sale).
    Packaging of That's smart WiFi plug with QR code on a white background.
    White smart electrical plug.
    So I teardown the device (using a flat screwdriver and some brute force), and found the chip is a WB2S with a BK7231T. Great news!
    Dismantled smart plug showing internal circuit board.
    I flash the firmware using the bk7231flasher_1.0.3 app with the latest 7231T firmware. Works great!
    I follow the traces on the PCB, and after a little bit of trial and errors I successfully map the following pin :
    ButtonPWM5
    LEDPWM1 (inverted !)
    RelayPWM4


    If you have any questions, I am at your disposal!
    Happy hacking!

    Cool? Ranking DIY
    About Author
    bmarchais
    Level 5  
    Offline 
    bmarchais wrote 7 posts with rating 2. Been with us since 2023 year.
  • ADVERTISEMENT
  • #2 20803551
    p.kaczmarek2
    Moderator Smart Home
    Thanks, can you post JSON template from the Web App?

    PS: I recently had to fix a similiar plug. Electrolytic capacitor had to be replaced due to the lack of enabled PowerSave 1 in OBK. So, please consider enabling PowerSave in OBK startup command. This may prolong the device life.
    Helpful post? Buy me a coffee.
  • #3 20804505
    bmarchais
    Level 5  
    Hi,
    I successfully added the command "PowerSave 1" in the startup command tab. Thanks for the info.
    Here's the json :
    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "Thank's smart plug",
      "model": "Thank's smart plug",
      "chip": "BK7231T",
      "board": "TODO",
      "flags": "1024",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "7": "LED_n;1",
        "24": "Rel;1",
        "26": "Btn;1"
      },
      "command": "PowerSave 1",
      "image": "https://obrazki.elektroda.pl/2272951900_1699291211.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic4012920.html"
    }

    I didn't know what to put on the "keywords" value. If this is important, please let me know
    Thanks !
ADVERTISEMENT