OpenBK7231T_App icon indicating copy to clipboard operation
OpenBK7231T_App copied to clipboard

OpenBK7231T secondsWithNoPing autoexec bat no reset counter after ping back Is pissibility to NoPingTime return to -1 when ping avaible?

Open wchpikus opened this issue 10 months ago • 2 comments

Describe the bug A clear and concise description of what the bug is.

Firmware:

  • 1.18.20
  • Chipset BK7231N mini smart switch
  • Chip/model: BK7231T?

autoexec: startDriver NTP startDriver SSDP

// setup ping watchdog PingHost 8.8.8.8 PingInterval 10

// wait for NoPingTime reaching 60 seconds waitFor NoPingTime 60 echo Sorry, it seems that ping target is not replying for over 60 seconds, will OFF switch! // delay just to get log out echo OFF NOW! delay_s 1 SetChannel 1 0 delay_s 10 SetChannel 1 1

Log: Info:GEN:sta:rssi=-64,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Info:MQTT:mqtt_host empty, not starting mqtt Info:MAIN:Time 61, idle 186376/s, free 73216, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 3/38 Info:MAIN:Time 62, idle 188671/s, free 73216, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 3/38 Info:MAIN:Time 63, idle 193738/s, free 73216, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 3/38 Info:MAIN:Time 64, idle 194696/s, free 73216, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 3/38 Info:MAIN:Time 65, idle 190594/s, free 73216, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 3/38 Info:MAIN:Time 66, idle 193340/s, free 73216, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 3/38 Info:MAIN:Time 67, idle 201340/s, free 73216, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 3/38 Info:MAIN:Time 68, idle 194369/s, free 73232, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 3/38 Info:MAIN:Time 69, idle 194118/s, free 73216, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 3/38 Info:MAIN:Time 70, idle 192016/s, free 73216, MQTT 0(4), bWifi 1, secondsWithNoPing -1, socks 3/38 Info:GEN:dhcp=0 ip=192.168.28.156 gate=192.168.28.183 mask=255.255.255.0 mac=a8:80:55:a3:f8:84 Info:GEN:sta: 1, softap: 0, b/g/n Info:GEN:sta:rssi=-64,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Info:MAIN:Time 71, idle 185964/s, free 73016, MQTT 0(4), bWifi 1, secondsWithNoPing 1, socks 4/38 Info:MAIN:Time 72, idle 193198/s, free 73024, MQTT 0(4), bWifi 1, secondsWithNoPing 2, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 73, idle 191868/s, free 73040, MQTT 0(4), bWifi 1, secondsWithNoPing 3, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 74, idle 190380/s, free 73040, MQTT 0(4), bWifi 1, secondsWithNoPing 4, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg ExtraDebug:HTTP:DRV_SSDP_Send_Notify: space: 298 msg:244 ExtraDebug:HTTP:DRV_SSDP_Send_Notify: NOTIFY * HTTP/1.1 SERVER: OpenBk HOST: 239.255.255.250:1900 CACHE-CONTROL: max-age=1800 LOCATION: http://192.168.28.156:80/ssdp.xml NTS: ssdp:alive NT: upnp:rootdevice USN: uuid:1372d116-4163-4e8d-b6d0-f84a3d1df830::upnp:rootdevice

ExtraDebug:HTTP:DRV_SSDP_Send_Notify: sent message 244 bytes Info:MAIN:Time 75, idle 190635/s, free 73040, MQTT 0(4), bWifi 1, secondsWithNoPing 5, socks 4/38 ExtraDebug:HTTP:Received 244 bytes from 192.168.28.156 ExtraDebug:HTTP:data: NOTIFY * HTTP/1.1 SERVER: OpenBk HOST: 239.255.255.250:1900 CACHE-CONTROL: max-age=1800 LOCATION: http://192.168.28.156:80/ssdp.xml NTS: ssdp:alive NT: upnp:rootdevice USN: uuid:1372d116-4163-4e8d-b6d0-f84a3d1df830::upnp:rootdevice

