Skip to content
ejoerns edited this page Sep 11, 2013 · 8 revisions

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.

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

Write settings

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.

Available settings

  • NODE_ID=<id> sets the motes PAN address

  • PAN_ID=<id> sets the motes PAN id

  • RADIO_CHANNEL=<channel> sets the motes radio channel

  • RADIO_TX_POWER=<power> sets the motes radio transmission power

  • EUI64=<EUI64> sets the motes EUI64 address, Example: EUI64=0x0123456789ABCDEF

Deactivate Settings app

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!

Clone this wiki locally