git clone git@github.com:Lotterleben/RIOT-AODVv2.git aodvv2
mkdir riot
cd riot
git clone git@github.com:Lotterleben/RIOT.git RIOT
cd RIOT
git checkout aodv_less_broken
cd ../../aodvv2/aodvv2_demo
make
cd ../../riot
git clone git@github.com:mehlis/desvirt.git
cd desvirt
git checkout ports
./topology_creator --node-type riot_native --binary-file ../../aodvv2/aodvv2_demo/bin/native/aodvv2_demo.elf --size 9
./vnet -n grid3x3 -d
Start a virtual grid of RIOTs in the desvirt
directory:
./vnet -n grid3x3 -s
List coordinates in the grid and ports over which the RIOT at x,y can be reached:
cat ports.list
Choose ports of nodes 1,1, and 3,3. Now, in 2 separate terminal windows connect to them:
window 1:
nc localhost <port number of 1,1>
window 2:
nc localhost <port number of 3,3>
ifconfig
Choose IP that looks like this: inet6 addr: fe80::ff:fe00:1/128 scope: local
.
Now, send data from 1,1 to 3,3:
window 1:
send <ip from window 2> asdfghjkl
window 2: Problematic output should look something like this:
*snip*
[aodvv2] TargNode is in client list, sending RREP
[aodvv2] aodv_send_rrep()
[aodvv2] writer_send_rrep()
[aodvv2] _cb_addMessageHeader()
[aodvv2] _cb_rrep_addAddresses()
[aodvv2] _write_packet()
,------------------
| PACKET
|------------------
| * Packet version: 0
| * Packet flags: 0x0
| ,-------------------
| | MESSAGE
| |-------------------
| | * Message type: 11
| | * Message flags: 0x40
| | * Address length: 16
| | * Hop limit: 20
| | ,-------------------
| | | Address: fe80::ff:fe00:a51
| | | | - TLV
| | | | Flags = 0x50
| | | | Type = 0
| | | | Value length: 2
| | | | 0000: 0100
| | `-------------------
| | ,-------------------
| | | Address: fe80::ff:fe00:a63
| | | | - TLV
| | | | Flags = 0x50
| | | | Type = 1
| | | | Value length: 2
| | | | 0000: 0400
| | | | - TLV
| | | | Flags = 0x50
| | | | Type = 3
| | | | Value length: 1
| | | | 0000: 00
| | `-------------------
| `-------------------
`------------------
[aodvv2] getting next hop for fe80::ff:fe00:a5d
[aodvv2] aodv_send_rreq()
[aodvv2] -1 bytes sent.
*snip*