ExtraDebug:HTTP:NOTIFY from a peer device ExtraDebug:HTTP:SSDP obk device still present 0x9c1ca8c0 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 76, idle 176705/s, free 73040, MQTT 0(4), bWifi 1, secondsWithNoPing 6, socks 4/38 Info:MQTT:mqtt_host empty, not starting mqtt Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 77, idle 192633/s, free 73040, MQTT 0(5), bWifi 1, secondsWithNoPing 7, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 78, idle 188077/s, free 73040, MQTT 0(5), bWifi 1, secondsWithNoPing 8, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 79, idle 188897/s, free 73040, MQTT 0(5), bWifi 1, secondsWithNoPing 9, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 80, idle 193834/s, free 73040, MQTT 0(5), bWifi 1, secondsWithNoPing 10, socks 4/38 Info:GEN:dhcp=0 ip=192.168.28.156 gate=192.168.28.183 mask=255.255.255.0 mac=a8:80:55:a3:f8:84 Info:GEN:sta: 1, softap: 0, b/g/n Info:GEN:sta:rssi=-65,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 81, idle 185527/s, free 73040, MQTT 0(5), bWifi 1, secondsWithNoPing 11, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 82, idle 189875/s, free 73232, MQTT 0(5), bWifi 1, secondsWithNoPing 12, socks 3/38 Info:MAIN:Time 83, idle 191188/s, free 73216, MQTT 0(5), bWifi 1, secondsWithNoPing 13, socks 3/38 Info:MAIN:Time 84, idle 192780/s, free 73216, MQTT 0(5), bWifi 1, secondsWithNoPing 14, socks 3/38 Info:MAIN:Time 85, idle 204744/s, free 73216, MQTT 0(5), bWifi 1, secondsWithNoPing 15, socks 3/38 Info:MAIN:Time 86, idle 196912/s, free 73216, MQTT 0(5), bWifi 1, secondsWithNoPing 16, socks 3/38 Info:MAIN:Time 87, idle 190156/s, free 73216, MQTT 0(5), bWifi 1, secondsWithNoPing 17, socks 3/38 Info:MAIN:Time 88, idle 192122/s, free 73216, MQTT 0(5), bWifi 1, secondsWithNoPing 18, socks 3/38 Info:MAIN:Time 89, idle 191149/s, free 73216, MQTT 0(5), bWifi 1, secondsWithNoPing 19, socks 3/38 Info:MAIN:Time 90, idle 186915/s, free 73216, MQTT 0(5), bWifi 1, secondsWithNoPing 20, socks 3/38 Info:GEN:dhcp=0 ip=192.168.28.156 gate=192.168.28.183 mask=255.255.255.0 mac=a8:80:55:a3:f8:84 Info:GEN:sta: 1, softap: 0, b/g/n Info:GEN:sta:rssi=-67,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Info:MAIN:Time 91, idle 190271/s, free 73216, MQTT 0(5), bWifi 1, secondsWithNoPing 21, socks 3/38 Info:MAIN:Time 92, idle 189906/s, free 73216, MQTT 0(5), bWifi 1, secondsWithNoPing 22, socks 3/38 Info:MQTT:mqtt_host empty, not starting mqtt Info:MAIN:Time 93, idle 187194/s, free 73216, MQTT 0(6), bWifi 1, secondsWithNoPing 23, socks 3/38 Info:MAIN:Time 94, idle 193602/s, free 73216, MQTT 0(6), bWifi 1, secondsWithNoPing 24, socks 3/38 Info:MAIN:Time 95, idle 192619/s, free 73216, MQTT 0(6), bWifi 1, secondsWithNoPing 25, socks 3/38 Info:MAIN:Time 96, idle 193580/s, free 73216, MQTT 0(6), bWifi 1, secondsWithNoPing 26, socks 3/38 Info:MAIN:Time 97, idle 195185/s, free 64608, MQTT 0(6), bWifi 1, secondsWithNoPing 27, socks 4/38 Info:MAIN:Time 98, idle 194313/s, free 73216, MQTT 0(6), bWifi 1, secondsWithNoPing 28, socks 3/38 Info:MAIN:Time 99, idle 192015/s, free 63600, MQTT 0(6), bWifi 1, secondsWithNoPing 29, socks 4/38 Info:MAIN:Time 100, idle 192541/s, free 73216, MQTT 0(6), bWifi 1, secondsWithNoPing 30, socks 3/38 Info:GEN:dhcp=0 ip=192.168.28.156 gate=192.168.28.183 mask=255.255.255.0 mac=a8:80:55:a3:f8:84 Info:GEN:sta: 1, softap: 0, b/g/n Info:GEN:sta:rssi=-63,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Info:MAIN:Time 101, idle 185781/s, free 73216, MQTT 0(6), bWifi 1, secondsWithNoPing 31, socks 3/38 Info:MAIN:Time 102, idle 192390/s, free 73216, MQTT 0(6), bWifi 1, secondsWithNoPing 32, socks 3/38 Info:MAIN:Time 103, idle 189933/s, free 73216, MQTT 0(6), bWifi 1, secondsWithNoPing 33, socks 3/38 Info:MAIN:Time 104, idle 204039/s, free 73216, MQTT 0(6), bWifi 1, secondsWithNoPing 34, socks 3/38 ExtraDebug:HTTP:DRV_SSDP_Send_Notify: space: 298 msg:244 ExtraDebug:HTTP:DRV_SSDP_Send_Notify: NOTIFY * HTTP/1.1 SERVER: OpenBk HOST: 239.255.255.250:1900 CACHE-CONTROL: max-age=1800 LOCATION: http://192.168.28.156:80/ssdp.xml NTS: ssdp:alive NT: upnp:rootdevice USN: uuid:1372d116-4163-4e8d-b6d0-f84a3d1df830::upnp:rootdevice

