Open retiutut opened 4 years ago
Sure, here is the below logic which I have implemented for firmware change.
For 5 min, in firmware count of 11000 is mentioned, but currently this records for only 3 mins, so that means 3 mins represents 11000, so for 1 min it will be 11000/3, and for 5 min it will be (11000/3)*5 = 11000 *(5/3)
5 mins represents 3 mins ----> 11000 ----> then for 1 min ----> (11000/3) ----> for 5 mins ----> (11000/3)5 = (11000)(5/3)
15 mins represents 9 mins ----> 33000 ----> then for 1 min ----> (33000/9) ----> for 15 mins ----> (330000/9)15 = (33000)(5/3)
30 mins represents 18 mins ----> 66000 ----> then for 1 min ----> (66000/18)----> for 30 mins ----> (66000/18)30 = (66000)(5/3)
Same will continue for 15 mins, and other time intervals.
The above image contains the modified part, this is the only place where the firmware is modified, the commented part is the actual OpenBCI firmware, where as the top one without comments is modified by multiplying 5/3 to each time interval.
It looks like this fix will need to be resolved in the firmware. Keeping this thread active until it is resolved and a new firmware version is released. Removing the 5.1.0 tag for this issue.
This issue is under active development and investigation by OpenBCI team.
Even much of the current SD card doc text is not entirely correct. It looks like many of the files from the past don't have the correct footer.
We have realized that there is a line of GUI code that must be incorrect in DataSourceSDCard.pde where is assumes Cyton+Daisy SD card file sampling rate is 125Hz . Cyton+Daisy, while limited to streaming 125Hz, seems to be saving to SD card at 250hz. The Docs have been updated to say this, but it now requires a change in the GUI to correct this.
We have ongoing work to fix the Cyton SD card functionality at the Firmware level.
User requesting the "offline mode" for SD card. Example: start streaming data with the GUI and walk away from the computer. Entire recording should still be saved to SD card even though the GUI will throw popup saying no new data in X seconds.
We have realized that there is a line of GUI code that must be incorrect in DataSourceSDCard.pde where is assumes Cyton+Daisy SD card file sampling rate is 125Hz . Cyton+Daisy, while limited to streaming 125Hz, seems to be saving to SD card at 250hz. The Docs have been updated to say this, but it now requires a change in the GUI to correct this.
We have ongoing work to fix the Cyton SD card functionality at the Firmware level.
Deploying fix for this to development
branch now.
Problem
https://openbci.com/forum/index.php?p=/discussion/2552/recording-crashes-with-sd-card-and-other-issues#latest
This could be a firmware issue or maybe the wrong commands are sent to the board from the GUI. This is worth looking into to determine the root cause.
Expected
Record SD card files with maximum file size specified in Control Panel. Files should have no errors and playback fine in GUI v5.
Operating System and Version
All OS
GUI Version
GUI v5.0.0+
Running standalone app
Are you running the downloaded app or are you running from Processing or Visual Studio Code? Both
Type of OpenBCI Board
Cyton and Cyton+Daisy
Are you using a WiFi Shield?
No
Console Log
See Forum thread posted above for additional information.