logo elektroda
logo elektroda
X
logo elektroda

[BK7231N / CB2S BL0937] Elivco EU Smart Plug 20A BL0937 RMC021

miegapele 5253 13
ADVERTISEMENT
  • #1 20691922
    miegapele
    Level 15  

    Bought some cheap sockets from AliExpress Elivco store, with the intention to cut from the cloud.
    This one is a 20A smart socket marked RMC021, which was not previously shown here.
    Wi-Fi smart plug model RMC021 with technical specifications on the casing.
    White Elivco Tuya EU 20A smart plug with power button.
    It opens from the back quite easily, just need to work the seam loose with the spudger.
    Disassembled Elivco 20A smart plug
    My soldering skills are way too weak to try to desolder and see if the relay is rated for 20A, but anyway I would not recommend using it for that even if it is :).
    It contains the usual BK7231N / CB2S BL0937 chips.
    The board seems to be the same as for RMC004, which has a teardown already.
    Electronic circuit board with components like capacitors and resistors.
    BK7231N is hard to make a picture with my phone, that's the best I can.
    Close-up of an electronic module with BK7231N chip on a circuit board.
    Usual BL0937 and BP2525 chips
    Close-up of a circuit board with electronic components, including the BP2525 chip. Close-up of an electronic circuit board with various components, including a small chip.

    Flashed with tyua-cloudcutter using Firmware 1.1.8. Did not check the firmware in the app. Flashing was rather difficult, was stuck on the last step, but it might be because of my trashy Wi-Fi adapter. It seems after flashing goes to the last step it's no longer possible to reconnect to Tyua, at least I was not able to. And it had a non-Tyua AP at that point.
    Config seems to be like this, not completely sure if all the power values match, but button, relay, LED, and active power look correct:
    
    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "Elivco Tuya EU Smart Plug 20A",
      "model": "RMC021",
      "chip": "BK7231N",
      "board": "TODO",
      "flags": "1024",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "6": "BL0937CF1;0",
        "7": "BL0937CF;0",
        "8": "LED_n;1",
        "10": "Btn;1",
        "24": "BL0937SEL;0",
        "26": "Rel;1"
      },
      "command": "",
      "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
    }
    

  • ADVERTISEMENT
  • Helpful post
    #2 20692730
    p.kaczmarek2
    Moderator Smart Home
    Thanks, it's good to see you managed to flash it successfully. That kind of plug is usually problematic due to the way it's constructed, the access to bottom side of the board is very problematic.

    I always prefer to buy LSPA9 models: https://www.elektroda.com/rtvforum/topic3887748.html
    They are easier to disassemble and to flash by wires.

    Now, you can finalize configuring your device:
    - calibrate power metering
    - enable power save with PowerSave 1 command in startup command field (or autoexec.bat)
    - you can also start SSDP driver to make it discoverable by Windows: https://www.youtube.com/watch?v=aDZseGQSl-8
    Helpful post? Buy me a coffee.
  • #3 20693284
    miegapele
    Level 15  

    p.kaczmarek2 wrote:
    I always prefer to buy LSPA9 models: https://www.elektroda.com/rtvforum/topic3887748.html
    They are easier to disassemble and to flash by wires.

    I did buy a few of them, will try to flash today.

    p.kaczmarek2 wrote:
    Enable power save with PowerSave 1 command in the startup command field (or autoexec.bat)

    Will this help much? I think the relay still eats most of the power (if enabled). These plugs use around 0W with the relay off, and about 1W with the relay on.
  • #4 20693289
    p.kaczmarek2
    Moderator Smart Home
    PowerSave 1 is strongly recommended because the chinese products are often designed without any safety margin and using them without PowerSave can wear out electrolytic capacitors too quickly. Those are low quality, low cost products.

    See here for a short repair report of smart device with leaked electrolytic capacitor:
    https://www.elektroda.pl/rtvforum/topic3898805.html
    OBK PowerSave is optimized to prevent that.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 20693335
    miegapele
    Level 15  

    Thank you, added backlog PowerSave 1 command to startup. Need to check how much it improves power consumption.
  • #6 20693337
    p.kaczmarek2
    Moderator Smart Home
    Keep in mind that dynamic power saving may be hard to track, especially that it can be affected by things like Web App Log tab open or by DTIM setting on your router (the refresh frequency of WiFi, one could say, in a big implications).
    Helpful post? Buy me a coffee.
  • #7 20711002
    lvnorse
    Level 3  

    >>20691922
    Hmm, strange. I have the same RMC021, but it is BL602 BL0937 combo. Yes, the power monitor shows zero BL602 BL937 combo, I guess.

    Power monitor screen displaying voltage, current, and power information.

    Wi-Fi smart plug RMC021 with open casing revealing internal electronics. Close-up of a circuit board with markings and a chip. Close-up of a green circuit board with integrated circuits and other electronic components.
  • #8 20711217
    p.kaczmarek2
    Moderator Smart Home
    BL0937 driver for BL602 must be finished first:
    https://github.com/openshwprojects/OpenBK7231T_App/pull/862
    If you know coding, you can help us. You only need to setup on change interrupt to count edges
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #9 20711344
    lvnorse
    Level 3  

    Ok, I think I understand what you mean. The driver is not finished for BL602.

    #if PLATFORM_W600
    static void HlwCf1Interrupt(void* context) {
    	tls_clr_gpio_irq_status(GPIO_HLW_CF1_pin);
    	g_vc_pulses++;
    }
    static void HlwCfInterrupt(void* context) {
    	tls_clr_gpio_irq_status(GPIO_HLW_CF_pin);
    	g_p_pulses++;
    }
    #else
    void HlwCf1Interrupt(unsigned char pinNum) {  // Service Voltage and Current
    	g_vc_pulses++;
    }
    void HlwCfInterrupt(unsigned char pinNum) {  // Service Power
    	g_p_pulses++;
    }
    #endif

    W600 is for Winner Micro.
    "else" is for Beken.
    But for Bouffalo Lab, there needs to be a separate interrupt.
  • #10 20711347
    p.kaczmarek2
    Moderator Smart Home
    Yes, someone needs to search the SDK for code samples here:
    https://github.com/openshwprojects/OpenBL602
    and integrate BL602 interrupt.

    I remember that I tried to do it in the past, even tough I don't have BL602+BL0937 combo, but had some issue, maybe with compilation or smth....
    Helpful post? Buy me a coffee.
  • #11 20711511
    lvnorse
    Level 3  

    Did check Bl602 specs it is RISC-V
    Quote:
    64 interrupts, interrupt controller with 16 interrupt levels/priorities for low-latency interrupt processing, support for external Flash


    Quote:
    BL602/BL604 supports internal RTC wake-up and external interrupts wake-up.
    CPU interrupt controller supports stack/nesting, level/pulse, and high/low active.


    and did find nice implementation of interrupts with LoRa module Here

    I hope I'm up for the task, just need to set up the compiler.
  • #12 20711517
    p.kaczmarek2
    Moderator Smart Home
    Actually it is easier than that. You don't need to setup compiler, you can use our online builds. They work even in pull requests. I may need to accept them first, but once I do it, you will get binaries built online.
    Helpful post? Buy me a coffee.
  • #13 20711943
    lvnorse
    Level 3  

    Does not seem it's so easy, just added some lines, it's a lot of reading. I think enough for today. Also, some other guy has the same issue and is working on it.
  • ADVERTISEMENT
  • #14 20733641
    ireneuszsto
    Level 1  
    I bought it on Ali with the hope of Suplating. However, so far I have not even opened it. :-) .

Topic summary

The discussion revolves around the Elivco EU Smart Plug RMC021, a 20A smart socket purchased from AliExpress, which utilizes BK7231N and BL0937 chips. Users share experiences regarding the disassembly and flashing of the device, noting that the construction can complicate access to the board. Recommendations include using the PowerSave 1 command to enhance power efficiency and prevent premature capacitor failure, as these devices often lack safety margins. Some users report variations in chip combinations, such as BL602 with BL0937, and discuss the need for driver development for these configurations. The conversation also touches on the challenges of coding and integrating interrupts for the BL602 chip.
Summary generated by the language model.
ADVERTISEMENT