ExtraDebug:HTTP:DRV_SSDP_Send_Notify: sent message 244 bytes Info:MAIN:Time 105, idle 199928/s, free 73216, MQTT 0(6), bWifi 1, secondsWithNoPing 35, socks 3/38 ExtraDebug:HTTP:Received 244 bytes from 192.168.28.156 ExtraDebug:HTTP:data: NOTIFY * HTTP/1.1 SERVER: OpenBk HOST: 239.255.255.250:1900 CACHE-CONTROL: max-age=1800 LOCATION: http://192.168.28.156:80/ssdp.xml NTS: ssdp:alive NT: upnp:rootdevice USN: uuid:1372d116-4163-4e8d-b6d0-f84a3d1df830::upnp:rootdevice

ExtraDebug:HTTP:NOTIFY from a peer device ExtraDebug:HTTP:SSDP obk device still present 0x9c1ca8c0 Info:MAIN:Time 106, idle 176154/s, free 73216, MQTT 0(6), bWifi 1, secondsWithNoPing 36, socks 3/38 Info:MAIN:Time 107, idle 192596/s, free 73216, MQTT 0(6), bWifi 1, secondsWithNoPing 37, socks 3/38 Info:MAIN:Time 108, idle 191968/s, free 73216, MQTT 0(6), bWifi 1, secondsWithNoPing 38, socks 3/38 Info:MQTT:mqtt_host empty, not starting mqtt Info:MAIN:Time 109, idle 195323/s, free 73216, MQTT 0(7), bWifi 1, secondsWithNoPing 39, socks 3/38 Info:MAIN:Time 110, idle 192710/s, free 73216, MQTT 0(7), bWifi 1, secondsWithNoPing 40, socks 3/38 Info:GEN:dhcp=0 ip=192.168.28.156 gate=192.168.28.183 mask=255.255.255.0 mac=a8:80:55:a3:f8:84 Info:GEN:sta: 1, softap: 0, b/g/n Info:GEN:sta:rssi=-63,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Info:MAIN:Time 111, idle 188456/s, free 73232, MQTT 0(7), bWifi 1, secondsWithNoPing 41, socks 3/38 Info:MAIN:Time 112, idle 190133/s, free 73232, MQTT 0(7), bWifi 1, secondsWithNoPing 42, socks 3/38 Info:MAIN:Time 113, idle 196892/s, free 73232, MQTT 0(7), bWifi 1, secondsWithNoPing 43, socks 3/38 Info:MAIN:Time 114, idle 193941/s, free 73232, MQTT 0(7), bWifi 1, secondsWithNoPing 44, socks 3/38 Info:MAIN:Time 115, idle 193304/s, free 73232, MQTT 0(7), bWifi 1, secondsWithNoPing 45, socks 3/38 Info:MAIN:Time 116, idle 196306/s, free 73232, MQTT 0(7), bWifi 1, secondsWithNoPing 46, socks 3/38 Info:MAIN:Time 117, idle 190693/s, free 64608, MQTT 0(7), bWifi 1, secondsWithNoPing 47, socks 4/38 Info:MAIN:Time 118, idle 193268/s, free 73232, MQTT 0(7), bWifi 1, secondsWithNoPing 48, socks 3/38 Info:MAIN:Time 119, idle 194445/s, free 73232, MQTT 0(7), bWifi 1, secondsWithNoPing 49, socks 3/38 Info:MAIN:Time 120, idle 191935/s, free 73232, MQTT 0(7), bWifi 1, secondsWithNoPing 50, socks 3/38 Info:GEN:dhcp=0 ip=192.168.28.156 gate=192.168.28.183 mask=255.255.255.0 mac=a8:80:55:a3:f8:84 Info:GEN:sta: 1, softap: 0, b/g/n Info:GEN:sta:rssi=-61,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Info:MAIN:Time 121, idle 186304/s, free 73016, MQTT 0(7), bWifi 1, secondsWithNoPing 51, socks 4/38 Info:MAIN:Time 122, idle 189525/s, free 73232, MQTT 0(7), bWifi 1, secondsWithNoPing 52, socks 3/38 Info:MAIN:Time 123, idle 186745/s, free 73232, MQTT 0(7), bWifi 1, secondsWithNoPing 53, socks 3/38 Info:MAIN:Time 124, idle 191261/s, free 73232, MQTT 0(7), bWifi 1, secondsWithNoPing 54, socks 3/38 Info:MQTT:mqtt_host empty, not starting mqtt Info:MAIN:Time 125, idle 188772/s, free 73232, MQTT 0(8), bWifi 1, secondsWithNoPing 55, socks 3/38 Info:MAIN:Time 126, idle 189666/s, free 73232, MQTT 0(8), bWifi 1, secondsWithNoPing 56, socks 3/38 Info:MAIN:Time 127, idle 191283/s, free 64608, MQTT 0(8), bWifi 1, secondsWithNoPing 57, socks 4/38 Info:MAIN:Time 128, idle 185722/s, free 73232, MQTT 0(8), bWifi 1, secondsWithNoPing 58, socks 3/38 Info:MAIN:Time 129, idle 191152/s, free 73232, MQTT 0(8), bWifi 1, secondsWithNoPing 59, socks 3/38 Info:MAIN:Time 130, idle 194382/s, free 64608, MQTT 0(8), bWifi 1, secondsWithNoPing 60, socks 4/38 Info:GEN:dhcp=0 ip=192.168.28.156 gate=192.168.28.183 mask=255.255.255.0 mac=a8:80:55:a3:f8:84 Info:GEN:sta: 1, softap: 0, b/g/n Info:GEN:sta:rssi=-72,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Debug:CMD:cmd [echo Sorry, it seems that ping target is not replying for over 60 seconds, will OFF switch!] Info:CMD:Sorry, it seems that ping target is not replying for over 60 seconds, will OFF switch! Debug:CMD:cmd [echo OFF NOW!] Info:CMD:OFF NOW! Debug:CMD:cmd [delay_s 1] ExtraDebug:CMD:CMD_Delay_s: thread will delay 1000 extra ms Info:MAIN:Time 131, idle 180181/s, free 73232, MQTT 0(8), bWifi 1, secondsWithNoPing 61, socks 3/38 Debug:CMD:cmd [SetChannel 1 0] Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)

