neilh10 / ModularSensors

A forked ModularSensors for a rugged solar powered logger; Mayfly.
https://github.com/neilh10/ModularSensors/wiki
Other
1 stars 1 forks source link

Modem stays active when LB_PWR_MODEM_USE_REQ CANCELLED cancelled #115

Open neilh10 opened 2 years ago

neilh10 commented 2 years ago

On a running test_08 with WiFi, when the voltage got low, the WiFi modem as shown by the Blue network LED never turned off. [2022-05-26 17:39:45.856] ---Boot. Sw Build: src\tu_xx01.cpp May 20 2022 16:36:38 b'neilh20' [2022-05-26 17:39:45.856] b'release1' [2022-05-26 17:39:45.856] Sw Name: LT500/Modbus Digi WiFi S6/LTE XB3-C-A2 MMW [2022-05-26 17:39:45.856] ModularSensors version 0.33.1.aaa [2022-05-26 17:39:45.856] TinyGSM Library version 0.11.5 [2022-05-26 17:39:45.856] From eeprom boot Name[ mayfly ] rev[ 1.1X07 ] sn[ MAYFLY22150 ] [2022-05-26 17:39:47.530] Battery Type=2 [2022-05-26 17:39:47.530] Thresholds USEABLE=3.50V LOW=3.55V MEDIUM=3.60V GOOD=3.80V

< from tty220527-0737cont.txt [2022-05-27 07:38:59.507] ... zzzZZ Awake @ 2022-05-27T06:39:00-08:00 [2022-05-27 07:38:59.507] Vbat_low prev/new 3.487/3.502 [2022-05-27 07:38:59.507] ---LB_PWR_USEABLE_REQ CANCELLED--Lbatt= 0 [2022-05-27 07:38:59.507] Vbat_low prev/new 3.487/3.502 [2022-05-27 07:38:59.507] ---LB_PWR_SENSOR_USE_REQ CANCELLED--Lbatt= 0 [2022-05-27 07:38:59.507] logDataAndPubReliably - all cancelled [2022-05-27 07:38:59.507] Vbat_low prev/new 3.487/3.487 [2022-05-27 07:38:59.507] ---LB_PWR_MODEM_USE_REQ CANCELLED--Lbatt= 0 [2022-05-27 07:38:59.523] Going to sleep. Ram( 7525 / 181 ) ZZzzz... [2022-05-27 07:39:59.487] Watchdog Enabled, Interrupt will fire 52 times before the system resets. <--WatchDogAVR [2022-05-27 07:39:59.487] It is using a 2.2Ahr test battery. It could be that it reset, and then was never able to activate the modem. Seems solution on reset, make sure modem turned OFF.

neilh10 commented 2 years ago

Discharging the 2.2A with an R, eventually had a reboot, and duplicated condition of the Blue networking LED flash, and not turning off. Seems its the intial startup conditions that have the Xbee turned on, and then it doesn't got through the turnof. [2022-05-28 15:31:00.221] ... zzzZZ Awake @ 2022-05-28T14:31:00-08:00 [2022-05-28 15:31:00.221] Vbat_low prev/new 3.699/3.699 [2022-05-28 15:31:00.221] Vbat_low prev/new 3.699/3.699 [2022-05-28 15:31:00.221] Vbat_low prev/new 3.699/3.699 [2022-05-28 15:31:00.221] ---LB_PWR_MODEM_USE_REQ CANCELLED--Lbatt= 3 [2022-05-28 15:31:00.221] Going to sleep. Ram( 7474 / 187 ) ZZzzz... [2022-05-28 15:32:00.208] Watchdog Enabled, Interrupt will fire 52 times before the system resets. <--WatchDogAVR [2022-05-28 15:32:00.208] [2022-05-28 15:32:00.208] ... zzzZZ Awake @ 2022-05-28T14:32:00-08:00 [2022-05-28 15:32:00.208] Vbat_low prev/new 3.699/3.699 [2022-05-28 15:32:00.208] Vbat_low prev/new 3.699/3.699 [2022-05-28 15:32:00.208] Vbat_low prev/new 3.699/3.699 [2022-05-28 15:32:00.208] ---LB_PWR_MODEM_USE_REQ CANCELLED--Lbatt= 3 [2022-05-28 15:32:00.208] logDataAndPubReliably - tx cancelled [2022-05-28 15:32:00.224] ---logDataAndPubReliably (0x5)---- [2022-05-28 15:32:00.224] Read sensors... [2022-05-28 15:32:00.393] [2022-05-28 15:32:00.393] ---Boot. Sw Build: src\tu_xx01.cpp May 20 2022 16:36:38 b'neilh20' .... [2022-05-28 15:32:02.045] Vbat_low prev/new 3.578/3.578 [2022-05-28 15:32:02.045] ---LB_PWR_SENSOR_USE_REQ CANCELLED--Lbatt= 2 [2022-05-28 15:32:02.045] logDataAndPubReliably - all cancelled [2022-05-28 15:32:02.067] Vbat_low prev/new 3.578/3.578 [2022-05-28 15:32:02.067] ---LB_PWR_MODEM_USE_REQ CANCELLED--Lbatt= 2 [2022-05-28 15:32:02.067] 0]RTC Alarm set for every minute. Reg check was 0x1 ... [2022-05-28 19:32:00.117] Vbat_low prev/new 3.305/3.305 [2022-05-28 19:32:00.117] ---LB_PWR_MODEM_USE_REQ CANCELLED--Lbatt= 0

