Hi @RobLauer, thanks for looking at the code. I turned on Notecard debugging to capture the serial responses.
First, here is the log from a cold boot – when the host and the Notecard are both initially powered up from USB:
Sending hub.set request
[INFO] {“req”:”hub.set”,”product”:”com.markleavitt.mark:villagepal”,”mode”:”minimum”,”sn”:”wllo_pal_0001”,”body”:{“agent”:”note-arduino”,”compiler”:”gcc 8.4.0”,”req_interface”:”serial”,”cpu_name”:”esp32”},”crc”:”0001:956B70C5”}
[INFO] {}
Sending hub.sync
[INFO] {“req”:”hub.sync”,”crc”:”0002:10BAC79A”}
[INFO] {}
Checking hub status…[INFO] {“req”:”hub.status”,”crc”:”0003:5874FEF1”}
[INFO] {“status”:”4s starting communications {wait-module} {connecting}”}
.[INFO] {“req”:”hub.status”,”crc”:”0004:5874FEF1”}
[INFO] {“status”:”9s starting communications {wait-module} {connecting}”}
.[INFO] {“req”:”hub.status”,”crc”:”0005:5874FEF1”}
[INFO] {“status”:”1s starting communications {wait-module} {connecting}”}
.[INFO] {“req”:”hub.status”,”crc”:”0006:5874FEF1”}
[INFO] {“status”:”6s starting communications {wait-module} {connecting}”}
.[INFO] {“req”:”hub.status”,”crc”:”0007:5874FEF1”}
[INFO] {“status”:”11s starting communications {wait-module} {connecting}”}
.[INFO] {“req”:”hub.status”,”crc”:”0008:5874FEF1”}
[INFO] {“status”:”17s starting communications {wait-module} {connecting}”}
.[INFO] {“req”:”hub.status”,”crc”:”0009:5874FEF1”}
[INFO] {“status”:”22s waiting for data service {wait-data} {connecting}”}
.[INFO] {“req”:”hub.status”,”crc”:”000A:5874FEF1”}
[INFO] {“status”:”connected (session open) {connected}”}
.[INFO] {“req”:”hub.status”,”crc”:”000B:5874FEF1”}
[INFO] {“connected”:true,”status”:”connected (session open) {connected}”}
connected!
Getting time…[INFO] {“req”:”card.time”,”crc”:”000C:1110F247”}
[INFO] {“minutes”:-480,”lat”:45.457362499999993,”lon”:-122.558984375,”area”:”Happy Valley OR”,”country”:”US”,”zone”:”PST,America/Los_Angeles”,”time”:1704300288}
Wednesday, January 03 2024 08:44:48
[INFO] {“req”:”card.wireless”,”crc”:”000D:3CE09784”}
[INFO] {“status”:”{network-up}”,”mode”:”auto”,”count”:1,”net”:{“iccid”:”89011704278852086760”,”imsi”:”310170885208676”,”imei”:”868050045716657”,”modem”:”EG91NAXDGAR07A01M1G_20.004.20.004”,”band”:”LTE BAND 2”,”rat”:”lte”,”internal”:true,”rssir”:-83,”rssi”:-83,”rsrp”:-115,”sinr”:3,”rsrq”:-20,”bars”:1,”mcc”:310,”mnc”:410,”lac”:36876,”cid”:84664072}}
Wireless status:
-83.00
Initializing radar sensor
Radar sensor serial port initialized
Status buffer initialized
Next update: Wednesday, January 03 2024 09:00:00
Activity detected this cycle
Now, here is the log from a “warm boot”, meaning the ESP has been rebooted but the Notecard has stayed power up:
Sending hub.set request
[INFO] {“req”:”hub.set”,”product”:”com.markleavitt.mark:villagepal”,”mode”:”minimum”,”sn”:”wllo_pal_0001”,”body”:{“agent”:”note-arduino”,”compiler”:”gcc 8.4.0”,”req_interface”:”serial”,”cpu_name”:”esp32”},”crc”:”0001:956B70C5”}
[INFO] {}
Sending hub.sync
[INFO] {“req”:”hub.sync”,”crc”:”0002:10BAC79A”}
[INFO] {}
Checking hub status…[INFO] {“req”:”hub.status”,”crc”:”0003:5874FEF1”}
[INFO] {“status”:”idle (since 2024-01-03T16:44:48Z) {disconnected} {idle}”}
.[INFO] {“req”:”hub.status”,”crc”:”0004:5874FEF1”}
[INFO] {“status”:”5s starting communications {wait-module} {connecting}”}
.[INFO] {“req”:”hub.status”,”crc”:”0005:5874FEF1”}
[INFO] {“status”:”10s starting communications {wait-module} {connecting}”}
.[INFO] {“req”:”hub.status”,”crc”:”0006:5874FEF1”}
[INFO] {“status”:”3s starting communications {wait-module} {connecting}”}
.[INFO] {“req”:”hub.status”,”crc”:”0007:5874FEF1”}
[INFO] {“status”:”idle (since 2024-01-03T16:49:27Z) {disconnected} {idle}”}
.[INFO] {“req”:”hub.status”,”crc”:”0008:5874FEF1”}
[INFO] {“status”:”idle (since 2024-01-03T16:49:27Z) {disconnected} {idle}”}
.[INFO] {“req”:”hub.status”,”crc”:”0009:5874FEF1”}
[INFO] {“status”:”idle (since 2024-01-03T16:49:27Z) {disconnected} {idle}”}
.[INFO] {“req”:”hub.status”,”crc”:”000A:5874FEF1”}
[INFO] {“status”:”idle (since 2024-01-03T16:49:27Z) {disconnected} {idle}”}
.[INFO] {“req”:”hub.status”,”crc”:”000B:5874FEF1”}
[INFO] {“status”:”idle (since 2024-01-03T16:49:27Z) {disconnected} {idle}”}
.[INFO] {“req”:”hub.status”,”crc”:”000C:5874FEF1”}
[INFO] {“status”:”idle (since 2024-01-03T16:49:27Z) {disconnected} {idle}”}
.[INFO] {“req”:”hub.status”,”crc”:”000D:5874FEF1”}
[INFO] {“status”:”idle (since 2024-01-03T16:49:27Z) {disconnected} {idle}”}
So it looks like it starts connected, but then drops to a “disconnected idle” state. And then it loops there forever, until I pull the plug. Ideas?