Info:MQTT:Channel has changed! Publishing 0 to channel 1 Debug:CMD:cmd [delay_s 10] ExtraDebug:CMD:CMD_Delay_s: thread will delay 10000 extra ms Info:MAIN:Time 132, idle 191741/s, free 73232, MQTT 0(8), bWifi 1, secondsWithNoPing 62, socks 3/38 Info:MAIN:Time 133, idle 190328/s, free 73232, MQTT 0(8), bWifi 1, secondsWithNoPing 63, socks 3/38 Info:MAIN:Time 134, idle 195116/s, free 73232, MQTT 0(8), bWifi 1, secondsWithNoPing 64, socks 3/38 ExtraDebug:HTTP:DRV_SSDP_Send_Notify: space: 298 msg:244 ExtraDebug:HTTP:DRV_SSDP_Send_Notify: NOTIFY * HTTP/1.1 SERVER: OpenBk HOST: 239.255.255.250:1900 CACHE-CONTROL: max-age=1800 LOCATION: http://192.168.28.156:80/ssdp.xml NTS: ssdp:alive NT: upnp:rootdevice USN: uuid:1372d116-4163-4e8d-b6d0-f84a3d1df830::upnp:rootdevice

ExtraDebug:HTTP:DRV_SSDP_Send_Notify: sent message 244 bytes Info:MAIN:Time 135, idle 202381/s, free 73232, MQTT 0(8), bWifi 1, secondsWithNoPing 65, socks 3/38 ExtraDebug:HTTP:Received 244 bytes from 192.168.28.156 ExtraDebug:HTTP:data: NOTIFY * HTTP/1.1 SERVER: OpenBk HOST: 239.255.255.250:1900 CACHE-CONTROL: max-age=1800 LOCATION: http://192.168.28.156:80/ssdp.xml NTS: ssdp:alive NT: upnp:rootdevice USN: uuid:1372d116-4163-4e8d-b6d0-f84a3d1df830::upnp:rootdevice

ExtraDebug:HTTP:NOTIFY from a peer device ExtraDebug:HTTP:SSDP obk device still present 0x9c1ca8c0 Info:MAIN:Time 136, idle 175320/s, free 73232, MQTT 0(8), bWifi 1, secondsWithNoPing 66, socks 3/38 Info:MAIN:Time 137, idle 192254/s, free 64608, MQTT 0(8), bWifi 1, secondsWithNoPing 67, socks 4/38 Info:MAIN:Time 138, idle 190388/s, free 73232, MQTT 0(8), bWifi 1, secondsWithNoPing 68, socks 3/38 Info:MAIN:Time 139, idle 189969/s, free 73232, MQTT 0(8), bWifi 1, secondsWithNoPing 69, socks 3/38 Info:MAIN:Time 140, idle 193668/s, free 73232, MQTT 0(8), bWifi 1, secondsWithNoPing 70, socks 3/38 Info:GEN:dhcp=0 ip=192.168.28.156 gate=192.168.28.183 mask=255.255.255.0 mac=a8:80:55:a3:f8:84 Info:GEN:sta: 1, softap: 0, b/g/n Info:GEN:sta:rssi=-69,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Info:MQTT:mqtt_host empty, not starting mqtt Info:MAIN:Time 141, idle 185673/s, free 64608, MQTT 0(9), bWifi 1, secondsWithNoPing 71, socks 4/38 Debug:CMD:cmd [SetChannel 1 1] Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)

