User Tools

Site Tools


lab10

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lab10 [2016/01/12 14:20]
dan.tudose [Running]
lab10 [2018/01/25 19:03] (current)
narcisa_ana.vasile [Building]
Line 5: Line 5:
 SLIP is the "mostly obsolete" wikipedia:Serial Line Internet Protocol. "On personal computers, SLIP has been largely replaced by the Point-to-Point Protocol (PPP), which is better engineered, has more features and does not require its IP address configuration to be set before it is established. On microcontrollers, however, SLIP is still the preferred way of encapsulating IP packets due to its very small overhead." SLIP is the "mostly obsolete" wikipedia:Serial Line Internet Protocol. "On personal computers, SLIP has been largely replaced by the Point-to-Point Protocol (PPP), which is better engineered, has more features and does not require its IP address configuration to be set before it is established. On microcontrollers, however, SLIP is still the preferred way of encapsulating IP packets due to its very small overhead."
  
-Contiki uses SLIP to bridge the wireless IPv6 network onto a PC via a USB connection. So with your Zigduino plugged into your PC, and the right software running on each, traffic from the wireless IP network can reach your site-wide Ethernet network and potentially beyond.+Contiki uses SLIP to bridge the wireless IPv6 network onto a PC via a USB connection. So with your Sparrow plugged into your PC, and the right software running on each, traffic from the wireless IP network can reach your site-wide Ethernet network and potentially beyond.
  
-On Zigduino, there is only one UART exposed. This means we have to choose between reading debug messages and connecting to our PC via SLIP. This change is exposed by adding "WITH_SLIP=1" to the makefile or command line for any particular project. Projects made "WITH_SLIP" will expect to talk to a slip tunnel on the PC side.+On Sparrow, there is only one UART exposed. This means we have to choose between reading debug messages and connecting to our PC via SLIP. This change is exposed by adding "WITH_SLIP=1" to the makefile or command line for any particular project. Projects made "WITH_SLIP" will expect to talk to a slip tunnel on the PC side.
  
-Speaking of the PC side... In order for SLIP to work, something on the host PC has to be listening. Using Instant Contiki, the 'tunslip6' will do this. Running it in Linux creates a 'tun0' interface which gives the connected Zigduino an address of aaaa::1 on your local network.+Speaking of the PC side... In order for SLIP to work, something on the host PC has to be listening. Using Instant Contiki, the 'tunslip6' will do this. Running it in Linux creates a 'tun0' interface which gives the connected Sparrow an address of aaaa::1 on your local network.
  
 ===== Building ===== ===== Building =====
Line 22: Line 22:
 <code>  <code> 
 $ cd examples/ipv6/rpl-border-router  $ cd examples/ipv6/rpl-border-router 
-$ make TARGET=avr-zigduino savetarget +$ make TARGET=sparrow savetarget 
 $ make WITH_SLIP=1 WITH_WEBSERVER=0 -j10  $ make WITH_SLIP=1 WITH_WEBSERVER=0 -j10 
 $ make upload AVRDUDE_PORT=/dev/ttyUSB0 </code> $ make upload AVRDUDE_PORT=/dev/ttyUSB0 </code>
Line 55: Line 55:
 fdfd:: fe80::11:22ff:fe33:4403 </code> fdfd:: fe80::11:22ff:fe33:4403 </code>
  
-It's helpful that tunslip6 is putting through the debug messages from the Zigduino. So we can see the boot-up process complete successfully.+It's helpful that tunslip6 is putting through the debug messages from the Sparrow. So we can see the boot-up process complete successfully.
  
 ===== Ping ===== ===== Ping =====
Line 81: Line 81:
  
 <code>$ cd examples/ipv6/rpl-collect  <code>$ cd examples/ipv6/rpl-collect 
-$ make TARGET=avr-zigduino savetarget  +$ make TARGET=sparrow savetarget  
-$ make udp-sender.avr-zigduino.u AVRDUDE_PORT=/dev/ttyUSB1 -j10 </code>+$ make udp-sender.sparrow.u AVRDUDE_PORT=/dev/ttyUSB1 -j10 </code>
  
 Now see that we can ping it ok: Now see that we can ping it ok:
Line 99: Line 99:
  
 <code>$ cd examples/ipv6/rpl-border-router  <code>$ cd examples/ipv6/rpl-border-router 
-$ make TARGET=avr-zigduino savetarget +$ make TARGET=sparrow savetarget 
 $ make upload WITH_WEBSERVER=0 WITH_SLIP=1 AVRDUDE_PORT=/dev/ttyUSB0 -j10  $ make upload WITH_WEBSERVER=0 WITH_SLIP=1 AVRDUDE_PORT=/dev/ttyUSB0 -j10 
 $ cd examples/webserver-ipv6  $ cd examples/webserver-ipv6 
-$ make TARGET=avr-zigduino savetarget +$ make TARGET=sparrow savetarget 
 $ make WITH_WEBSERVER=webserver-nano -j10  $ make WITH_WEBSERVER=webserver-nano -j10 
 $ make upload login WITH_WEBSERVER=webserver-nano AVRDUDE_PORT=/dev/ttyUSB1 </code> $ make upload login WITH_WEBSERVER=webserver-nano AVRDUDE_PORT=/dev/ttyUSB1 </code>
lab10.1452601225.txt.gz · Last modified: 2016/01/12 14:20 by dan.tudose