logo elektroda
logo elektroda
X
logo elektroda

SiGN WiFi Smart Indoor Plug 16A (SN-WIFIPLUG) CB2S Pinout and OBK Template Details

kvakulo 30 0
ADVERTISEMENT
  • #1 21627785
    kvakulo
    Level 3  
    I recently got a SiGN WiFi Smart Indoor Plug 16A with 20W Fast Charging (2xUSB A and 1xUSB C). I have seen similar models on Ali.

    SiGN WiFi Smart Indoor Plug 16A (SN-WIFIPLUG) CB2S Pinout and OBK Template Details

    Warning: It is not easy to open the plug as it is glued together, and it is a bit cumbersome to get access to the CB2S module on the inside.

    I used a hobby knife and some prying tools to open up the plug. I tried to do it carefully, but I could not avoid some damage.

    SiGN WiFi Smart Indoor Plug 16A (SN-WIFIPLUG) CB2S Pinout and OBK Template Details
    SiGN WiFi Smart Indoor Plug 16A (SN-WIFIPLUG) CB2S Pinout and OBK Template Details

    After successfully opening up the plug, I removed the screws below to take the plug further apart:

    SiGN WiFi Smart Indoor Plug 16A (SN-WIFIPLUG) CB2S Pinout and OBK Template Details

    The plug is featuring a CB2S module:

    SiGN WiFi Smart Indoor Plug 16A (SN-WIFIPLUG) CB2S Pinout and OBK Template Details

    I desoldered the green and yellow cable:

    SiGN WiFi Smart Indoor Plug 16A (SN-WIFIPLUG) CB2S Pinout and OBK Template Details

    Next up, I desoldered this thingy. There are some plastic bits underneath the board that needs to be pressed for the thingy to detach.

    SiGN WiFi Smart Indoor Plug 16A (SN-WIFIPLUG) CB2S Pinout and OBK Template Details

    Now it is time to desolder the metal plugs to get the board detached:

    SiGN WiFi Smart Indoor Plug 16A (SN-WIFIPLUG) CB2S Pinout and OBK Template Details

    Now the board is finally detached:

    SiGN WiFi Smart Indoor Plug 16A (SN-WIFIPLUG) CB2S Pinout and OBK Template Details

    And there is access to the CB2S pins. I soldered four cables to the module (3.3V, GND, RX, TX).

    SiGN WiFi Smart Indoor Plug 16A (SN-WIFIPLUG) CB2S Pinout and OBK Template Details

    I could download the firmware (attached to this post), but the OBK config could not be extracted. However, I found this as part of the lastRawDecryptedStrings.bin file that has some clues regarding the important pins:
    
    {
      sel_pin_pin: 23,
      rl1_lv: 1,
      bt_type: 0,
      net_trig: 1,
      jv: 1.0.3,
      netled1_lv: 0,
      netled_reuse: 1,
      ffc_select: 0,
      total_bt_pin: 6,
      vi_pin: 8,
      total_stat: 2,
      resistor: 1,
      over_cur: 16500,
      rl_type: 0,
      reset_t: 5,
      netled1_pin: 10,
      chip_type: 0,
      rl2_lv: 1,
      lose_vol: 176,
      over_vol: 265,
      module: CB2S,
      ele_pin: 7,
      ch_cddpid1: 9,
      rl2_pin: 24,
      ch_cddpid2: 10,
      total_bt_lv: 0,
      ch_num: 2,
      ele_fun_en: 1,
      rl1_pin: 26,
      vol_def: 0,
      ch_dpid1: 1,
      sel_pin_lv: 1,
      ch_dpid2: 2,
      crc: 2
    }
    


    Here is the OBK template:
    
    {
      "vendor": "SiGN",
      "bDetailed": "0",
      "name": "SiGN WiFi Smart Indoor Plug 16A with 20W Fast Charging",
      "model": "SN-WIFIPLUG",
      "chip": "BK7231N",
      "board": "TODO",
      "flags": "1024",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "6": "Btn;39",
        "7": "BL0937CF;0",
        "8": "BL0937CF1;0",
        "10": "LED_n;39",
        "23": "BL0937SEL;0",
        "24": "Rel;39",
        "26": "Rel;37"
      },
      "command": "",
      "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
    }
    


    In addition I have the following in autoexec.bat:
    
    alias mode_wifi setPinRole 10 WifiLED_n
    alias mode_relay backlog setPinRole 10 LED_n; setPinChannel 10 39
    
    // at reboot, set WiFiLEd
    mode_wifi
    // then, setup handlers
    addChangeHandler WiFiState == 4 mode_relay 
    addChangeHandler WiFiState != 4 mode_wifi 
    
    startDriver ntp
    ntp_timeZoneOfs 1:00 
    


    I hope somebody will find this post useful :)
    AI: Just to clarify, are you looking for help with configuring the OBK template for this plug, or did you just want to share your findings with the community?
    I want to share my findings and the OBK template
    AI: Is there a specific issue or question you have regarding the pinout, OBK template, or getting the plug working with OpenBeken?
    No
  • ADVERTISEMENT
ADVERTISEMENT