Info:MQTT:Channel has changed! Publishing 1 to channel 1 Info:MAIN:Time 142, idle 185563/s, free 73232, MQTT 0(9), bWifi 1, secondsWithNoPing 72, socks 3/38 Info:MAIN:Time 143, idle 191400/s, free 73024, MQTT 0(9), bWifi 1, secondsWithNoPing 73, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 144, idle 189950/s, free 73024, MQTT 0(9), bWifi 1, secondsWithNoPing 74, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 145, idle 190503/s, free 71816, MQTT 0(9), bWifi 1, secondsWithNoPing 75, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 146, idle 190455/s, free 73024, MQTT 0(9), bWifi 1, secondsWithNoPing 76, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 147, idle 187954/s, free 73024, MQTT 0(9), bWifi 1, secondsWithNoPing 77, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 148, idle 183553/s, free 73024, MQTT 0(9), bWifi 1, secondsWithNoPing 78, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 149, idle 190077/s, free 73024, MQTT 0(9), bWifi 1, secondsWithNoPing 79, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 150, idle 196501/s, free 73024, MQTT 0(9), bWifi 1, secondsWithNoPing 80, socks 4/38 Info:GEN:dhcp=0 ip=192.168.28.156 gate=192.168.28.183 mask=255.255.255.0 mac=a8:80:55:a3:f8:84 Info:GEN:sta: 1, softap: 0, b/g/n Info:GEN:sta:rssi=-83,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 151, idle 201272/s, free 73024, MQTT 0(9), bWifi 1, secondsWithNoPing 81, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 152, idle 188392/s, free 73024, MQTT 0(9), bWifi 1, secondsWithNoPing 82, socks 4/38 Info:NTP:NTP_CheckForReceive: Error while receiving server's msg Info:MAIN:Time 153, idle 190569/s, free 73232, MQTT 0(9), bWifi 1, secondsWithNoPing 83, socks 3/38 Info:MAIN:Time 154, idle 188333/s, free 73232, MQTT 0(9), bWifi 1, secondsWithNoPing 84, socks 3/38 Info:MAIN:Time 155, idle 190272/s, free 73232, MQTT 0(9), bWifi 1, secondsWithNoPing 85, socks 3/38 Info:MAIN:Time 156, idle 191014/s, free 73232, MQTT 0(9), bWifi 1, secondsWithNoPing 86, socks 3/38 Info:MQTT:mqtt_host empty, not starting mqtt Info:MAIN:Time 157, idle 188366/s, free 73232, MQTT 0(10), bWifi 1, secondsWithNoPing 87, socks 3/38 Info:MAIN:Time 158, idle 199877/s, free 73232, MQTT 0(10), bWifi 1, secondsWithNoPing 88, socks 3/38 ExtraDebug:HTTP:Received 137 bytes from 192.168.28.164 ExtraDebug:HTTP:data: M-SEARCH * HTTP/1.1 Host: 239.255.255.250:1900 ST: urn:schemas-upnp-org:device:InternetGatewayDevice:1 Man: "ssdp:discover" MX: 3

ExtraDebug:HTTP:Is MSEARCH - responding Debug:HTTP:DRV_SSDP_Send_Advert_To: sent message Info:MAIN:Time 159, idle 189175/s, free 72864, MQTT 0(10), bWifi 1, secondsWithNoPing 89, socks 3/38 Info:MAIN:Time 160, idle 197067/s, free 72864, MQTT 0(10), bWifi 1, secondsWithNoPing 90, socks 3/38 Info:GEN:dhcp=0 ip=192.168.28.156 gate=192.168.28.183 mask=255.255.255.0 mac=a8:80:55:a3:f8:84 Info:GEN:sta: 1, softap: 0, b/g/n Info:GEN:sta:rssi=-73,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Info:MAIN:Time 161, idle 185407/s, free 72864, MQTT 0(10), bWifi 1, secondsWithNoPing 91, socks 3/38 Info:MAIN:Time 162, idle 190585/s, free 72864, MQTT 0(10), bWifi 1, secondsWithNoPing 92, socks 3/38 Info:MAIN:Time 163, idle 193198/s, free 72648, MQTT 0(10), bWifi 1, secondsWithNoPing 93, socks 4/38 Info:MAIN:Time 164, idle 192293/s, free 72864, MQTT 0(10), bWifi 1, secondsWithNoPing 94, socks 3/38 ExtraDebug:HTTP:DRV_SSDP_Send_Notify: space: 298 msg:244 ExtraDebug:HTTP:DRV_SSDP_Send_Notify: NOTIFY * HTTP/1.1 SERVER: OpenBk HOST: 239.255.255.250:1900 CACHE-CONTROL: max-age=1800 LOCATION: http://192.168.28.156:80/ssdp.xml NTS: ssdp:alive NT: upnp:rootdevice USN: uuid:1372d116-4163-4e8d-b6d0-f84a3d1df830::upnp:rootdevice

