Skip to content
yschroeder edited this page Oct 21, 2014 · 8 revisions

INGA allows the user to configure some parameters stored in EEPROM by using Contiki's settings manager.

These are

  • EUI-64 address
  • Pan Addr
  • Pan ID
  • TX power
  • Channel

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.

Add and modify settings

Enable Settings app

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 parameters.

Write settings

Example: To set a new EUI-64 compile with EUI64=<eui64> where is a ':'-separated list of hex bytes (e.g. EUI64=01:23:45:67:89:AB:CD:EF).

make TARGET=inga EUI64=01:23:45:67:89:AB:CD:EF hello_world.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.

Available settings

With number of bits in brackets:

  • EUI64=<xx:xx:xx:xx:xx:xx:xx:xx(64)> sets the mote's EUI64 address, Example: EUI64=01:23:45:67:89:AB:cd:EF

  • PAN_ADDR=<id(16)> sets the mote's PAN address, Example: PAN_ADDR=0x4711

  • PAN_ID=<id(16)> sets the mote's PAN id

  • RADIO_CHANNEL=<channel(8)> sets the mote's radio channel

  • RADIO_TX_POWER=<power(8)> sets the mote's radio transmission power

Deactivate Settings app

IMPORTANT: To avoid writing the settings to the same mote at every restart and thereby wear out the EEPROM you should clean you project, remove the settings APP from your Makefile and reprogram each mote.

Then your're done!

Delete settings

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.