Elektroda.com
Elektroda.com
X

[BK7231N / CB2S BL0937] Woox R6113 Smart Plug

clemensfabig76 990 9
  • Device information
    Woox - R6113-4PACK
    4 pieces Smart Plug EU, Schucko with energy monitoring
    Model: R6113
    EAN: 8435606721219
    (Bought at Amazon)
    [BK7231N / CB2S BL0937] Woox R6113 Smart Plug
    [BK7231N / CB2S BL0937] Woox R6113 Smart Plug

    Similar to (BK7231N/CB2S - BL0937) WOOX R6128 Smart Plug with Energy Monitoring

    Carefully open case (there are clip on the 4 edges). But it's quite easy to open. (see also [BK7231N/CB2S] Teardown CALEX Smart Powerplug EU plus 16A)
    [BK7231N / CB2S BL0937] Woox R6113 Smart Plug

    For flashing I connected my FT232RL USB to TTL serial adapter as follows with the CB2S BL0937 chip:
    [BK7231N / CB2S BL0937] Woox R6113 Smart Plug
    [BK7231N / CB2S BL0937] Woox R6113 Smart Plug
    [BK7231N / CB2S BL0937] Woox R6113 Smart Plug
    The red cable is for reset (=start flashing).
    I flashed all 4 devices with the BK7231Flasher.

    My config looks like this:
    [BK7231N / CB2S BL0937] Woox R6113 Smart Plug

    And as I'm mainly using MQTT:
    [BK7231N / CB2S BL0937] Woox R6113 Smart Plug

    Start-up command:
    [BK7231N / CB2S BL0937] Woox R6113 Smart Plug

    Web-App config:
    [BK7231N / CB2S BL0937] Woox R6113 Smart Plug

    You can easily do updates later with the OTA feature in the web app:
    [BK7231N / CB2S BL0937] Woox R6113 Smart Plug

    See also the related repository to find the releases.

    Cool? Ranking DIY
    About Author
    clemensfabig76
    Level 2  
    Offline 
    clemensfabig76 wrote 3 posts with rating 2. Been with us since 2023 year.
  • #2
    p.kaczmarek2
    Moderator Smart Home
    Thanks! Please also paste config json from "Launch Web Application" so I don't have to manually type everything into the database.
  • #3
    clemensfabig76
    Level 2  
    you mean this:
    Code: json
    Log in, to see the code

    ??
  • #5
    p.kaczmarek2
    Moderator Smart Home
    clemensfabig76 wrote:

    Start-up command:
    [BK7231N / CB2S BL0937] Woox R6113 Smart Plug

    I only realized it now, but why do you have LED commands for a relay switch (on/off) plug?
  • #6
    clemensfabig76
    Level 2  
    Oh I have not even realized! I guess it was still from "playing around"!
  • #7
    asteinmitz
    Level 2  
    I have the same plugs, but I am not able to backup the orginal OEM-Firmware. I just succeded with flash without backup. Can you explain how you did the backup to be able to revert again?

    Here is my log:

    
    Now is: Freitag, 11. August 2023 13:15:22.
    Flasher mode: BK7231N
    Going to open port: /dev/ttyUSB0.
    Serial port open!
    Getting bus... (now, please do reboot by CEN or by power off/on)
    Getting bus failed, will try again - 0/100!
    Getting bus success!
    Going to set baud rate setting (115200)!
    Will try to read device flash MID (for unprotect N):
    Flash MID loaded: 1560EB
    Will now search for Flash def in out database...
    Flash def found! For: 1560EB
    Flash information: mid: 1560EB, icName: TH25Q_16HB, manufacturer: TH, szMem: 1000000, szSR: 2, cwUnp: 0, cwEnp: 7, cwMsk: 407C, sb: 2, lb: 5, cwdRd: 05-35-FF-FF, cwdWr: 01-FF-FF-FF
    Entering SetProtectState(True)...
    sr: 0
    sr: 0
    final sr: 0
    msk: 407c
    cw: 0, sb: 2, lb: 5
    bfd: 0
    SetProtectState(True) success!
    Going to start reading at offset 0x00...
    Reading 0x00... failed with serial.BytesToRead 4095 (expected 4111)
    The beginning of buffer in UART contains 040EFF01E0FCF4061009000000200069 data.
    Failed! There was no result to save.
    Backup name is set to test.
    Starting read!
    Now is: Freitag, 11. August 2023 13:20:34.
    Flasher mode: BK7231N
    Going to open port: /dev/ttyUSB0.
    Serial port open!
    Getting bus... (now, please do reboot by CEN or by power off/on)
    Getting bus success!
    Going to set baud rate setting (115200)!
    Will try to read device flash MID (for unprotect N):
    Flash MID loaded: 1560EB
    Will now search for Flash def in out database...
    Flash def found! For: 1560EB
    Flash information: mid: 1560EB, icName: TH25Q_16HB, manufacturer: TH, szMem: 1000000, szSR: 2, cwUnp: 0, cwEnp: 7, cwMsk: 407C, sb: 2, lb: 5, cwdRd: 05-35-FF-FF, cwdWr: 01-FF-FF-FF
    Entering SetProtectState(True)...
    sr: 0
    sr: 0
    final sr: 0
    msk: 407c
    cw: 0, sb: 2, lb: 5
    bfd: 0
    SetProtectState(True) success!
    Going to start reading at offset 0x00...
    Reading 0x00... failed with serial.BytesToRead 4095 (expected 4111)
    The beginning of buffer in UART contains 040EFF01E0FCF4061009000000200069 data.
    Failed! There was no result to save.
    
  • #8
    p.kaczmarek2
    Moderator Smart Home
    It always works for me, but we indeed had some similiar issues reported on forum. First I would suggest you to try multiple baud rates (preferrably lower ones), next try to shorten your flashing wires, try other USB to UART converter if it fails, you can also try hid_download_py Python script if new app fails for you, and I also recommend to flash (or read) WB2S (or CB2S) outside the circuit. You can take a look here, this video shows desoldering and soldering method for CB2S:



    And this method shows the hid_download_py usage, which is an older, but still good and reliable Python script for BK7231 flashing:


  • #9
    asteinmitz
    Level 2  
    Hey,

    thanks for your support. - I bought especially this good part to never have the "try another adapter" problem.
    I can report with windows 10 it works like a charm with the same adapter. - So either there is a problem with MONO or DRIVER in Ubuntu. - The strange thing is, pytool for ESP-flash works without any issues. Read and write no issues. With your Gui write works and I flashed without backup yesterday in Ubuntu.

    hid_download_py doesn't work for me. There is some error in the skript for Ubuntu 20.04 as I assume.

    So maybe we can have a chance to solve the issue.
  • #10
    p.kaczmarek2
    Moderator Smart Home
    There were indeed reports saying that Mono is problematic. I am unable to determine what may go wrong there at the moment. Do you have any ideas how to approach it?

    It might be easier to fix hid_download_py. What kind of error message are you getting there?