Skip to content

Modify raw file naming convention in firmware #110

Description

@brian-r-calder

For historical reasons, the filename used for the raw files on the logger firmware is wibl-raw.xxx where xxx is the file sequence number (000-999). Although it's unlikely that we'll run out of numbers under the default configuration (10MB/file x 1000 files ~ 9.8GB, which is bigger than the card we typically recommend, and the code automatically sorts out reusing the oldest numbers if necessary), it means that files that are transmitted either through auto-upload, or to a local system don't follow the generally-used convention that the file extension reflects the file type. We convert data file names on upload (making them a UUID.wibl), but if people are handling files by hand (ick!) then this can be a problem.

The code abstracts away the choice of filename using the MakeLogName() private method in the logger::Manager class, and therefore it should be possible to cleanly adapt this to a more nominal model, such as rawXXXXX.wbl and still stay within the FAT 8.3 convention for filenames.

Therefore:

  • Modify LogManager.cpp at logger::Manager::MakeLogName() to use the new model, and
  • Modify logger::Manager::ExtractLogNumber() to match.

Metadata

Metadata

Labels

enhancementNew feature or requestfirmwareDiscussions of topics that definitely do or may pertain to WIBL logger firmware.minorproposal

Fields

No fields configured for Feature.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions