logo elektroda
logo elektroda
X
logo elektroda

[CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay)

GP007 4068 24
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • Plug purchased on ali in the promotion "3 items from" for 2.99 USD as 20A with energy measurement. The box is completely noname, there are also no inscriptions on the plug.
    Plus there are two diodes - blue for wifi, red for on / off.
    [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay)

    [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay)

    Link without promotion: link

    Initially I was going to use it with domoticz with Tuya plugin but curiosity prevailed.
    Attempts to upload via tuya cloudcutter failed.

    Demolition - practically damage-free with such a clamp:
    [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay)

    Now I know that such sockets can be dismantled without much problem, only a moment of patience is required, i.e. 2-3 minutes :)
    [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay)

    Inside there is a surprise: a 16A relay, the thickness of the solder and the PE cable is not great.
    I opened a dispute on ali and they gave back half the price without resistance.
    There we find the CB2S chip and the energy measurement using BL0937
    [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay)

    [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay) [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay)

    I desoldered the CB2S for programming, the braid is necessary.
    Soft uploaded using BK7231 GUI Flash Tool - here I had a small problem at the beginning because WIN10 lost the drivers for CP2102 after the next update, but after realizing the situation it went without major problems.

    Configuration with the help of other topics from the electrode:

    P6 BL0937CF1
    P7 BL0937CF
    P8 LED (blue)
    P10 Btn
    P24 BL0937SEL
    P26 Rel (probably also a second red diode here)

    After calibrating with a 60W bulb that is actually 62W at 229V and a Fluke multimeter it seems to measure approx.

    Only with the OFF position there is a strange measurement instead of 0.

    [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay)

    edit: Flag 38 helped with off measurement
    If there was such a plugin, please remove it, this is the third device on which I uploaded openbeken, previously two mini switches - one OTA, the other soldering.
    Thanks to the creator - respect!

    Cool? Ranking DIY
    About Author
    GP007
    Level 8  
    Offline 
    GP007 wrote 16 posts with rating 7. Been with us since 2019 year.
  • ADVERTISEMENT
  • #2 20560296
    p.kaczmarek2
    Moderator Smart Home
    Hello, I see this is another LSPA9 style device. I often see such, but another review won't hurt, it's hard to judge what is what if the manufacturer does not sign the product.

    Strange measurements reported by BL0937 can be "cut" by turning on the appropriate flag, which resets them when the relay is open.
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/flags.md
    I think I'll set it to on by default...
    
    38	[Power] Set power and current to zero if all relays are open
    


    Do you have maybe 2MB flash backup of this plugin?

    PS: Copy the template from Web App->Config, then it is formatted better.
    Helpful post? Buy me a coffee.
  • #4 20561086
    GP007
    Level 8  
    Ustawiłem flagę 30 [MQTT] Enable Tasmota TELE etc publishes (for ioBroker etc)
    i mimo wydania komend:
    VCPPublishThreshold 0.5 0.01 0.5 oraz VCPPublishIntervals 30 60
    średnio co 3 sekundy mam mqtt jak poniżej:

    tele/obk550A13C4/SENSOR {"Time":"2023-04-30T12:45:48","ENERGY":{"Power": 0.000000,"ApparentPower": 0.000000,"ReactivePower": 0.000000,"Factor":1.000000,"Voltage":239.068634,"Current":0.000000,"ConsumptionTotal":0.000000,"ConsumptionLastHour":0.000000}}
    tele/obk550A13C4/SENSOR {"Time":"2023-04-30T12:45:51","ENERGY":{"Power": 0.000000,"ApparentPower": 0.000000,"ReactivePower": 0.000000,"Factor":1.000000,"Voltage":237.840759,"Current":0.000000,"ConsumptionTotal":0.000000,"ConsumptionLastHour":0.000000}}
    tele/obk550A13C4/SENSOR {"Time":"2023-04-30T12:45:54","ENERGY":{"Power": 0.000000,"ApparentPower": 0.000000,"ReactivePower": 0.000000,"Factor":1.000000,"Voltage":239.314208,"Current":0.000000,"ConsumptionTotal":0.000000,"ConsumptionLastHour":0.000000}}
    tele/obk550A13C4/SENSOR {"Time":"2023-04-30T12:45:57","ENERGY":{"Power": 0.000000,"ApparentPower": 0.000000,"ReactivePower": 0.000000,"Factor":1.000000,"Voltage":237.717971,"Current":0.000000,"ConsumptionTotal":0.000000,"ConsumptionLastHour":0.000000}}
    tele/obk550A13C4/SENSOR {"Time":"2023-04-30T12:46:00","ENERGY":{"Power": 0.000000,"ApparentPower": 0.000000,"ReactivePower": 0.000000,"Factor":1.000000,"Voltage":237.104019,"Current":0.000000,"ConsumptionTotal":0.000000,"ConsumptionLastHour":0.000000}}


    Boje sie że mój broker mqtt tego nie wytrzyma.
  • #5 20561089
    p.kaczmarek2
    Moderator Smart Home
    I don't think it interferes with anything, but the Tele Tasmota emulation is changed by another command:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands.md
    [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay)
    
    TasTeleInterval	[SensorInterval][StateInterval]
    
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #6 20561109
    GP007
    Level 8  
    I tried TasTeleInterval 60 60
    but i get the answer:
    Error:CMD:cmd TasTeleInterval NOT found (args 60 60)
    unknown command
  • #7 20561147
    p.kaczmarek2
    Moderator Smart Home
    Maybe you have too old version. Additionally, you need to run these commands on every boot, eg via autoexec.bat
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #8 20561214
    GP007
    Level 8  
    Thanks! I had version 1.17.11, after uploading 1.17.74 it's ok.
  • #9 20563876
    Mateusz_konstruktor
    Level 36  
    GP007 wrote:
    The box is completely unnamed

    Try peeling off the sticker covering some of the markings.
    [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay)
  • #10 20576998
    IDzOR
    Level 2  
    Hello!
    I've bought similar plug on aliexpress. Paper box, looks the same, however the plug is signed as ELIVCO, model LSPA9. Interesting thing is, unlike to Elivco plug in other (
    p.kaczmarek2) posts, this one has CB2S module with Belon chip BL2028N inside, along with power metering chip BL0937.
    OpenBeken pinout is the same as the GP007 wrote in initial post. GP007 hank you for that!
    I have made successful backup via bk7231tools as well as via hid_download_py. hid_download_py program was significantly faster!
    Flashed OpenBK7231N_QIO_1.17.104, works just fine. Thank you mr p.kaczmarek2!

    Have just one pinout question. There is a Red LED which is in my case lighting all the time. I was wondering if it's possible to synchronize it with button (on/off)

    [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay) [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay) [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay) [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay)
  • #11 20577028
    p.kaczmarek2
    Moderator Smart Home
    Good job! Remember also to try out our new flasher/configurator:
    https://github.com/openshwprojects/BK7231GUIFlashTool

    You can just download it, and drag and drop your 2MB binary, and take a look:
    [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay)
    See? We've got a config for your device.
    This tool can extract GPIO config from Tuya firmware, so you get working pinout for OBK.
    It's an experimental version, so double check it first, but it should be OK!
    Quote:

    Device configuration, as extracted from Tuya:
    - BL0937 SEL on P24
    - Button (channel 1) on P10
    - LED (channel 1) on P23
    - BL0937 VI on P6
    - WiFi LED on P8
    - BL0937 ELE on P7
    - Relay (channel 1) on P26

    Here is the same as OBK json:
    Code: JSON
    Log in, to see the code

    (generated here https://openbekeniot.github.io/webapp/templateImporter.html )


    Now, to your question - I don't know which is red LED. It may be the LED that is on P23, or a WiFi LED, that is on P8. It seems that they are both controllable. You can set the LED to the same channel as relay and it will follow the relay. You can also set LED_n role, which will mean that LED is on when relay is Off.
    Helpful post? Buy me a coffee.
  • #12 20577139
    IDzOR
    Level 2  
    Thanks a lot. You solved it.
    This pinout perfectly works for me:

    P6 BL0937CF1
    P7 BL0937CF
    P8 WifiLED //Blue LED
    P10 Btn (channel 1)
    P23 LED_n (channel 1) //Red LED lighting when relay is switched ON, not lighting when relay is switched OFF
    P24 BL0937SEL
    P26 Rel (channel 1)
  • #13 20622569
    IDzOR
    Level 2  
    Hello mister @p.kaczmarek2
    I have updated version to 1.17.137. I have find out two strange issues and you can help me out.

    1) I can see in the log info:
    Info:GEN:sta:rssi=-67,ssid=Archer,bssid=14:cc:20:0c:63:8e,channel=1,cipher_type:CCMP
    But in mqtt explorer i see bssid like this:
    "Wifi": {
    "AP": 1,
    "SSId": "Archer",
    "BSSId": "30:B5:C2:5D:70:72"
    - It's really strange because i don't have such MAC address among my APs. That MAC address from the WebApp log is correct one!

    2) In the WebApp log i can see Error:
    Error:CMD:cmd SENSOR NOT found (args {"Time":"2023-06-18T22:51:19","ENERGY":{"Power": 11.253333,"ApparentPower": 26.634151,"ReactivePower": 24.140020,"Factor":0.422515,"Voltage":232.378479,"Current":0.114615,"ConsumptionTotal":1388.304687,"ConsumptionLastHour":0.000000}})
    - I don't what does it means, cuz everything looks working fine. Except ConsumptionLastHour.

    Thanks for your help
  • #14 20622576
    p.kaczmarek2
    Moderator Smart Home
    Very good spotting. First issue is just caused by a placeholder in our code. We don't have BSSID printed correctly yet. It's just a placeholder that is there all the time for everybody. I will try to fix that soon.

    Second... it's a misleading error, it should not appear. I will look into it.
    Helpful post? Buy me a coffee.
  • #15 20916352
    Jacekmiel1
    Level 7  
    >>20560043

    Hi, I have the same no name plug from Polish allegro.

    My question is as follows. Do I have to solder the CB2S board out of the module (e.g. because of other connections on it that may interfere with programming)?

    Will it be enough to solder into it?

    Attached are pictures of the inside of my board.
    [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay)no-name-wi...czka1.JPEG Download (548.95 kB) [CB2S/BL0937] No name plug (QNCX) 20A (actually 16A relay)no-name-wi...yczk2.JPEG Download (555.39 kB) .
  • #16 20916690
    p.kaczmarek2
    Moderator Smart Home
    @Jacekmiel1 first post indicates that P10 (RX1) is used as a button, only now I don't know if there is also a debouncing capacitor there? If so, it needs to be soldered out. If not, it will be possible to upload flash without it. Situation similar to here:
    https://www.youtube.com/watch?v=PKkiqDNFIx8
    Generally, I always suggest to solder, it's very simple. Check out our channel on YT, see the playlist of flashing guides:
    https://www.youtube.com/@electrodacom
    Watch this video, desoldering CB2S is very easy, just important to use flux and braid:


    .
    Helpful post? Buy me a coffee.
  • #20 20938610
    Jacekmiel1
    Level 7  
    Okay, I would like to leave information that I finally managed to program this socket with your software ;)

    The relay control works without any problems, but there is a problem with the button operation, probably due to my incorrect I/O configuration.
  • ADVERTISEMENT
  • #21 20938649
    p.kaczmarek2
    Moderator Smart Home
    Try to download the Tuya configuration according to this tutorial:


    Helpful post? Buy me a coffee.
  • #22 20938721
    Jacekmiel1
    Level 7  
    @p.kaczmarek2 I had a problem when trying to upload the software to another same socket... The BK7231 Easy UART Flasher program keeps getting the following message in the log: "Getting bus filed, will try again..."

    The connection to the CB2S board appears to be correct. On the TTL converter, when resetting via the CEN pin to ground, the TX and RX LEDs will flash, so it seems that the micro processor is alive and being reset. What else can I check?
  • #23 20938724
    p.kaczmarek2
    Moderator Smart Home
    Swap RX and TX.
    Replace the baud rate with another one.
    Reset not via CEN, but via power off/power on.
    Are you flashing the system or CB2S desoldered?
    How do you power the whole thing?
    Helpful post? Buy me a coffee.
  • #24 20938758
    Jacekmiel1
    Level 7  
    I changed RX and TX. Tomorrow I will correct February again, but the connection seems to be good.

    I reset it via CEN, just like with the previous module, and it worked straight away. I`ll try on/off tomorrow.

    Programs on a desoldered board.

    At first I thought that maybe I had damaged the board during soldering, but I see that in the Tuya smart life application the module connects + is active in my WiFi network. Well, it turns out I have to solder until I get it right.

    Added after 37 [minutes]:

    UPDATE: However, I couldn`t resist and sat down immediately...

    I think it`s a matter of cold solder joints on RX and TX, or restarting Windows helped. Thanks so much for all your help!
  • #25 21108410
    kyrychenkoqa
    Level 2  
    Hello guys. Can some one help me out where i can locate Tx and VCC, from main board? Because i damaged those 2 pads when desoldered CB2S module. Is that located on BL0937 ? Any help would be appreciated.

Topic summary

The discussion revolves around a no-name plug purchased from AliExpress, initially advertised as a 20A device but containing a 16A relay. Users share experiences with the device, including attempts to integrate it with Domoticz using the Tuya plugin, which faced challenges. The internal components reveal a CB2S module with a BL2028N chip and a BL0937 power metering chip. Various users discuss flashing the device with OpenBK7231 firmware, troubleshooting MQTT configurations, and issues with button functionality. The conversation also includes advice on desoldering the CB2S module for programming and resolving connection problems during flashing. Users provide insights into pin configurations and share tools for easier flashing processes.
Summary generated by the language model.
ADVERTISEMENT