Beruflich Dokumente
Kultur Dokumente
(c) Browse and select the border-router.c file using the below path to
compile/simulate
Path: <path-to-contiki-folder> examples ipv6
rpl-border-router border-router.c
(d) Press on clean and then click Compile.
(e) After compilation, click on the Create button.
(f) A window asking for the number of new motes will appear. Enter the
number of border router required. In our case, it is 1. Click on the Add motes
button. You can see the mote in the Network window.
Repeat the above steps but choose udp-client.c, instead of udp-server.c file
8. To add bridge for the communication between UDP servers and border
router:
(a) Open another terminal
(b) Follow the command given below:
cd <path-to-contiki-folder>/examples/ipv6/rpl-border-router/
(a) Right click on the mote 1. Click on the Mote tools for sky 1. From the list,
click on Serial Socket (SERVER) (Sky 1).
(b) Start the Simulation now, by clicking the Start button in the Simulation
control window
(c) Open another terminal. Follow the command given below:
cd <path-to-contiki-folder>/examples/ipv6/rpl-border-router/
(d) Run the below command:
make connect-router-cooja
(e) You can see the simulation between the border router and the servers.
(f) You can check whether motes are reachable or not using ping6 command:
ping6 aaaa::212:7401:1:101
ping6 aaaa::212:7402:2:202
ping6 aaaa::212:7403:3:303
(g) You can also try with 'nc' command:
nc -6 -u -p 3001 aaaa::212:7402:2:202 3000