neilh10 commented 1 year ago

XBEE Left on with edge case of gets time, and then too little power to POST any results

[2022-12-28 17:14:43.469] ---Boot. Sw Build: src\tu_xx01.cpp Dec 27 2022 13:52:51 b'neilh20' [2022-12-28 17:14:43.469] b'release1' [2022-12-28 17:14:43.469] Sw Name: LT500/Modbus Digi WiFi S6/LTE XB3-C-A2 MMW

[2022-12-28 17:14:44.818] Battery Type=2 [2022-12-28 17:14:44.818] Thresholds USEABLE=3.50V LOW=3.55V MEDIUM=3.60V GOOD=3.80V [2022-12-28 17:14:44.818] Modem config set as WIFI_DIGI_S6 [2022-12-28 17:14:44.818] ---pwr Xbee OFF on pin 18

[2022-12-28 17:14:44.912] Vbat_low prev/new 3.805/3.805 [2022-12-28 17:14:44.912] Bat_V(low) 3.81 [2022-12-28 17:14:44.912] Attempting to connect to the internet and synchronize RTC with NIST [2022-12-28 17:14:44.912] This may take up to two minutes! [2022-12-28 17:14:44.990] [2022-12-28 17:14:44.990] Waiting up to 15000 ms for unspecified modem to respond to AT commands... [2022-12-28 17:14:51.897] XbeeWiFi internet comms with Digi XBee Wi-Fi Mac/Sn 409D8F65B4 HwVer 2730 FwVer 2026 [2022-12-28 17:14:52.211] Loop=Sec] rx db : Status #Polled Status every 1sec/30sec [2022-12-28 17:14:52.242] 0=8.76] 0:0x0 Cnt=0 [2022-12-28 17:14:53.246] 1=9.77] 0:0x0 Cnt=1 [2022-12-28 17:14:53.246] WATCHDOG ISR barksUntilReset 74 <--WatchDogAVR [2022-12-28 17:14:54.267] 2=10.78] 0:0x0 Cnt=2 [2022-12-28 17:14:55.271] 3=11.79] 0:0x0 Cnt=3 [2022-12-28 17:14:56.778] XbeeWiFi IP# [ 192.168.0.122 ] [2022-12-28 17:14:58.300] XbeeWifi init test PASSED [2022-12-28 17:14:58.316] ... Watchdog low barksUntilReset 74 expected 75 [2022-12-28 17:14:58.849] Connected to internet for RTC sync with NIST [2022-12-28 17:14:59.665] NIST lookup mdmIP[ 0 / 4 ] with 132.163.97.1 [2022-12-28 17:15:05.315] NIST lookup mdmIP[ 1 / 4 ] with 132.163.97.1 [2022-12-28 17:15:05.911] Internal Clock within 5 seconds of NIST. [2022-12-28 17:15:06.177] Sync= 1 with NIST over Digi XBee Wi-Fi [2022-12-28 17:15:06.193] Local Time 2022-12-28T17:15:07-08:00 [2022-12-28 17:15:06.193] Setting up sensors... [2022-12-28 17:15:06.193] batteryCheck req/wait/src 2 1 3 [2022-12-28 17:15:06.209] Vbat_low prev/new 3.790/3.790 [2022-12-28 17:15:06.209] Bat_V(low) 3.79 [2022-12-28 17:15:06.224] Setting up file on SD card [2022-12-28 17:15:06.271] Data will be saved as turc_test08_2022-12-28.csv [2022-12-28 17:15:06.318] batteryCheck req/wait/src 4 0 4 [2022-12-28 17:15:06.318] Vbat_low prev/new 3.775/3.775 [2022-12-28 17:15:06.318] Bat_V(low) 3.78 [2022-12-28 17:15:06.318] Vbat_low prev/new 3.775/3.790 [2022-12-28 17:15:06.318] Vbat_low prev/new 3.775/3.775 [2022-12-28 17:15:06.318] Vbat_low prev/new 3.775/3.775 [2022-12-28 17:15:06.318] ---LB_PWR_MODEM_USE_REQ CANCELLED--Lbatt= 3 [2022-12-28 17:15:06.318] 0]RTC Alarm set for every minute. Reg check was 0x1 [2022-12-28 17:15:06.318] Going to sleep. Ram( 7496 / 167 ) ZZzzz...

XBEE FLASHING Blue LED

[2022-12-28 17:25:57.069] Waiting up to 15000 ms for Digi XBee Wi-Fi to respond to AT commands... [2022-12-28 17:25:57.838] Connecting to the Internet with Digi XBee Wi-Fi [2022-12-28 17:25:58.372] Connected Internet [2022-12-28 17:25:58.419] [2022-12-28 17:25:58.419] pubDQTR Sending data to [ 0 ] monitormywatershed.org:80

[2022-12-28 17:26:07.083] -- Response Code -- 201 waited 362 mS Timeout 15000 [2022-12-28 17:26:08.119] Sent 3 readings in 9.65 sec. Queued readings= 0 [2022-12-28 17:26:08.150] SyncTimeCheck 0 modulo_sec 62700 Time 1672248300 [2022-12-28 17:26:11.541] ---logDataAndPubReliably Complete---------- [2022-12-28 17:26:11.556] Going to sleep. Ram( 7496 / 162 ) ZZzzz...

BLUE LED OFF