Skip to content

Add basic support for SigMF input #720

@kerel-fs

Description

@kerel-fs

IQ recordings can only be understood when having a minimum of metadata, namely the datatype of the stored samples and the sample rate. Currently this metadata can be passed to gr-satellites via CLI options (--rawfile or --rawint16, --iq and --samp_rate).

The SigMF specification describes how to store this metadata alongside a recording, enabling applications to understand compliant recordings without user-provided metadata.

💡 Proposed minimal solution

  • Add new option --sigmf_in SIGMF_IN (update 2025-02-27: parameter renamed to --sigmf) that can be used to read a SigMF recording. The file is interpreted to be the SigMF Metadata file. Read the datatype and sample rate from this metadata file and set the input source accordingly.

🚀 Possible future enhancements

  • SigMF Archives
    The latest SigMF specification describes SigMF Archive files, which are tar archives, that contain one or more SigMF Recording.

    An advantage of using a SigMF Archive file is the fact that it is a single file, whereas a SigMF recording always consist of at least two files: the SigMF Metadata file and the SigMF Dataset file.
    A current disadvantage of using a SigMG Archive file is the current lack of support by most tools.


Example usage:

gr_satellites "Reaktor Hello World" --sigmf /satnogs_data/rf/iq/pi9cam/iq_1452119.sigmf-meta

edit 2025-02-27: Updated example to match finalized syntax

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions