-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On cold boot vbat filter too slow. #132
Comments
When a PUBLISH event happens its goes through |
at beginning do another read of Vbat and use that, so now looks like |
This worked on two systems to read a good Vbat about the threshold. The third system still read a low voltage, and three seconds later read a good voltage [2023-03-07 16:28:52] Vbat_low prev/new 3.229/4.003 [2023-03-07 16:29:04] Vbat_low prev/new 3.229/4.003 [2023-03-07 16:29:04] ---LB_PWR_USEABLE_REQ CANCELLED--Lbatt= 0 [2023-03-07 16:30:03] Vbat_low prev/new 4.003/4.003 |
for version 0.34.1-abc: on boot it checks for a slow rise time on Vbat, checks 5 times, waiting 200mS between each check, and adjusts accordingly, with an output that looks like this; |
On a cold boot, turning on the power switch, the vbat filter algorithm reports a low voltage, and the system takes some time to report a reasonably accurate Vbat
and doesn't do the initial time check on power up.
It does correct, a few pass after initialization and can be bypassed with a reset.
If there is a no clock set, RTC battery dead, it does record initial date values before it connects to NTP and updates time.
A sequence is here
[2023-03-07 12:31:23] Vbat_low prev/new 3.245/3.245
[2023-03-07 12:31:26] Vbat_low prev/new 3.245/3.957
[2023-03-07 12:32:04] Vbat_low prev/new 3.245/3.957
[2023-03-07 12:32:04] ---LB_PWR_MODEM_USE_REQ CANCELLED--Lbatt= 0
[2023-03-07 12:35:03] Vbat_low prev/new 3.957/3.957
[2023-03-07 12:35:03] ---logDataAndPubReliably (0x1)----
---Boot. Sw Build: src\tu_xx01.cpp Dec 27 2022 13:52:51 b'neilh20'
b'release1'
Sw Name: LT500/Modbus Digi WiFi S6/LTE XB3-C-A2 MMW
ModularSensors version 0.34.1-aba
The text was updated successfully, but these errors were encountered: