Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Compile firmware for A8 and Copy them to Home Directory 

Running following command in your command line.

Code Block
languagebash
$ scons board=iot-lab_A8-M3 toolchain=armgcc oos_openwsn
$ pscp 03oos_openwsn_prog* <login>@grenoble.iot-lab.info:A8/
Info
Thing in A8 Directory is mount and shared by all experiment A8 nodes

Clone the openwsn-sw repository to A8

Connect to the frontend SSH of grenoble site and install openwsn-sw in the directory A8 of your home directory

Code Block
languagebash
<your computer>:~$ ssh <login>@grenoble.iot-lab.info
<login>@grenoble:~$ mkdir A8/openwsn
<login>@grenoble:~$ cd A8/openwsn
<login>@grenoble:~/A8/openwsn$ git clone https://github.com/openwsn-berkeley/openwsn-sw.git

Patch moteProbe.py with right name for serial ports

Code Block
languagebash
<login>@grenoble:~/A8/openwsn$ vi openwsn-sw/software/openvisualizer/openvisualizer/moteProbe/moteProbe.py 
Code Block
languagepy
....
elif os.name=='posix':
    if platform.system() == 'Darwin':
        portMask = '/dev/tty.usbserial-*'
    else:
        portMask = '/dev/ttyUSB*'
    #serialports = [(s,BAUDRATE_GINA) for s in glob.glob(portMask)]
    serialports = [("/dev/ttyA8_M3", 500000)]
.... 
Note

This code will be merged into openwsn develop repository. Remove this steps after it's done.

Launch an experiment with two A8 nodes with a duration of one hour

add your credentials for REST API access (just the first time you use CLI tools)

Code Block
languagebash
<login>@grenoble:~$ auth-cli -u <login>

submit experiment

Code Block
languagebash
<login>@grenoble:~$ experiment-cli submit -d 60 -l 2,archi=a8:at86rf231+site=grenoble

Get the A8 experiment nodes id

Code Block
languagebash
<login>@grenoble:~$ experiment-cli get -p
{
    "deploymentresults": {
        "0": [
            "a8-8.grenoble.iot-lab.info", 
            "a8-9.grenoble.iot-lab.info"
        ]
    }, 
...

Wait A8 nodes boot and try ssh connexion. Choose a dag root node (in this example a8-8 node)

 
Code Block
languagebash
<login>@grenoble:~$ ssh root@node-a8-8

Flash firmware on the M3 nodes

Login A8–8 and A8-9 node and flash without dagroot firmware.

Code Block
languagebash
<login>@grenoble:~$ ssh root@node-a8-8
root@node-a8-8:~# flash_a8_m3 A8/03oos_openwsn_prog.exe
Code Block
languagebash
<login>@grenoble:~$ ssh root@node-a8-9
root@node-a8-9:~# flash_a8_m3 A8/03oos_openwsn_prog.exe

Launch openvisualizer on two A8 nodes

Code Block
languagebash
root@node-a8-8:~/A8/openwsn/openwsn-sw/software/openvisualizer# scons runclirunweb
root@node-a8-9:~/A8/openwsn/openwsn-sw/software/openvisualizer# scons runclirunweb

Set one node as dagroot 

In node-a8-8 node, set it as dagroot will following command in openvisualizer.

Code Block
languagebash
root /dev/ttyA8_M3

ping node-a8-9 from dagroot node

You can ping the node-a8-9 after you see the DAO information from it. Open another terminal to use the ping6 command.

Code Block
languagebash
<login>@grenoble:~$ ssh root@node-a8-8
root@node-a8-8:ping6 bbbb::(eui64_a8-9)