ExtraDebug:HTTP:DRV_SSDP_Send_Notify: sent message 244 bytes Info:MAIN:Time 165, idle 190133/s, free 72424, MQTT 0(10), bWifi 1, secondsWithNoPing 95, socks 3/38 ExtraDebug:HTTP:Received 244 bytes from 192.168.28.156 ExtraDebug:HTTP:data: NOTIFY * HTTP/1.1 SERVER: OpenBk HOST: 239.255.255.250:1900 CACHE-CONTROL: max-age=1800 LOCATION: http://192.168.28.156:80/ssdp.xml NTS: ssdp:alive NT: upnp:rootdevice USN: uuid:1372d116-4163-4e8d-b6d0-f84a3d1df830::upnp:rootdevice

ExtraDebug:HTTP:NOTIFY from a peer device ExtraDebug:HTTP:SSDP obk device still present 0x9c1ca8c0 Info:MAIN:Time 166, idle 179847/s, free 71336, MQTT 0(10), bWifi 1, secondsWithNoPing 96, socks 3/38 Info:MAIN:Time 167, idle 190477/s, free 72864, MQTT 0(10), bWifi 1, secondsWithNoPing 97, socks 3/38 Info:MAIN:Time 168, idle 192694/s, free 72864, MQTT 0(10), bWifi 1, secondsWithNoPing 98, socks 3/38 Info:MAIN:Time 169, idle 193864/s, free 61152, MQTT 0(10), bWifi 1, secondsWithNoPing 99, socks 4/38 Info:MAIN:Time 170, idle 191334/s, free 71656, MQTT 0(10), bWifi 1, secondsWithNoPing 100, socks 3/38 Info:GEN:dhcp=0 ip=192.168.28.156 gate=192.168.28.183 mask=255.255.255.0 mac=a8:80:55:a3:f8:84 Info:GEN:sta: 1, softap: 0, b/g/n Info:GEN:sta:rssi=-72,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Info:MAIN:Time 171, idle 184284/s, free 72864, MQTT 0(10), bWifi 1, secondsWithNoPing 101, socks 3/38 Info:MAIN:Time 172, idle 192098/s, free 72864, MQTT 0(10), bWifi 1, secondsWithNoPing 102, socks 3/38 Info:MQTT:mqtt_host empty, not starting mqtt Info:MAIN:Time 173, idle 192297/s, free 72864, MQTT 0(11), bWifi 1, secondsWithNoPing 103, socks 3/38 Info:MAIN:Time 174, idle 188190/s, free 72864, MQTT 0(11), bWifi 1, secondsWithNoPing 104, socks 3/38 Info:MAIN:Time 175, idle 189483/s, free 72864, MQTT 0(11), bWifi 1, secondsWithNoPing 105, socks 3/38 Info:MAIN:Time 176, idle 199872/s, free 72864, MQTT 0(11), bWifi 1, secondsWithNoPing 106, socks 3/38 Info:MAIN:Time 177, idle 186848/s, free 72864, MQTT 0(11), bWifi 1, secondsWithNoPing 107, socks 3/38 Info:MAIN:Time 178, idle 190486/s, free 61152, MQTT 0(11), bWifi 1, secondsWithNoPing 108, socks 4/38 Info:MAIN:Time 179, idle 191872/s, free 72864, MQTT 0(11), bWifi 1, secondsWithNoPing 109, socks 3/38 Info:MAIN:Time 180, idle 196307/s, free 72864, MQTT 0(11), bWifi 1, secondsWithNoPing 110, socks 3/38 Info:GEN:dhcp=0 ip=192.168.28.156 gate=192.168.28.183 mask=255.255.255.0 mac=a8:80:55:a3:f8:84 Info:GEN:sta: 1, softap: 0, b/g/n Info:GEN:sta:rssi=-75,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Info:MAIN:Time 181, idle 185472/s, free 72864, MQTT 0(11), bWifi 1, secondsWithNoPing 111, socks 3/38 Info:MAIN:Time 182, idle 194017/s, free 72864, MQTT 0(11), bWifi 1, secondsWithNoPing 112, socks 3/38 Info:MAIN:Time 183, idle 191419/s, free 72864, MQTT 0(11), bWifi 1, secondsWithNoPing 113, socks 3/38 Info:MAIN:Time 184, idle 194948/s, free 72864, MQTT 0(11), bWifi 1, secondsWithNoPing 114, socks 3/38 Info:MAIN:Time 185, idle 192436/s, free 72864, MQTT 0(11), bWifi 1, secondsWithNoPing 115, socks 3/38 Info:MAIN:Time 186, idle 188446/s, free 72864, MQTT 0(11), bWifi 1, secondsWithNoPing 116, socks 3/38 Info:MAIN:Time 187, idle 193574/s, free 72864, MQTT 0(11), bWifi 1, secondsWithNoPing 117, socks 3/38 Info:MAIN:Time 188, idle 192118/s, free 64456, MQTT 0(11), bWifi 1, secondsWithNoPing 118, socks 4/38 Info:MQTT:mqtt_host empty, not starting mqtt Info:MAIN:Time 189, idle 187722/s, free 72864, MQTT 0(12), bWifi 1, secondsWithNoPing 119, socks 3/38 Info:MAIN:Time 190, idle 186794/s, free 72864, MQTT 0(12), bWifi 1, secondsWithNoPing 120, socks 3/38 Info:GEN:dhcp=0 ip=192.168.28.156 gate=192.168.28.183 mask=255.255.255.0 mac=a8:80:55:a3:f8:84 Info:GEN:sta: 1, softap: 0, b/g/n Info:GEN:sta:rssi=-71,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Info:MAIN:Time 191, idle 186953/s, free 72864, MQTT 0(12), bWifi 1, secondsWithNoPing 121, socks 3/38 Info:MAIN:Time 192, idle 190896/s, free 72864, MQTT 0(12), bWifi 1, secondsWithNoPing 122, socks 3/38 Info:MAIN:Time 193, idle 185169/s, free 72864, MQTT 0(12), bWifi 1, secondsWithNoPing 123, socks 3/38 Info:MAIN:Time 194, idle 192811/s, free 72864, MQTT 0(12), bWifi 1, secondsWithNoPing 124, socks 3/38 ExtraDebug:HTTP:DRV_SSDP_Send_Notify: space: 298 msg:244 ExtraDebug:HTTP:DRV_SSDP_Send_Notify: NOTIFY * HTTP/1.1 SERVER: OpenBk HOST: 239.255.255.250:1900 CACHE-CONTROL: max-age=1800 LOCATION: http://192.168.28.156:80/ssdp.xml NTS: ssdp:alive NT: upnp:rootdevice USN: uuid:1372d116-4163-4e8d-b6d0-f84a3d1df830::upnp:rootdevice

