logo elektroda
logo elektroda
X
logo elektroda

[ECR6600][BL0937] Tuya Wifi Smart Plug With Energy Measurement

miegapele 1908 26
ADVERTISEMENT
  • #1 21440114
    miegapele
    Level 15  
    Bought another smart plug hoping for BL0942 as reported recently in the forum, but got something else...
    From Here

    Typical plug appearance, no markings on outside
    White smart plug with a power button on the side.

    Better polymer capacitors maybe, but no fusible resistor or MOV, but two LEDs
    Image of a smart plug's printed circuit board with various electronic components.

    Usual BP2525, BL0937, and AMS1117 (hardly visible)
    Close-up of the interior of a smart plug showing electronic components such as capacitors and transistors.
    Close-up of a circuit board showing electronic components, including a BL0937 chip.

    New ECR6600 chip, not supported, but already reported in this forum:
    Close-up of a circuit board with ECR6600 ESWIN chip.

    Might be easy to flash, 5 pads, could be VCC, GND, TX, RX, BOOT
    Smart plug PCB with JIEYING relay.

    Don't have much time to investigate further these days, maybe sometime in spring...
  • ADVERTISEMENT
  • #2 21440126
    divadiow
    Level 34  
    nice.

    *instantly orders*
  • ADVERTISEMENT
  • #3 21441278
    p.kaczmarek2
    Moderator Smart Home
    Is there a datecode on the PCB?

    I wonder if it was produced after T34 batch or before.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #4 21441371
    miegapele
    Level 15  
    PCB has no marking at all. BL0937 has date code 2439, so this must be made after week 39, 2024.
  • #6 21444695
    p.kaczmarek2
    Moderator Smart Home
    How did you take flash backup? Can you share boot log?
    Helpful post? Buy me a coffee.
  • #7 21444703
    divadiow
    Level 34  
    >>21444672

    cool, thanks. another one for the ECR6600 collection

    List of binary files on a computer screen.
  • #8 21444748
    Jamiwi
    Level 2  
    No flashback was attempted, there is no boot log. The power supply to the module had to be established separately, the voltage from the serial converter was not sufficient.
  • Helpful post
    #9 21444807
    divadiow
    Level 34  
    boot log from IO13 on WG236 after burning your backup

    Code: Text
    Log in, to see the code


    Screenshot of RDTool V1.0.21 showing download settings and logs.

    not getting to pairing mode I guess because I don't have BL0937 present. IO24 appears to be reset/btn

    Added after 3 [hours] 36 [minutes]:

    @Jamiwi have you traced out each pin/gpio to btn, rel, led, bl0937?
  • #10 21445454
    Jamiwi
    Level 2  
    I didn't investigate anything further, for me the most important thing was to preserve the Flash content.
    At the moment there is no ready-made alternative firmware for these plugs
  • ADVERTISEMENT
  • Helpful post
    #12 21500105
    miegapele
    Level 15  
    And here is full config:
    Led for relay is hardwired, not controllable individually.

    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "Wifi Smart Plug With Energy Measurement",
      "model": "Smart plug",
      "chip": "ECR6600",
      "board": "TODO",
      "flags": "1028",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "14": "BL0937CF;0",
        "15": "BL0937SEL;0",
        "20": "BL0937CF1;0",
        "22": "WifiLED;0",
        "24": "Btn;1",
        "25": "Rel;1"
      },
      "command": "",
      "image": "https://obrazki.elektroda.pl/3315507700_1739607137.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic4106357.html"
    }
  • #13 21500150
    divadiow
    Level 34  
    thanks for confirming assignments. we've seen a couple of these in recent weeks. The template was added from this thread not too long ago https://www.elektroda.com/rtvforum/topic4112667.html

    Added after 7 [minutes]:

    I've still to get lucky and get one of these for myself. I'm keen to see what the AT firmware/RDTool running on there will read from efuse, if anything. ref: https://www.elektroda.com/rtvforum/topic4097544-30.html#21488380
  • #14 21500183
    miegapele
    Level 15  
    efuses appears to be not readable in my plug either. But why they are important? We already can read and write firmware, so that means there is no encryption anyway.
  • #17 21500213
    divadiow
    Level 34  
    well, I assume the Skylab firmware that came on the WG236 modules can be used in conjunction with RDTool to read the efuse. @insmod could maybe elaborate...?

    https://github.com/openshwprojects/FlashDumps/tree/main/IoT/ECR6600

    My plan was to get one of these real Tuya devices using ECR6600, flash the WG236 firmware to it, then try reading efuse config in RDTool. Dunno if that's worth a try. Also, are the right UARTs even accessible on this plug with its limited number of test pads. Might not even be possible without a lot of effort I guess.
  • #18 21500523
    miegapele
    Level 15  
    It seems you can read efuses by just modifying firmware to do that.
    My plug has first 21 bytes set to something, others are 0.
    17,e2,19,82,04,8d,0d,80
    9d,24,00,1c,66,0a,07,2d
    25,00,c0,30,10


    It's hard to understand what this is. Looks like some chip config/calibration, not likely to be any sort of encryption keys
  • #19 21500615
    divadiow
    Level 34  
    Oh cool. Nice. Can I ask what address(es) this was done at? If that's a valid question...
  • #20 21500643
    miegapele
    Level 15  
    These are first 21 bytes as read by basically this.
    So basically addresses 0x00 to 0x14 as I understand.
  • #21 21515880
    epolet
    Level 5  
    miegapele wrote:
    Might be easy to flash, 5 pads, could be VCC, GND, TX, RX, BOOT

    Hello, guys.
    May I ask you is that fifth pad put aside of row of others really boot pad?
    If yes, could you please advise how to use it to upload firmware to the chip?
    If not then how put chip to program mode to upload new firmware? I read about "reset (ground CEN/RST) or power-on 3.3V to the device" but really do not understand it. Where is that cen/rst pin is or how can I power-on it when it is always under power. Sorry for dilettantish question. I'm really confused with this chip.
    Thanks.
  • #22 21515988
    divadiow
    Level 34  
    Quote:
    May I ask you is that fifth pad put aside of row of others really boot pad?


    I can trace it shortly, but it is not needed to backup and program the flash.

    Quote:
    If yes, could you please advise how to use it to upload firmware to the chip?


    backup and flash procedure https://www.elektroda.com/rtvforum/topic4111822.html

    Added after 18 [minutes]:

    it's pin 26
    Fragment of a table with technical information related to number 26 and assigned PIN functions.

    Package diagram of ECR6600-TS2L integrated circuit with pins.
  • #23 21517031
    epolet
    Level 5  
    Thank you for your info.
    I checked by multimeter and mentioned pad is shorted to 26 pin of chip. So I used it to program flash. As described under link you provided I shortly connected that pad to GND right after programming start. I don't know was it the reason but now BurnTool gives errors sync failed and download failed (log below for two bin-files).

    ECR6600F_standalone_allinone.bin
    2025-04-12 21:53:03.341 INFO PARSE_AIO: find 5 bin in all-in-one file
    2025-04-12 21:53:03.341 INFO PARSE_AIO: get file 0 info: dlType: 0 startAddr: 0x10000 len: 0x28e4
    2025-04-12 21:53:03.341 INFO PARSE_AIO: get file 1 info: dlType: 2 startAddr: 0x00 len: 0x1000
    2025-04-12 21:53:03.341 INFO PARSE_AIO: get file 2 info: dlType: 2 startAddr: 0x1000 len: 0x4dd0
    2025-04-12 21:53:03.341 INFO PARSE_AIO: get file 3 info: dlType: 2 startAddr: 0x7000 len: 0xab1d4
    2025-04-12 21:53:03.353 INFO PARSE_AIO: get file 4 info: dlType: 2 startAddr: 0x1fb000 len: 0x3000
    2025-04-12 21:53:04.345 ERROR sync failed!
    2025-04-12 21:53:04.463 ERROR download failed!

    OpenECR6600_1.18.76.bin
    2025-04-12 21:53:42.779 INFO PARSE_AIO: find 4 bin in all-in-one file
    2025-04-12 21:53:42.779 INFO PARSE_AIO: get file 0 info: dlType: 0 startAddr: 0x10000 len: 0x3704
    2025-04-12 21:53:42.780 INFO PARSE_AIO: get file 1 info: dlType: 2 startAddr: 0x00 len: 0x1000
    2025-04-12 21:53:42.780 INFO PARSE_AIO: get file 2 info: dlType: 2 startAddr: 0x1000 len: 0x4fe8
    2025-04-12 21:53:42.781 INFO PARSE_AIO: get file 3 info: dlType: 2 startAddr: 0x7000 len: 0xaf6c4
    2025-04-12 21:53:43.800 ERROR sync failed!
    2025-04-12 21:53:43.909 ERROR download failed!

    Maybe someone met such situation and can advise how to overcome?

    BTW. Before that I, seems, successfully uploaded file ECR6600F_standalone_allinone.bin to the chip without usage of RST pin. Just clicking "start" button in BurnTool.
    I noted new wifi appeared instead of previous one. Now it has CMQLINK-590488-38ca. I'm able to connect to it. But don't know to which IP-address to go to open any site. Lan scan doesn't help.
    Does anyone know is there any use for that change?
    Thanks in advance.
  • #24 21521544
    epolet
    Level 5  
    >>21517031
    No advice. So I moved forward alone and reached success.
    Two secrets helped me in this.
    1) I just clicked button "Start" of RDTool again and again
    2) After click wait 1 second, connect RST to GND and disconnect immediately. When you will lucky download (as for me it is more upload than download but ok, let it be called download, what confused a lot nevertheless) file OpenECR6600_1.18.76.bin will start and finish successfully.
    Btw. I found much more convenient location to touch RST to GND See picture below.
    Close-up of a printed circuit board with a relay and colored wires soldered to it.
    Hope all is clear.
    Going that way I successfully reprogrammed the socket, connected to it via WiFi, configured its WiFi connection and accessed to it via my home lan. Thanks to all who helped me to reach this result.

    Now the question, if you allow.
    AFAIK this socket has power meter. Could anyone clarify me how to use it?
    Thanks in advance.
  • #25 21521656
    divadiow
    Level 34  
    Glad you got there in the end. BL0937 support was added in v1.18.61 so if you are on that version or higher simply importing the template or settings pin as below for this device and rebooting should be enough
    Code: Text
    Log in, to see the code
  • #26 21522523
    epolet
    Level 5  
    >>21521656
    Thank you. It works. Now I see status of electricity on socket site and MQTT messages.
    Thank you.
    I'm pretty sure more questions will happen. But later.
    Thanks again.
  • #27 21595107
    Michaelred
    Level 11  
    How do these TNCE plugins from ECR660 vs the older ones on BK7321 perform with the original firmware on tuya cloud? How about the wifi coverage? Is it actually better on this Wifi 6. That antenna printed flat on the PCB somehow doesn't encourage :) The power consumption meter is reasonably accurate?
    EDIT: The plug has now arrived. Looks like I got the same as the subject author. Bought a 16A plug but got a 20A one. The wattmeter seems to work ok , However, the wattmeter readings are worse than those on the Aubess and on such a normal meter without wifi.
    The socket opens them very easily because they are only lightly glued. In the promos on aliexpress in the combined offers tab for about 9zł each were.
    Wattmeter readings after 24 hours from the same socket
    Silvercrest 1.41 kWh
    TNCE 1.46kWh
    Aubess 1.38kWh
    This shows that after subtracting the consumption of the 2 smart sockets (approx. 0.03 kWh/24h) the Aubess has virtually identical readings with the Silvercrest wattmeter. It assumes an intake of about 0.7w per socket. The TNCE socket overestimates the consumption a little. It also shows a higher mains voltage than the Silvercrest and Aubess.

    [ECR6600][BL0937] Tuya Wifi Smart Plug With Energy Measurement .
    [ECR6600][BL0937] Tuya Wifi Smart Plug With Energy Measurement .
    [ECR6600][BL0937] Tuya Wifi Smart Plug With Energy Measurement .
    [ECR6600][BL0937] Tuya Wifi Smart Plug With Energy Measurement .

Topic summary

The discussion centers on a Tuya WiFi Smart Plug featuring energy measurement, equipped with the ECR6600 chip and BL0937 energy metering IC, differing from the expected BL0942. The plug's PCB lacks markings and includes components such as BP2525, AMS1117, and polymer capacitors without fusible resistors or MOVs. The ECR6600 chip is not yet fully supported, but flashing is possible via five test pads identified as VCC, GND, TX, RX, and BOOT. Flash backup was performed without a boot log due to insufficient power from the serial converter, but a boot log was later obtained showing TuyaOS V3.8.3 firmware compiled in January 2024. The device's WiFi performance and GPIO assignments were confirmed, with the relay LED hardwired and not individually controllable. Attempts to read efuse data revealed limited and non-encrypted calibration/configuration bytes. Programming the flash requires grounding the reset (RST) pin briefly after initiating the download in RDTool; the RST pad was identified and a more convenient grounding point was found. Firmware version 1.18.61 or higher supports BL0937, enabling power measurement and MQTT integration. The community shared templates and procedures for backup, flashing, and configuration, facilitating successful reprogramming and network connection of the plug. Questions remain about detailed usage of the power metering feature.
Summary generated by the language model.
ADVERTISEMENT