Informatic0re
11/06/2023, 11:21 AMwith_timeout
to open the connection or is there a different approach?Informatic0re
11/06/2023, 11:21 AMInformatic0re
11/06/2023, 11:27 AMwith_timeout
makes it worse. It somehow can not find the service
******************************************************************************
Decoding by `jag`, device has version <2.0.0-alpha.118>
******************************************************************************
EXCEPTION error.
Cannot find service
0: ServiceClient.open.<block> <sdk>\system\services.toit:167:49
1: ServiceClient.open <sdk>\system\services.toit:176:40
2: ServiceClient.open <sdk>\system\services.toit:167:12
3: main.<block> C:\Users\Mirko\AppData\Local\Temp\artemis-7ca7d9eb-1271-4aa9-a13a-d976cb1b8302\clone\src\services\mqtt\mqtt.toit:58:20
4: Task_.with-deadline_.<block> <sdk>\core\task.toit:203:16
5: Task_.with-deadline_ <sdk>\core\task.toit:197:3
6: with-timeout <sdk>\core\utils.toit:181:24
7: with-timeout <sdk>\core\utils.toit:173:10
8: main C:\Users\Mirko\AppData\Local\Temp\artemis-7ca7d9eb-1271-4aa9-a13a-d976cb1b8302\clone\src\services\mqtt\mqtt.toit:56:3
******************************************************************************
Informatic0re
11/06/2023, 11:28 AMmain:
(provider.WatchdogServiceProvider).install
logger.debug "Watchdog provider installed"
watchdogclient := WatchdogServiceClient
watchdogclient.open
dog := watchdogclient.create "mqtt-dog"
dog.start --s=60
logger.debug "Watchdog started"
dog.feed
dog.stop
dog.close
not sure if I need to call it once but 'I wanted to give it a tryfloitsch
11/06/2023, 12:40 PMfloitsch
11/06/2023, 12:40 PMInformatic0re
11/06/2023, 12:50 PMfloitsch
11/06/2023, 12:50 PMInformatic0re
11/06/2023, 12:51 PMwith-timeout --ms=2000:
watchdogclient := WatchdogServiceClient
watchdogclient.open
dog = watchdogclient.create "mqtt-dog"
dog.start --s=60
I am calling it like soInformatic0re
11/06/2023, 12:51 PMfloitsch
11/06/2023, 12:52 PMfloitsch
11/06/2023, 12:53 PMkasperl
11/06/2023, 12:54 PMwatchdogclient.open --timeout=(Duration --s=1)
. Not sure if that is necessary.floitsch
11/06/2023, 1:00 PMInformatic0re
11/06/2023, 1:04 PMInformatic0re
11/06/2023, 1:04 PM$ jag pkg install watchdog
Info: Package 'github.com/toitware/toit-watchdog@1.1.0' installed with name 'watchdog'
Informatic0re
11/06/2023, 1:04 PMkasperl
11/06/2023, 1:05 PMjag pkg update
?kasperl
11/06/2023, 1:06 PMInformatic0re
11/06/2023, 1:06 PMkasperl
11/06/2023, 1:06 PMInformatic0re
11/06/2023, 1:10 PMInformatic0re
11/06/2023, 1:10 PMInformatic0re
11/06/2023, 1:12 PM[eth] DEBUG: Watchdog provider installed
******************************************************************************
Decoding by `jag`, device has version <2.0.0-alpha.118>
******************************************************************************
EXCEPTION error.
Cannot find service
0: ServiceClient.open.<block> <sdk>\system\services.toit:167:49
1: ServiceClient.open <sdk>\system\services.toit:176:40
2: ServiceClient.open <sdk>\system\services.toit:167:12
3: main C:\Users\Mirko\AppData\Local\Temp\artemis-cdea2632-796b-42c6-8473-9813f0c442d2\clone\src\ble.toit:35:18
******************************************************************************
[eth] DEBUG: Watchdog started
not sure at which part exactly it is crashing but it might be the provider installfloitsch
11/06/2023, 1:14 PMfloitsch
11/06/2023, 1:14 PMimport watchdog
import watchdog.provider
main:
provider.main
print "installed"
client := watchdog.WatchdogServiceClient
client.open
dog := client.create "foo"
dog.start --s=60
print "started"
dog.feed
dog.stop
print "stopped"
dog.close
Informatic0re
11/06/2023, 1:15 PMfloitsch
11/06/2023, 1:15 PMfloitsch
11/06/2023, 1:15 PMprovider.main
does an install
)Informatic0re
11/06/2023, 1:16 PMInformatic0re
11/06/2023, 1:25 PMdogprovider.main
logger.debug "Watchdog provider installed"
watchdogclient := WatchdogServiceClient
watchdogclient.open
dog := watchdogclient.create "mqtt-dog"
dog.start --s=60
logger.debug "Watchdog started"
dog.feed
dog.stop
dog.close
Informatic0re
11/06/2023, 1:25 PMInformatic0re
11/06/2023, 1:26 PMfloitsch
11/06/2023, 1:30 PMfloitsch
11/06/2023, 1:45 PMfloitsch
11/06/2023, 1:45 PMkasperl
11/06/2023, 1:49 PMfloitsch
11/06/2023, 1:50 PMfloitsch
11/06/2023, 1:52 PMInformatic0re
11/06/2023, 2:05 PM******************************************************************************
Decoding by `jag`, device has version <2.0.0-alpha.118>
******************************************************************************
EXCEPTION error.
Cannot find service
0: ServiceClient.open.<block> <sdk>\system\services.toit:167:49
1: ServiceClient.open <sdk>\system\services.toit:176:40
2: ServiceClient.open <sdk>\system\services.toit:167:12
3: main C:\Users\Mirko\AppData\Local\Temp\artemis-616970cc-d0f6-46c7-88c7-f1db1182f3eb\clone\src\services\mqtt\mqtt.toit:57:18
******************************************************************************
Informatic0re
11/06/2023, 2:06 PMInformatic0re
11/06/2023, 2:11 PMInformatic0re
11/06/2023, 2:12 PMInformatic0re
11/06/2023, 2:12 PMInformatic0re
11/06/2023, 2:16 PMwatchdogclient := WatchdogServiceClient
watchdogclient.open --timeout=(Duration --s=2)
dog = watchdogclient.create "ble-dog"
dog.start --s=60
and then a bit later in my while loop:
while true:
dog.feed
sleep --ms=5000
that should actually not trigger the watchdogfloitsch
11/06/2023, 2:18 PMfloitsch
11/06/2023, 2:19 PMfloitsch
11/06/2023, 2:20 PMfloitsch
11/06/2023, 2:20 PMInformatic0re
11/06/2023, 2:23 PM[ble] DEBUG: Advertising: 2d66 with name sbceade1c9c
Informatic0re
11/06/2023, 2:23 PMfloitsch
11/06/2023, 2:25 PMimport log
import watchdog
import watchdog.provider
main:
provider := provider.WatchdogServiceProvider
--logger=((log.default.with-name "watchdog").with-level log.DEBUG-LEVEL)
provider.install
print "installed"
Informatic0re
11/06/2023, 2:25 PMInformatic0re
11/06/2023, 2:50 PMInformatic0re
11/06/2023, 2:56 PMfloitsch
11/06/2023, 2:58 PMfloitsch
11/06/2023, 2:59 PMINFO
) you would drop the feeding system watchdog
messages.floitsch
11/06/2023, 2:59 PMInformatic0re
11/06/2023, 3:04 PMInformatic0re
11/06/2023, 3:05 PMfloitsch
11/06/2023, 3:09 PMfloitsch
11/06/2023, 3:11 PMfloitsch
11/06/2023, 3:12 PMInformatic0re
11/06/2023, 3:12 PMfloitsch
11/06/2023, 3:12 PMInformatic0re
11/06/2023, 3:12 PMfloitsch
11/06/2023, 3:13 PMfloitsch
11/06/2023, 3:13 PMfloitsch
11/06/2023, 3:13 PMInformatic0re
11/06/2023, 3:14 PMfloitsch
11/06/2023, 3:14 PMfloitsch
11/06/2023, 3:14 PMInformatic0re
11/06/2023, 3:14 PMfloitsch
11/06/2023, 3:14 PMfloitsch
11/06/2023, 3:15 PMstart
you tell the watchdog the max interval between feedings.Informatic0re
11/06/2023, 3:15 PMInformatic0re
11/06/2023, 3:15 PMfloitsch
11/06/2023, 3:15 PMfloitsch
11/06/2023, 3:16 PMfloitsch
11/06/2023, 3:16 PMfloitsch
11/06/2023, 3:16 PMInformatic0re
11/06/2023, 3:16 PMfloitsch
11/06/2023, 3:16 PMfloitsch
11/06/2023, 3:17 PMdeep-sleep 0
with a watchdog running triggers a watchdog error.floitsch
11/06/2023, 3:17 PMfloitsch
11/06/2023, 3:17 PMInformatic0re
11/06/2023, 3:18 PMInformatic0re
11/06/2023, 3:26 PMInformatic0re
11/06/2023, 3:26 PMfloitsch
11/06/2023, 3:33 PMInformatic0re
11/06/2023, 7:25 PMInformatic0re
11/06/2023, 7:25 PMkasperl
11/06/2023, 7:27 PMInformatic0re
11/06/2023, 7:59 PMInformatic0re
11/06/2023, 7:59 PMfloitsch
11/06/2023, 8:37 PMfloitsch
11/06/2023, 8:38 PMkasperl
11/07/2023, 4:51 AMInformatic0re
11/07/2023, 7:56 AMkasperl
11/07/2023, 7:57 AMInformatic0re
11/07/2023, 7:57 AMkasperl
11/07/2023, 7:57 AMInformatic0re
11/07/2023, 7:57 AMInformatic0re
11/07/2023, 7:58 AMInformatic0re
11/07/2023, 7:58 AMInformatic0re
11/07/2023, 8:01 AMInformatic0re
11/07/2023, 8:02 AMkasperl
11/07/2023, 8:02 AMInformatic0re
11/07/2023, 8:03 AMInformatic0re
11/07/2023, 8:03 AMkasperl
11/07/2023, 8:04 AMkasperl
11/07/2023, 8:04 AMInformatic0re
11/07/2023, 8:05 AMInformatic0re
11/07/2023, 8:06 AMInformatic0re
11/07/2023, 8:07 AMkasperl
11/07/2023, 8:07 AMInformatic0re
11/07/2023, 8:07 AMInformatic0re
11/07/2023, 8:08 AMInformatic0re
11/07/2023, 8:08 AMkasperl
11/07/2023, 8:08 AMkasperl
11/07/2023, 8:09 AMfloitsch
11/07/2023, 8:10 AMInformatic0re
11/07/2023, 8:11 AMInformatic0re
11/07/2023, 8:11 AMInformatic0re
11/07/2023, 8:12 AMInformatic0re
11/07/2023, 8:12 AMfloitsch
11/07/2023, 8:12 AMInformatic0re
11/07/2023, 8:14 AMfloitsch
11/07/2023, 8:14 AMInformatic0re
11/07/2023, 8:15 AMkasperl
11/07/2023, 8:15 AMInformatic0re
11/07/2023, 8:15 AMkasperl
11/07/2023, 8:16 AMInformatic0re
11/07/2023, 8:17 AMInformatic0re
11/07/2023, 8:19 AMInformatic0re
11/07/2023, 8:20 AMkasperl
11/07/2023, 8:22 AMInformatic0re
11/07/2023, 8:23 AMkasperl
11/07/2023, 8:23 AMInformatic0re
11/07/2023, 8:23 AMInformatic0re
11/07/2023, 8:24 AMkasperl
11/07/2023, 8:24 AMInformatic0re
11/07/2023, 8:25 AMInformatic0re
11/07/2023, 8:25 AMkasperl
11/07/2023, 8:25 AMInformatic0re
11/07/2023, 8:25 AMInformatic0re
11/07/2023, 8:26 AMkasperl
11/07/2023, 8:26 AMInformatic0re
11/07/2023, 8:27 AMkasperl
11/07/2023, 8:27 AMInformatic0re
11/07/2023, 8:27 AMkasperl
11/07/2023, 8:27 AMInformatic0re
11/07/2023, 8:27 AMInformatic0re
11/07/2023, 8:28 AMInformatic0re
11/07/2023, 8:37 AMInformatic0re
11/07/2023, 8:38 AM[ble] DEBUG: Feed that dog.. omnomnomnom
kasperl
11/07/2023, 8:38 AMkasperl
11/07/2023, 8:40 AMInformatic0re
11/07/2023, 8:40 AMInformatic0re
11/07/2023, 8:41 AMInformatic0re
11/07/2023, 8:41 AMkasperl
11/07/2023, 8:43 AMkasperl
11/07/2023, 8:45 AMkasperl
11/07/2023, 8:49 AMCONFIG_FREERTOS_ISR_STACKSIZE=2096
. That's a weird number, but it probably not problematic. It looks like someone tried to change it from 4KB to 2KB, but got it wrong 😉kasperl
11/07/2023, 8:53 AMInformatic0re
11/07/2023, 8:54 AMSOC_HAL_STALL_OTHER_CORES()
. They also say, that the RTC is still able to reset the device, not sure if that helps in any way. Could the RTC reset the device in such moments if some watchdog is not triggered in time?kasperl
11/07/2023, 8:54 AMkasperl
11/07/2023, 8:55 AMInformatic0re
11/07/2023, 8:55 AMInformatic0re
11/07/2023, 8:55 AMkasperl
11/07/2023, 8:55 AMInformatic0re
11/07/2023, 8:55 AMInformatic0re
11/07/2023, 8:56 AMInformatic0re
11/07/2023, 8:57 AMkasperl
11/07/2023, 8:59 AMkasperl
11/07/2023, 9:00 AMkasperl
11/07/2023, 9:00 AMkasperl
11/07/2023, 9:02 AMInformatic0re
11/07/2023, 9:07 AMkasperl
11/07/2023, 9:07 AMkasperl
11/07/2023, 9:08 AMkasperl
11/07/2023, 9:32 AMfloitsch
11/07/2023, 9:57 AMkasperl
11/07/2023, 9:58 AMkasperl
11/07/2023, 9:59 AMTo answer your question, the WDT does not kick in ever, we have kept the esp32 ON in that state for more than 8 hours.
According to our observation the panic_handler function stop at line
SOC_HAL_STALL_OTHER_CORES();
floitsch
11/07/2023, 10:00 AMkasperl
11/07/2023, 10:01 AMfloitsch
11/07/2023, 10:19 AMkasperl
11/07/2023, 10:43 AMkasperl
11/07/2023, 10:44 AMkasperl
11/07/2023, 2:08 PMkasperl
11/07/2023, 2:09 PMInformatic0re
11/07/2023, 3:09 PMInformatic0re
11/07/2023, 3:13 PMkasperl
11/07/2023, 3:15 PMkasperl
11/07/2023, 3:15 PMInformatic0re
11/07/2023, 3:17 PMkasperl
11/07/2023, 3:20 PMkasperl
11/07/2023, 3:21 PMkasperl
11/07/2023, 3:22 PMInformatic0re
11/07/2023, 3:23 PMInformatic0re
11/07/2023, 3:23 PMInformatic0re
11/07/2023, 3:23 PMkasperl
11/07/2023, 3:25 PMInformatic0re
11/07/2023, 4:36 PMfloitsch
11/07/2023, 4:41 PMkasperl
11/07/2023, 5:31 PMkasperl
11/07/2023, 5:31 PMfloitsch
11/07/2023, 5:32 PMkasperl
11/08/2023, 5:18 AMInformatic0re
11/08/2023, 7:33 AMkasperl
11/08/2023, 8:01 AMInformatic0re
11/08/2023, 8:06 AMInformatic0re
11/08/2023, 8:07 AMfloitsch
11/08/2023, 9:42 AMkasperl
11/09/2023, 6:03 AMInformatic0re
11/09/2023, 7:21 AMkasperl
11/09/2023, 7:21 AMkasperl
11/09/2023, 7:22 AMmqtt@v2.5.0
.kasperl
11/09/2023, 7:24 AMInformatic0re
11/09/2023, 7:46 AMkasperl
11/09/2023, 7:49 AMkasperl
11/09/2023, 7:54 AMInformatic0re
11/09/2023, 9:49 AMInformatic0re
11/09/2023, 9:49 AMfloitsch
11/09/2023, 9:49 AMInformatic0re
11/09/2023, 9:50 AMfloitsch
11/09/2023, 9:50 AMInformatic0re
11/09/2023, 9:50 AMfloitsch
11/09/2023, 9:50 AMInformatic0re
11/09/2023, 9:50 AMInformatic0re
11/09/2023, 9:50 AMfloitsch
11/09/2023, 9:50 AMkasperl
11/09/2023, 11:58 AMfloitsch
11/09/2023, 12:31 PMkasperl
11/10/2023, 6:04 AMInformatic0re
11/10/2023, 6:39 AMkasperl
11/10/2023, 6:45 AMInformatic0re
11/10/2023, 7:17 AMInformatic0re
11/10/2023, 7:18 AMInformatic0re
11/10/2023, 7:19 AMkasperl
11/10/2023, 7:20 AMfloitsch
11/10/2023, 7:40 AMInformatic0re
11/10/2023, 10:14 AMfloitsch
11/10/2023, 10:23 AMInformatic0re
11/13/2023, 9:12 AMInformatic0re
11/13/2023, 9:12 AMInformatic0re
11/13/2023, 9:13 AMkasperl
11/13/2023, 9:28 AMInformatic0re
11/13/2023, 9:49 AMInformatic0re
11/13/2023, 4:01 PMInformatic0re
11/15/2023, 7:49 AMInformatic0re
11/15/2023, 7:49 AMfloitsch
11/15/2023, 7:59 AMkasperl
11/15/2023, 7:59 AMkasperl
11/15/2023, 8:00 AMfloitsch
11/16/2023, 6:19 PMInformatic0re
11/16/2023, 6:27 PMfloitsch
11/16/2023, 6:58 PM