Some of my sensors operate in the 915 MHz frequency band. According to the documentation, one needs to recompile the firmware with the environment variable BAND=915 to enable this frequency band. Although I know how to do that, having to recompile every firmware just to be able to use it in a different frequency band is a bit annoying.
Is there a better way to do this? If not, what do you think would be a good mechanism for such infrequently changed parameters?
From a quick glance at the SPIRIT1 source code, it seems this particular parameter does not need to be compile-time and could very well be configured via the EEPROM. We could define a small set of core module configuration parameters and manage those via the twr_config functions. To make it easy to change the parameters, we could extend “bcf eeprom” to allow something like:
bcf eeprom set BAND=915
Then maybe one could flash a prebuilt firmware onto the core module with “bcf flash” and set the correct RF band with “bcf eeprom”?