Skip to content

feat: Add multi-format SD card logging support #377

@tylerkron

Description

@tylerkron

Summary

Update the desktop application to support multiple SD card logging formats now that the device firmware supports Protobuf, JSON, and TestData formats.

Background

The device firmware supports multiple logging formats via SYSTem:STReam:FORmat:

  • 0 = Protobuf (binary, .bin) - current default
  • 1 = JSON (text, .json)
  • 2 = TestData (diagnostic)

daqifi-core is adding support for selecting the format (daqifi/daqifi-core#123).

Proposed Changes

UI Updates

  1. SD Logging Settings

    • Add format selection dropdown/radio buttons (Protobuf, JSON)
    • Default to Protobuf for backward compatibility
  2. SD Card File Browser

    • Display file format based on extension
    • Show appropriate icon or indicator for each format
  3. File Download/Parse

    • Auto-detect format based on file extension
    • Use appropriate parser (protobuf or JSON)

Code Changes

  • Update SD logging start to pass format parameter to Core
  • Update file parsing to handle multiple formats
  • Add format column to SD card file list view

Acceptance Criteria

  • Add format selection UI for SD logging
  • Update file browser to show format
  • Auto-detect and parse both protobuf and JSON files
  • Maintain backward compatibility (default to protobuf)
  • Update any user-facing documentation

Dependencies

Notes

TestData format (format 2) is primarily for firmware diagnostics and may not need UI support initially.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions