UBNanosatLab / lfr-firmware

Little Free Radio Firmware
https://lfradio.space
GNU General Public License v3.0
16 stars 1 forks source link

Nonvolatile configuration #4

Closed brianbezanson closed 5 years ago

brianbezanson commented 5 years ago

Allow configuration parameters to persist through resets and add a "factory reset" command to restore the configuration to a known state. I see a few options for behavior:

  1. Parameters are persistent by default.
  2. Parameters are volatile by default, with a "use current values as defaults" command that makes the current parameter set persistent.
  3. Parameters are volatile by default, with a per-parameter "set default value" command or command flag.

I think my favorite is 2.

brianbezanson commented 5 years ago

Configurable parameters:

brianbezanson commented 5 years ago

In the configuration update command, include a config struct version number that increments whenever the structure changes. Reject commands containing incompatible config structs.

iracigt commented 5 years ago

Complete on settings branch! I left the frequency setting as one setting for both RX and TX. Modulation flags doesn't allow switching the Gaussian filter off. That can be made a separate issue if needed.