[BL602] Elivco smart plug with energy monitor BL0937 RMC004
Bought a Wifi smart plug from AliExpress which seems to be of the Elivco brand, model number RMC004.
Opening the plug is relatively straightforward. In order to get the PCB off the plug I had to de-solder it from the 2 connections to the pins of the plug. After that the PCB with relay could easily be removed.
Closer inspection showed that the plug contained a BL602 board and a BL0937 IC for the energy monitoring. The power for the PCB seems to be supplied by a BP2525 IC. (I was unable to get the IC markings clearly visible on the pictures, using magnification the markings were clearly visible).
Another thing to notice is that the relay seems to be for 16A max whereas the plug is rated for 20A max. As a result I think the plug should not be used with >16A, or am I overseeing something there?
Flashing with the BL602 firmware seems to work, but configuration is necessary and at this moment the BL0937 energy monitoring does not seem to function. Following the traces on the PCB and checking continuity with a multi meter I found the following "configuration":
LED: pin 29 on the BL602, so GPIO20
Relay; P2, so GPIO2
Button: pin 31 on the BL602, so GPIO22
BL0937 CF1: pin4 on the BL602, so GPIO3
BL0937 CF: pin 22 on the BL602, so GPIO14
BL0937 SEL: pin 30 on the BL602 so GPIO21
as mentioned above at this moment this pin assignments work for LED, relay and button, but the BL0937 does not show up at all.







Opening the plug is relatively straightforward. In order to get the PCB off the plug I had to de-solder it from the 2 connections to the pins of the plug. After that the PCB with relay could easily be removed.
Closer inspection showed that the plug contained a BL602 board and a BL0937 IC for the energy monitoring. The power for the PCB seems to be supplied by a BP2525 IC. (I was unable to get the IC markings clearly visible on the pictures, using magnification the markings were clearly visible).
Another thing to notice is that the relay seems to be for 16A max whereas the plug is rated for 20A max. As a result I think the plug should not be used with >16A, or am I overseeing something there?
Flashing with the BL602 firmware seems to work, but configuration is necessary and at this moment the BL0937 energy monitoring does not seem to function. Following the traces on the PCB and checking continuity with a multi meter I found the following "configuration":
LED: pin 29 on the BL602, so GPIO20
Relay; P2, so GPIO2
Button: pin 31 on the BL602, so GPIO22
BL0937 CF1: pin4 on the BL602, so GPIO3
BL0937 CF: pin 22 on the BL602, so GPIO14
BL0937 SEL: pin 30 on the BL602 so GPIO21
as mentioned above at this moment this pin assignments work for LED, relay and button, but the BL0937 does not show up at all.
Comments
Thank you, this is the first time I see BL0937 used with BL602. Currenty BL0937 driver on BL602 will not work, because it's missing a HAL interrupt falling edge counter that is required to count number... [Read more]
good evening. Indeed I just received elivco with BL602 with bl0937 energy meter. The plug works correctly except for the energy meter. I wish I had the ability to help, but I don't have enough knowled... [Read more]
I have an identical socket, the only thing that saves you is replacing the module with ESP-02S, you can order it on ali. Today I managed to solder a new chip, upload supple to the device, and configure... [Read more]
@krzychunh86 OpenBL602 almost supports BL0937, just need to add edge counter support which is missing for this platform now. However, replacing it with ESP-02S is also a good idea, if you want to write... [Read more]
Hello I bought the same socket, unfortunatelly works without energy meter. @pkaczmarek2 do you have any news about that? [Read more]
I think that BL0937 support for BL602 just needs an interrupt counter to be added, this is not much, all remaining code is in place. It should be relatively simple to enable it, especially now that we... [Read more]
@pkaczmarek2 do you have any info on BL0937 support? [Read more]
I have the same plug but I cannot get it open... Any hint on prying open the plug? [Read more]
You have to get tired - one went easily and the other, unfortunately, was hard and that's why it's so bent, but it can be glued together. https://obrazki.elektroda.pl/9271543200_1681999519_thumb.jpg... [Read more]
I tried again today with the latest version of the firmware. Not sure whether things have been fixed already, but things are not completely working for me. When I use "startDriver BL0937" I do get some... [Read more]
I used a dremel-like tool and a diamond cutting disc on medium speed: https://obrazki.elektroda.pl/2562790800_1686761969_thumb.jpg If you don't have such a tool on your hands you can do this with... [Read more]
Well, I was able to open up the plug and flash the device (see also the first post). However, the energy measurement part was/is not functioning. The author (@pkaczmarek2 ) confirmed that this was not... [Read more]
Well, I honestly think that @pkaczmarek2 is willing to help anyone who needs, but time is a limited resource, and number of features to add and bugs to fix is literaly limitless, so you just have to wait... [Read more]
I totally agree with that and was only wondering whether changes were already done or not as I'm probably not good enough in going through the source myself. Not trying to push anyone at all, just won... [Read more]
Thank you for pinging me @p0intless , I haven't seen this reply. Unfortunately, the BL602 interrupt counter is still not finished. I looked at that some time ago and it turned out to be somewhat problematic... [Read more]
Thanks a lot for the response and for the tips! I really did not intend to "push" you in any way so please forgive me if that impression was made. Also thanks a lot for the hint how to fix things, I will... [Read more]
You can look at OpenBL602 SDK: https://github.com/openshwprojects/OpenBL602 Search for, for example, IRQ_TRIGGER_RISING_EDGE https://github.com/openshwprojects/OpenBL602/blob/792d568412017bc8c8b7bf97dc1dac05e1bfb857/components/fs/vfs/include/hal/soc/gpio.h#L123 Maybe... [Read more]
As for me, I don't have any of these, so I'm bailing out. ;) [Read more]
I do have the BL602+BL0937 combo and also followed your suggestions for adjusting the driver (I think). As suggested I applied those in a fork of your main repo (so it should be kind of safe): https://github.com/sverd/OpenBK7231T_App/blob/main/src/driver/drv_bl0937.c... [Read more]