ExtraDebug:HTTP:DRV_SSDP_Send_Notify: sent message 244 bytes Info:MAIN:Time 195, idle 193026/s, free 72864, MQTT 0(12), bWifi 1, secondsWithNoPing 125, socks 3/38 ExtraDebug:HTTP:Received 244 bytes from 192.168.28.156 ExtraDebug:HTTP:data: NOTIFY * HTTP/1.1 SERVER: OpenBk HOST: 239.255.255.250:1900 CACHE-CONTROL: max-age=1800 LOCATION: http://192.168.28.156:80/ssdp.xml NTS: ssdp:alive NT: upnp:rootdevice USN: uuid:1372d116-4163-4e8d-b6d0-f84a3d1df830::upnp:rootdevice

ExtraDebug:HTTP:NOTIFY from a peer device ExtraDebug:HTTP:SSDP obk device still present 0x9c1ca8c0 Info:MAIN:Time 196, idle 200613/s, free 72864, MQTT 0(12), bWifi 1, secondsWithNoPing 126, socks 3/38 Info:MAIN:Time 197, idle 191388/s, free 72864, MQTT 0(12), bWifi 1, secondsWithNoPing 127, socks 3/38 Info:MAIN:Time 198, idle 195710/s, free 72864, MQTT 0(12), bWifi 1, secondsWithNoPing 128, socks 3/38 Info:MAIN:Time 199, idle 190869/s, free 72864, MQTT 0(12), bWifi 1, secondsWithNoPing 129, socks 3/38 Info:MAIN:Time 200, idle 188735/s, free 72648, MQTT 0(12), bWifi 1, secondsWithNoPing 130, socks 4/38 Info:GEN:dhcp=0 ip=192.168.28.156 gate=192.168.28.183 mask=255.255.255.0 mac=a8:80:55:a3:f8:84 Info:GEN:sta: 1, softap: 0, b/g/n Info:GEN:sta:rssi=-76,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Info:MAIN:Time 201, idle 184823/s, free 72864, MQTT 0(12), bWifi 1, secondsWithNoPing 131, socks 3/38 Info:MAIN:Time 202, idle 191394/s, free 72864, MQTT 0(12), bWifi 1, secondsWithNoPing 132, socks 3/38 Info:MAIN:Time 203, idle 190919/s, free 72864, MQTT 0(12), bWifi 1, secondsWithNoPing 133, socks 3/38 Info:MAIN:Time 204, idle 192107/s, free 72864, MQTT 0(12), bWifi 1, secondsWithNoPing 134, socks 3/38 Info:MQTT:mqtt_host empty, not starting mqtt Info:MAIN:Time 205, idle 189753/s, free 72560, MQTT 0(13), bWifi 1, secondsWithNoPing 135, socks 3/38 Info:MAIN:Time 206, idle 190459/s, free 72864, MQTT 0(13), bWifi 1, secondsWithNoPing 136, socks 3/38 Info:MAIN:Time 207, idle 192543/s, free 72864, MQTT 0(13), bWifi 1, secondsWithNoPing 137, socks 3/38 Info:MAIN:Time 208, idle 194475/s, free 72864, MQTT 0(13), bWifi 1, secondsWithNoPing 138, socks 3/38 Info:MAIN:Time 209, idle 190921/s, free 60160, MQTT 0(13), bWifi 1, secondsWithNoPing 139, socks 4/38 Info:MAIN:Time 210, idle 189115/s, free 72864, MQTT 0(13), bWifi 1, secondsWithNoPing 140, socks 3/38 Info:GEN:dhcp=0 ip=192.168.28.156 gate=192.168.28.183 mask=255.255.255.0 mac=a8:80:55:a3:f8:84 Info:GEN:sta: 1, softap: 0, b/g/n Info:GEN:sta:rssi=-80,ssid=Data wifi,bssid=3e:f7:4e:b4:7b:e3,channel=6,cipher_type:CCMP Info:MAIN:Time 211, idle 190424/s, free 64240, MQTT 0(13), bWifi 1, secondsWithNoPing 141, socks 4/38 Info:MAIN:Time 212, idle 201256/s, free 72864, MQTT 0(13), bWifi 1, secondsWithNoPing 142, socks 3/38 Info:MAIN:Time 213, idle 188580/s, free 72648, MQTT 0(13), bWifi 1, secondsWithNoPing 143, socks 4/38 Info:MAIN:Time 214, idle 192730/s, free 72416, MQTT 0(13), bWifi 1, secondsWithNoPing 144, socks 4/38 Info:NTP:Seconds since Jan 1 1900 = 3945783003 Info:NTP:Unix time : 1736794203 Info:NTP:Local Time: 2025-01-13 18:50:03 Info:MAIN:Time 215, idle 190254/s, free 72864, MQTT 0(13), bWifi 1, secondsWithNoPing 145, socks 3/38

