makair-control-ui icon indicating copy to clipboard operation
makair-control-ui copied to clipboard

Store the locale code in firmware EEPROM instead

Open valeriansaliou opened this issue 4 years ago • 3 comments

The locale code should be stored in the firmware EEPROM itself, that way the Control UI can be ran on a read-only partition, which is much better in terms of durability.

A telemetry protocol update should be done for this to be possible.

valeriansaliou avatar Dec 31 '20 13:12 valeriansaliou

Depending on how we can manipulate the EEPROM, it may or may not be useful to:

  • use a versioned "schema" of the data we store
  • use a migration system for when we need to change the schema while keeping the data
  • decide what API we expose through the telemetry/control protocol
  • provide a way to do a hard reset of the EEPROM (via one of the maintenance buttons?)

dsferruzza avatar Jan 01 '21 11:01 dsferruzza

Right, those are all good ideas. All those would be abstracted from the UI by the firmware & telemetry protocol.

valeriansaliou avatar Jan 01 '21 11:01 valeriansaliou

Ref https://github.com/makers-for-life/makair-telemetry/commit/af57f23463d0b5385b89c0fe7152f420c1e3f599

valeriansaliou avatar Jan 25 '21 11:01 valeriansaliou