WPAN network of Nanonotes

Instructions on how to connect two nanonotes via ATBen can be found in the Qi-hardware website. One device will be the coordinator running spread and fakeshake, other devices will run TCR.

Connect the Nanonotes

Create radio interfaces, set hw addresses and bring up logical interfaces in each device. Run only one coordinator.
On the Coordinator:

iz add wpan-phy0
ip link set wpan0 address de:ad:be:af:ca:fe:ba:be
ifconfig wpan0 up
izcoordinator -d 1 -l lease -i wpan0 -p 0x777 -s 1 -c 11

On Ben1:

iz add wpan-phy0
ip link set wpan0 address b0:aa:bb:cc:dd:ee:ff:01
ifconfig wpan0 up
iz assoc wpan0 777 1 11 short

On Ben2:

iz add wpan-phy0
ip link set wpan0 address b0:aa:bb:cc:dd:ee:ff:02 
ifconfig wpan0 up
iz assoc wpan0 777 1 11 short

On Ben3:

iz add wpan-phy0
ip link set wpan0 address b0:aa:bb:cc:dd:ee:ff:03
ifconfig wpan0 up
iz assoc wpan0 777 1 11 short

Run Dirtpan

The coordinator will connect to each device while each device will connect only to the coordinator.
On the Coordinator:

dirtpan 777 1 8001 'ifconfig $ITF 10.0.0.10  dstaddr 10.0.0.1 up' &
dirtpan 777 1 8002 'ifconfig $ITF 10.0.0.10  dstaddr 10.0.0.2 up' &
dirtpan 777 1 8003 'ifconfig $ITF 10.0.0.10  dstaddr 10.0.0.3 up' &
spread &

On Ben1:

dirtpan 777 8001 1 'ifconfig $ITF 10.0.0.1 dstaddr 10.0.0.10 up' &
tcr -h 10.0.0.10

On Ben2:

dirtpan 777 8002 1 'ifconfig $ITF 10.0.0.2 dstaddr 10.0.0.10 up' &
tcr -h 10.0.0.10

On Ben3:

dirtpan 777 8003 1 'ifconfig $ITF 10.0.0.3 dstaddr 10.0.0.10 up' &
tcr -h 10.0.0.10