Skip to content
Laurent Deru edited this page Aug 9, 2013 · 3 revisions

Introduction

The nvm_tool is a command line editor for the 6LBR configuration. It can be used to create or update a NVM configuration to be flashed on an Econotag based 6LBR or to update the configuration file of a Linux based 6LBR

Description

Usage: tools/nvm_tool COMMAND [OPTIONS]...  []

COMMANDS :
	--help				 This help
	--new [OPTIONS]... 	 Create a new NVM file
	--print 		 Dump the content of the given NVM file
	--update [OPTIONS]...  []
					 Update the given NVM file, the source file is reused if no destination file is given

OPTIONS :
	--channel <11..26>		 802.15.4 channel ID
	--wsn-prefix 	 IPv6 prefix to generate global adresses on the WSN network
	--wsn-prefix-len 	 Prefix length
	--wsn-ip 		 IPv6 global address of the WSN interface
	--wsn-accept-ra <0|1>		 Use RA to configure WSN network
	--wsn-ip-autoconf <0|1>		 Use EUI-64 address to create global address

	--eth-prefix 	 IPv6 prefix to generate global adress on the Eth interface
	--eth-prefix-len 	 IPv6 Prefix length
	--eth-ip 		 IPv6 global address of the Eth interface
	--dft-router 	 IPv6 address of the default router
	--eth-ra-daemon <0|1>		 Activate RA daemon (alias to --ra-daemon-en)
	--eth-ip-autoconf <0|1>		 Use EUI-48 address to create global address

	--addr-rewrite <0|1>		 Rewrite outgoing local addresses
	--smart-multi-br <0|1>		 Enable Smart Multi BR support

	--ra-daemon-en <0|1>		 Activate RA daemon
	--ra-router-lifetime  	 Advertised router lifetime in RA
	--ra-max-interval  	 Max interval between two unsolicited RA
	--ra-min-interval  	 Min interval between two unsolicited RA
	--ra-min-delay  	 Min interval between two RA
	--ra-pio-en <0|1> 		 Enable Prefix Information Option
	--ra-prefix-vtime  	 Advertised prefix valid lifetime
	--ra-prefix-ptime  	 Advertised prefix preferred lifetime
	--ra-rio-en <0|1> 		 Enable Route Information Option
	--ra-rio-lifetime 		 Advertised Route lifetime

	--rpl-instance-id  		 RPL instance ID to create
	--rpl-preference  		 RPL DAG preference level
	--rpl-version 		 Current RPL DODAG version ID
	--rpl-dio-int-doubling   RPL DIO interval doubling
	--rpl-dio-int-min 		 RPL DIO minimum interval between unsolicited DIO
	--rpl-dio-redundancy  	 RPL DIO redundancy number
	--rpl-default-lifetime   RPL route lifetime (in lifetime units)
	--rpl-min-rank-inc  	 RPL Minimun Rank increment
	--rpl-lifetime-unit  	 RPL lifetime unit

	--fit				 Size NVM output file to the actual size of the NVM data

Note that depending of the 6LBR mode used some parameters are not used

Example

Create a new configuration with the rf channel set to 24 and the RA emission disabled :

 nvm_tool --new --channel 24 --ra-daemon-en 0 nvm.dat 

Display the content of an existing NVM configuration :

nvm_tool --print nvm.dat
Channel : 26

WSN network prefix : aaaa::
WSN network prefix length : 64
WSN IP address : aaaa::100
WSN accept RA : True
WSN IP address autoconf : True

Eth network prefix : bbbb::
Eth network prefix length : 64
Eth IP address : bbbb::100
Eth default router : bbbb::1
Eth IP address autoconf : False

Local address rewrite : True
Smart Multi BR : False

RA daemon : True
RA router lifetime : 0
RA maximum interval : 600
RA minimum interval : 200
RA minimum delay : 3
RA PIO enabled : True
RA prefix valid lifetime : 86400
RA prefix preferred lifetime : 14400
RA RIO enabled : True
RA RIO lifetime : 1800

RPL instance ID : 30
RPL Preference : 0
RPL version ID :  : 14
RPL DIO interval doubling : 8
RPL DIO minimum interval : 12
RPL DIO redundancy : 10
RPL default lifetime : 30
RPL minimum rank increment : 256
RPL lifetime unit : 256
Clone this wiki locally