Skip to content
laurentderu edited this page Sep 5, 2014 · 1 revision

Note: This tool is deprecated and replaced by nvm-proxy, it should not be used anymore.

Description

Due to the limited size of the M12 RAM, it is not possible to update configuration parameters of the 6LBR directly. In order to modify these configuration parameters, one has to create a NVM configuration file using NVM Tool(https://github.com/cetic/6lbr/wiki/Nvm-Tool) and flash the M12 NVM with it.

A flashing script is available to help flashing the configuration parameters into the NVM without erasing the whole NVM.

tools/econotag/flasher.sh --nvm <nvm conf file> --dev <device> --board m12 [<additional parameters>]

For example, il you want to use the channel 24, with “cccc::” as WSN prefix, you will do :

nvm_tool --new --channel 24 --wsn-net-prefix 'cccc::' nvm.dat
flasher.sh --nvm nvm.dat --dev /dev/ttyUSB1 --board m12

Your parameters should be now present in the NVM and will be used at 6LBR restart. This tool does not erase the whole NVM nor does it alter the boot flag, so you do not need to flash again the 6LBR binary.

Rebuild

The 6lbr_nvm_flasher binary can be rebuilt using the following command in 6lbr/tools/econotag :

make MC1322X=<path to your copy of libmc1322x> BOARD=m12
Clone this wiki locally