wchpikus avatar Jan 13 '25 18:01 wchpikus

well script does what it is instructed to, isn't it? If you want to reset and retry, try something like this, maybe:

startDriver NTP startDriver SSDP

// setup ping watchdog PingHost 8.8.8.8 PingInterval 10

again:

// wait for NoPingTime reaching 60 seconds waitFor NoPingTime 60 echo Sorry, it seems that ping target is not replying for over 60 seconds, will OFF switch! // delay just to get log out echo OFF NOW! delay_s 1 SetChannel 1 0 delay_s 10 SetChannel 1 1

ClearNoPingTime

delay_s 1

goto again

openshwprojects avatar Jan 13 '25 20:01 openshwprojects

Ok,i will try.. I was looking for goto again and clear no ping.. is is possible to clear coutdown, when ping are success when timer start ? now when timer start and ping are ok, toggle relay always will be done, something like this? startDriver NTP startDriver SSDP

// setup ping watchdog PingHost 192.168.5.225 PingInterval 10

again:

// wait for NoPingTime reaching 60 seconds waitFor NoPingTime 60 echo Sorry, it seems that ping target is not replying for over 60 seconds, will OFF switch! If [PingHost#Success]=1 BREAK goto again EndIf

echo OFF NOW! delay_s 1 SetChannel 1 0 delay_s 10 SetChannel 1 1

ClearNoPingTime

delay_s 1

goto again

tnx

wchpikus avatar Jan 14 '25 21:01 wchpikus

@wchpikus give this release a go https://github.com/divadiow/OpenBK7231T_App/actions/runs/17512141840

divadiow avatar Sep 06 '25 09:09 divadiow

if your chip is BK7231N.

divadiow avatar Sep 06 '25 10:09 divadiow