logo elektroda
logo elektroda
X
logo elektroda

Teardown and Setup of Australian (eBay) Smart Plug WiFi Socket with CB2S Module

lordniksidor 366 3
ADVERTISEMENT
  • Helpful post
    #1 21480645
    lordniksidor
    Level 5  
    Electronic circuit with wires on a desk.
    This is a teardown for my "Smart Plug WiFi Socket". It's an Australian plug which means the variants are not many, this was the only one I could find that had RCM - the compliance mark for australia. I de-soldered CB2S module and spent about 4 hours trying to get it going from initial opening the packet to finishing up this post.


    I set it up in the tuya app first and was halfway through installing localtuya when I found the Elektroda com YouTube videos and decided that was easier/better/faster/stronger/more robust.

    Here's the listing photos-

    Disassembled electrical adapter with labeled safety features.

    White smart plug with a power button on the side.

    and here's a different listing photo (from a different seller) showing what I actually got -


    White smart plug with voice and app control features.

    Which is not the same thing, you can see the button is on the side not the top (different listing photos show it in different places) and the magical RCM version has two relays so proudly displayed in the photos whereas the one i received has only one relay.


    White cube-shaped electrical plug on a wooden surface.
    Top view of a three-pin electrical plug adapter.
    Printed circuit board with attached wires and an electronic component.
    Close-up of a circular circuit board with various electronic components, including capacitors and wires.
    Electronic circuit with wires on a desk.

    As you can see it's a very basic plug, simple on/off with no current shunt despite the inflated price tag due to the alleged safety compliance. Aaaand here's the CB2S problem child with the cloud addiction.

    CB2S electronic module with label and QR code.

    Of course I had no idea what I was doing and was simply blindly following the Elektroda com YouTube videos, easy enough to get the board out with my hot air re-flow station. When putting it back in I definitely recommend just scraping most of the excess solder off the pads before shoving it back in there or you'll be lifting pads.

    The Videos in question are -
    https://www.youtube.com/watch?v=PKkiqDNFIx8 Is using the flasher
    https://www.youtube.com/watch?v=pkcspey25V4 Is the homeassistant and MQTT Setup side

    USB to serial converter connected to a module with wires.
    Once I had it all wired up I started bashing my head against the excellent BK7231 Easy UART Flasher, I had no idea what chippy was under the metal can so I just tried reading each chip type, (of course if I had bothered to read the note next to the select chip type drop down this would have saved me some time) no luck from K, N gave me some more output - encryption key but as soon as it started reading it would hang.
    I started thrashing as usual and by complete chance found this post. which saved the day.
    https://github.com/openshwprojects/BK7231GUIFlashTool/issues/18

    Screenshot of BK7231 Easy UART Flasher program with timeout settings.

    Bingo, It read out the memory so I flashed the OpenBK7231N Firmware and off she went. Then I had a look in the "change OBK settings for flash write" and added in the wifi ssid and password like a sane person and re-wrote the config and used pingtools on my phone to find the device IP.

    After that it was as simple as watching the Elektroda com youtube video about adding to homeassistant excepting that where the MQTT username and password are stored in the lovelace ui has changed it was all easy from there.

    The second plug took about 10 minutes from cracking the case open to tracking down the lost screw on the floor. It too is now happily in my homeassistant dashboard.

    All hail the creators of the Easy UART Flasher and the Elektroda com youtube video

    AI: Could you provide the specific model or brand of the Smart Plug WiFi Socket you are working with?
    TEGAL A10 Classic, Though the item received is unbranded with no markings
  • ADVERTISEMENT
  • #2 21481620
    divadiow
    Level 34  
    interesting circular PCB.

    Please post your OBK template
    Screenshot of the OpenBK BK7231T Desk Calex Plug web interface showing device status information and configuration options.

    and /or post your Tuya config file after extraction
    OpenBK user interface showing USB device statuses.
  • ADVERTISEMENT
  • #3 21481880
    lordniksidor
    Level 5  
    >>21481620
    Thanks for the GIFs! Here's the info -

    {
    "vendor": "Tuya",
    "bDetailed": "0",
    "name": "TEGAL A10 Classic",
    "model": "A10 Classic",
    "chip": "BK7231N",
    "board": "A10TY-V1.3",
    "flags": "-2147483648",
    "keywords": [
    "TODO",
    "TODO",
    "TODO"
    ],
    "pins": {
    "8": "WifiLED_n;0",
    "10": "Btn;1",
    "26": "Rel;1"
    },
    "command": "",
    "image": "https://obrazki.elektroda.pl/5445643700_1742037425.jpg",
    "wiki": "https://www.elektroda.com/rtvforum/topic4111914.html"
    }
ADVERTISEMENT