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

Description

The NVM Proxy is a small modules allowing remote read from and write to the NVM using a trivial protocol based upon UDP. It is used in place of the webserver module on Redwire IO or other small platform in order to save code.

Note that if the user configuration flag is set to disabled, it is not possible to write to the NVM using this tool anymore.

Usage

The module is enabled by default on Redwire Econotag/IO, it can be enabled on other platform by setting WITH_NVM_PROXY=1 on the make command line.

Two scripts, based on netcat, are provided to read and write the whole NVM :

  examples/6lbr/tools/nvm-proxy/nvm-read.sh [--nvm <nvm-file>] [--ip <6lbr address>] [--port <nvm-proxy port>] [--nc <netcat tool>]
  examples/6lbr/tools/nvm-proxy/nvm-write.sh  [--nvm <nvm-file>] [--ip <6lbr address>] [--port <nvm-proxy port>] [--nc <netcat tool>]

Example

In this example we will change the channel used from 26 to 24 :

nvm-proxy/nvm-read.sh --nvm tmp.dat --ip bbbb::100
nvm-tool --update --channel 24 tmp.dat
nvm-proxy/nvm-write.sh --nvm tmp.dat --ip bbbb::100
Clone this wiki locally