Closed MattCummings0517 closed 2 years ago
We should also add functionality that would check for the sdcard space available and stop the data capture service if there's no space left to write to.
Ideally at that point we should forcefully remount the system readonly to prevent potential data loss from accidental brown out.
I've been really busy lately with training and getting up to speed on my new position within Google, in combination with some issues of personal nature, but I can probably start looking at this next week. I'll sync up with PeterM early next week.
-PeterN
On Thu, Oct 13, 2022 at 4:47 AM Peter Malkin @.***> wrote:
We should also add functionality that would check for the sdcard space available and stop the data capture service if there's no space left to write to.
Ideally at that point we should forcefully remount the system readonly to prevent potential data loss from accidental brown out.
— Reply to this email directly, view it on GitHub https://github.com/Project-CETI/whale-tag-embedded/issues/26#issuecomment-1276956913, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7N7EKQJ6LELYLEHPTW67LWC5Z3PANCNFSM6AAAAAARBMMILY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I implemented the delay on start. And theoretically it should not change the way the service is respawned ir the app is crashes. https://github.com/Project-CETI/whale-tag-embedded/commit/b80d37ac7626a9386c70beaaf06fc13e5b23c3bd
But the rest of the logic here remains to be done
During the meeting we also discussed that the system fails to shutdown when the battery runs low. I switched to the systemd way of powering the system off. https://github.com/Project-CETI/whale-tag-embedded/commit/372e74f95ebf3607ab6984dd54788b726f643fcb
Thank you Peter. I will build and test over next few days. Matt C.
Sent from my iPhone
On Oct 13, 2022, at 9:44 AM, Peter Malkin @.***> wrote:
I implemented the delay on start. And theoretically it should not change the way the service is respawned ir the app is crashes. b80d37a
But the rest of the logic here remains to be done
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
Got it. Will include in my testing next week and report back
Sent from my iPhone
On Oct 13, 2022, at 3:48 PM, Peter Malkin @.***> wrote:
During the meeting we also discussed that the system fails to shutdown when the battery runs low. I switched to the systemd way of powering the system off. 372e74f
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
v2.1-4 Adds features to prevent the storage from reaching 100%. Audio recording is suspended when the uSD has less than 1 GB available.
An issue was discovered when V2.1 Tag no. 3 could not be accessed via SSH wireless or USB Ethernet at all. Based on the LEDs, the tag otherwise appeared to be working properly.
After leaving the tag running overnight, the main application was found to have stopped on its own for some reason...however, in this condition was able to connect and found the uSD card full (primarily audio data). This suggests two improvements to avoid lockouts like this:
1) During data acquisition, check disk space periodically and stop saving data before the disk is full (10% spare space?) 2) Provide a short time window after boot (1 min?) for an operator to login before the data-capture service starts. The capture service is very CPU intensive and bogs down SSH communications.