-
Notifications
You must be signed in to change notification settings - Fork 50
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
qt py loses secrets.json when battery goes down #621
Comments
@tyeth Do you have cycles available to look at this bug? |
what do you mean by cycles? battery cycles? |
@migs35323 Tyeth is an Adafruit engineer who works on WipperSnapper with me. To clarify - I'm using "cycles" instead of "time", so I'm asking him if he has time to look at this or if I should. |
👋 I've been running with shorter cycles myself this week, medical issue, so likely to have a look around the middle of next week (once BFF arrives). |
Hardware just arrived, will setup a test. |
I've run it yesterday and this morning to the point where the battery cuts
out (just below 2.9v), repeatedly, and not yet seen the secrets corruption.
I've got three I2C devices connected: an LPS22 temp+pressure, an sht3x
temp+humidity sensor, and a max17048 i2c lipo fuel gauge which the battery
is connected via. I'm using the usb isolator to get the 5v line
disconnected and avoid charging the battery unless desired. It's a 340maH
3.7v lithium polymer cell with protection.
…On Thu, 22 Aug 2024, 21:42 Brent Rubell, ***@***.***> wrote:
@migs35323 <https://github.com/migs35323> Tyeth is an Adafruit engineer
who works on WipperSnapper with me.
To clarify - I'm using "cycles" instead of "time", so I'm asking him if he
has time to look at this or if I should.
—
Reply to this email directly, view it on GitHub
<#621 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTBZ43ABV74QXGRNKEKIWDZSZEMVAVCNFSM6AAAAABM63PAIWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBVGU4TOMZVGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
it's a pimoroni galleon battery (really love that one, it has a plastic shell so it doesn't freak me that i might pierce it with a header pin by accident and burn my house down lol) I also have it connected usually to my raspberry pi 4 usb port as a power source, its a data cable but the rpi has no auto mount enabled (its acting as a server) i noticed that the file basiscally reverts to "insert credentials" |
So to keep you in the loop, this is being looked at, and I did manage to recreate the situation with enough cycles of the device. |
I opened a post in the forums for this same issue, not realizing this was already reported. My post with details is here https://forums.adafruit.com/viewtopic.php?p=1039724 but the short version is Qt Py S3, lipo charging BFF, a non-Adafruit 850mAh lipo, and a non-Adafruit AHT20 connected via the stemma connector, I2C, and taking reading every 15 minutes. I let it run all the way down and both times I lost the secrets file as well the first time all the previous CircuitPython stuff on the board before I switched over to Wippersnapper. I run a Mac when connecting to the board if that matters. |
@Timeline8 You may be able to test out the UF2 build for your board (QT PY ESP32-S3) from the most recent build of #656, which fixes the brownout issue you and Tyeth are having. We are likely not going to merge anything in and release until we are fully back, post-Holidays. |
@brentru, Thanks I will give it a try and report back. I did another test today with a different smaller battery and the same result. 3 for 3 losing the secrets file. So happy to try out the new build. Thanks again. |
Describe the bug
my qt-py s3 randomly loses the secrets.json credentials. when battery power goes out/down
i had noticed this issue in firmware beta .88 and right now i was testing with alpha .89 and same behavior
I usually power it through usb but i had been testing battery endurance, so i had been letting the battery go out on purpose.
as a side note, I once had the yellow light and boot out telling me the credentials where wrong, when i opened them in notepad/vscode, the file was correct. but i had to delete the file and recreate it to accept the credentials, however i can't seem to reproduce this again.
in this last behavior the only thing that comes to my mind, is there any sensitivity between LF and CRLF in the file? maybe i edited the file in windows and mixed it in ubuntu and WipperSnapper is not liking it...
Arduino board
qt-py s3 psram version aka qtpy-esp32s3-n4r2
To Reproduce
Steps to reproduce the behavior:
PS: this doesn't happen every time, but about 2 out of 3 times it's not 100% consistent
Expected behavior
secrets,json to not be erased,
or maybe turn it into a toggeable feature where we can choose the secrets to be erased as security feature lol
Which components are connected to your device
qt py s3 (psram version) with battery best friend attached + 2 adafruit temperature sensors connected with stemma qt,
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: