logo elektroda
logo elektroda
X
logo elektroda

[BK7231N] Tuya Generic TY63A DIN Rail Energy Meter: Can't switch it on!

dirk754 96 1
ADVERTISEMENT
  • TuyaMCU message flood exhausts heap on relay on

    #1 21944736
    dirk754
    Level 1  
    Posts: 1
    Hi,
    I bought this device: https://github.com/tuya-cloudcutter/tuya-cloudcutter/issues/469. ModelId is "000004pxun", and "ETU9-OUPA-WIFI-II-1-BL-NR_V1.0" is printed on the PCB.

    Flashing was really easy, and there are lots of similar devices here where I could "steal" an autoexec.bat from. But if I switch the relay on, my Wi-Fi dies. :-)
    The reason for this is "Error:MAIN:Low heap warning!". The standard log entry is 70k ("free 68312"), but when I press the on-button at the device, the MCU generates lots of messages (> 50 per second "Info:TuyaMCU:Received"), and after roughly 10-15 seconds the memory is exhausted and the device does not respond any more.
    I trimmed down my autexec.bat to one line only, and it still happens: "startDriver TuyaMCU".

    So, what am I doing wrong? Do I need to configure something else besides Wi-Fi, MQTT and autoexec.bat? I am using version 1.18.298.

    Bye Dirk.
  • ADVERTISEMENT
  • Relay and PowerSave testing suggested

    #2 21944863
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14742
    Help: 659
    Rate: 12839
    This requires futher testing. Relay should not affect the heap. So you're saying it happens when TuyaMCU is ran, but doesn't happen without it?

    What would happen if you were to run PowerSave 1 as well?

    That's a very strange problem indeed. In the past I saw it once, related to RF partition and I solved by nuking RF, but that's not recommended.... yet. Unless it's necessary.

    @divadiow @insmod ideas?
    Helpful post? Buy me a coffee.
ADVERTISEMENT