logo elektroda
logo elektroda
X
logo elektroda

[Solved] [W600] OpenBK on W600(TW-02) smartplug STOP WORKING after random time

cicciobastardo 723 3
ADVERTISEMENT
  • #1 21003398
    cicciobastardo
    Level 2  
    Hello,

    I "finally" succeeded in flash OpenW600_1.17.501.fls on my smart plug based on W600 (TW-02 v2.0) with BL0937.
    Now I upgrade via OTA to OpenW600_1.17.504_gz.img so I think that I have the last firmware.

    After many initial problems, I find a configuration that works fine...

    BUT my problems are still here:
    -the plug work fine for "some time" (one hour) then stop working, I have also activated PING WATCHDOG but not help; I have also disabled Power Save (with PowerSave 0), but... nothing changes

    Other problem:
    -I can't set a static IP address (the page for configure the IP changes the DNS when I submit the page from xxx.yyy.zzz.kkk to 0.yyy.zzz.kkk and the IP does not change after a restart of the device)

    The LOG does not help me:
    Info:MAIN:Time 1680, idle 0/s, free 30848, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/8 
    Info:GEN:ip=192.168.5.229,gate=255.255.255.0,mask=192.168.5.1,dns=192.168.5.101
    Info:MAIN:Time 1681, idle 0/s, free 22328, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 3/8 
    Info:MQTT:Publishing val (250 bytes) to tele/w600CD4D4612/SENSOR retain=0
    Info:MQTT:Publishing val TIM-28428721 to w600CD4D4612/ssid retain=0
    Info:MAIN:Time 1682, idle 0/s, free 30632, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 3/8 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic tele/w600CD4D4612/SENSOR
    Error:CMD:cmd SENSOR NOT found (args {"Time":"1970-01-01T00:00:00","ENERGY":{"Power": 0.000000,"ApparentPower": 0.000000,"ReactivePower": 0.000000,"Factor":1.000000,"Voltage":233.452606,"Current":0.000000,"ConsumptionTotal":0.027182,"Yesterday": 0.000000,"ConsumptionLastHour":0.000000}})
    Info:MQTT:Publishing val 3 to w600CD4D4612/sockets retain=0
    Info:MQTT:Publishing val 230.6 to w600CD4D4612/voltage/get retain=0
    Info:MAIN:Time 1683, idle 0/s, free 30632, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 3/8 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic w600CD4D4612/voltage/get
    Info:MQTT:Publishing val 39 to w600CD4D4612/rssi retain=0
    Info:MAIN:Time 1684, idle 0/s, free 30632, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 3/8 
    Info:MQTT:Publishing val (250 bytes) to tele/w600CD4D4612/SENSOR retain=0
    Info:MQTT:Publishing val 1684 to w600CD4D4612/uptime retain=0
    Info:MAIN:Time 1685, idle 0/s, free 30848, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/8 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic tele/w600CD4D4612/SENSOR
    Error:CMD:cmd SENSOR NOT found (args {"Time":"1970-01-01T00:00:00","ENERGY":{"Power": 0.000000,"ApparentPower": 0.000000,"ReactivePower": 0.000000,"Factor":1.000000,"Voltage":231.063629,"Current":0.000000,"ConsumptionTotal":0.027182,"Yesterday": 0.000000,"ConsumptionLastHour":0.000000}})
    Info:MQTT:Publishing val 30632 to w600CD4D4612/freeheap retain=0
    Info:MAIN:Time 1686, idle 0/s, free 30632, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 3/8 
    Info:MQTT:Publishing val 192.168.5.229 to w600CD4D4612/ip retain=0
    Info:MAIN:Time 1687, idle 0/s, free 30632, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 3/8 


    PS
    I don't understand the ERROR:
    Error:CMD:cmd SENSOR NOT found
    But I think it is not linked with the problem,

    Also the IP address in Info:GEN:ip=192.168.5.229,gate=255.255.255.0,mask=192.168.5.1,dns=192.168.5.101 seems wrong gate/mask, but it is CORRECT in DHCP in reality (and like I said it works for some time, before stop working)
    The real LOG would be: ip=192.168.5.229,gate=192.168.5.1,mask=255.255.255.0,dns=192.168.5.101
    Maybe there is some problem in LOG ?

    If HELP I can post some images

    Thanks
    Ciccio
  • ADVERTISEMENT
  • #2 21003940
    cicciobastardo
    Level 2  
    I tested a different WiFi connection (router WiFi via Android smartphone) and the smartplug seems to be more stable. 3 hours without problems.

    I may need some help to test this smartplug or I have to try re-flash Tuya firmware back.

    Thanks
  • ADVERTISEMENT
  • #3 21004915
    cicciobastardo
    Level 2  
    I probably find the problem and now smartplug works:
    Log without error -> UpTime: 46656s
    MQTT without error
    I wait 24h and then I will close topic and mark SOLVED
    ...

    If I can HELP someone with the same chip W600(TW-02) and the same problem:
    I search only the ERROR in Log and find many .. MANY error that make MQTT instable (disconnected frequently) and probably is the cause of the MEMORY ERROR
    Examples:
    
    Error_CMD:cmd RESULT NOT found ....
    Error:MQTT:Publish err: ERR_MEM aka -1
    


    I search for configuration that involve MQTT,
    deselect/disable ALL the FLAGS [MQTT]

    I select only Flag10 ->[MQTT] Broadcast self state on MQTT connect

    No more Error in Log and the smartplug very stable
    Connection to MQTT perfect, no disconnect, all works OK (for now)

    I have always the problem of:
    -STATIC IP: the page cfg_ip not works, and the tasmota cmd on url not works...
    How can I set STATIC IP?
    I have to open new Topic?

    -LOG: Info of IP/GATE/MASK/DNS message in Log are wrong:
    Info:GEN:ip=192.168.5.229,gate=255.255.255.0,mask=192.168.5.1,dns=192.168.5.101
    it should be IP/MASK/GATE/DNS
    Info:GEN:ip=192.168.5.229,mask=255.255.255.0,gate=192.168.5.1,dns=192.168.5.101

    I hope in future firmware.

    Tell me if I can Help with Testing.
  • #4 21009249
    cicciobastardo
    Level 2  
    In
    CONFIG
    under
    CONFIGURE GENERAL/FLAGS
    I select only Flag10 ->[MQTT] Broadcast self state on MQTT connect
ADVERTISEMENT