-
Notifications
You must be signed in to change notification settings - Fork 3
Node Configuration
INGA allows the user to configure some parameters stored in EEPROM by using Contiki's settings manager.
These are
- Node ID / Pan Addr
- Pan ID
- TX power
- channel
- EUI64 address
As only running code can modify the settings you need to upload a program containing the required setting routines. The INGA Settings App reduces the effort to a few modifications.
For changing configuration, the INGA platform provides the APP settings_set
.
To use it simply add this line to your projects Makefile:
APPS += settings_set
Then writing configurations to EEPROM can be done by using the corresponding makefile argument:
Note: It is advised to clean the project and rebuild after changing configuration parameter.
Example: To set a new node id compile with NODE_ID=<id>
where is either a decimal value (e.g. NODE_ID=1267
) or hexadecimal (e.g. NODE_ID=0x4711
).
make TARGET=inga NODE_ID=0x4242 inga_demo.upload
When the program starts it writes the new settings to the EEPROM. You can use the code to programm multiple motes with different parameters.
With number of bits in brackets:
-
NODE_ID=<id(16)>
sets the motes PAN address -
PAN_ID=<id(16)>
sets the motes PAN id -
RADIO_CHANNEL=<channel(8)>
sets the motes radio channel -
RADIO_TX_POWER=<power(8)>
sets the motes radio transmission power -
EUI64=<xx:xx:xx:xx:xx:xx:xx:xx(64)>
sets the motes EUI64 address, Example:EUI64=01:23:45:67:89:AB:cd:EF
To avoid writing the settings to the same mote at every restart you should clean you project, remove the settings APP from your Makefile and reprogram each mote.
Then your're done!
Activate the settings_delete app by adding this line to your projects Makefile:
APPS += settings_delete
By compiling your project with SETTINGS_DELETE=1
you can wipe all previously used settings to get a virgin EEPROM config section.
make TARGET=inga SETTINGS_DELETE=1 inga_demo.upload
Note: It is advised to clean the project and rebuild after changing configuration parameter.
Note: To not wipe data each time you restart the program remove the settings_delete APP from your Makefile and reprogram your mote.