Changes between Version 33 and Version 34 of node-contiki
- Timestamp:
- Oct 6, 2010, 7:54:47 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
node-contiki
v33 v34 9 9 This guide describes the steps how to program contiki-2.4 with sensei components to a node. 10 10 11 NOTE: The information related to the bridge and Contiki OS is taken from Contiki website 11 NOTE: The information related to the bridge and Contiki OS is taken from Contiki website (www.sics.se/contiki/) 12 12 and other Contiki related resources. 13 13 14 14 == Operating System (ubuntu) == 15 15 16 If you have fresh copy of Ubuntu operating system, to install msp430 tool chain perform the17 following steps. 18 19 $ gksudo gedit /etc/apt/sources.list--> remove all # before source lists16 If you have fresh copy of Ubuntu operating system, install the following packets. 17 18 $ gksudo gedit /etc/apt/sources.list 19 --> remove all # before source lists 20 20 21 21 $ sudo ldconfig … … 36 36 === Download Contiki-2.4 === 37 37 38 Download Contiki 38 Download Contiki-2.4 release source code (contiki-2.4.zip) from (http://www.sics.se/contiki/download.html) and extract it with a command: 39 39 40 40 $ unzip contiki-2.4.zip … … 47 47 ==== Initial Steps to setup the Bridge ==== 48 48 49 Open the terminal on Ubuntu. 50 51 IPv6 forwarding must be enabled before running the bridge sudo nano /etc/sysctl.conf 49 Open a terminal on Ubuntu. 50 51 IPv6 forwarding must be enabled before running the bridge. 52 $ sudo nano /etc/sysctl.conf 53 52 54 Uncomment the line which contains: 53 54 55 net.ipv6.conf.default.forwarding=1 55 56 56 Reboot/logout and login back on the system 57 Logout of the Ubuntu and log back in. 57 58 58 59 ==== Build a bridge ==== … … 65 66 * $ make uip6-bridge-tap.upload 66 67 67 3. Install radvd in your Ubuntu Linux 68 * $ sudo apt-get install radvd 69 70 4. Create a file /etc/radvd.conf and copy the following lines to that file 68 3. Create a file /etc/radvd.conf and copy the following lines to that file 71 69 72 70 {{{ … … 76 74 AdvCurHopLimit 128; 77 75 AdvReachableTime 360000; 78 MinRtrAdvInterval 10;79 MaxRtrAdvInterval 15;76 MinRtrAdvInterval 3; 77 MaxRtrAdvInterval 5; 80 78 AdvDefaultLifetime 45; 81 79 prefix aaaa::/64 82 80 { 83 81 AdvOnLink on; … … 89 87 }}} 90 88 91 5. Build a bridge89 4. Build a bridge 92 90 93 91 * $ cd contiki-2.4/tools/sky/uip-bridge … … 106 104 === Setting up the IPv6 GOGO6 Tunnel === 107 105 108 To setup the IPv6 tunnel, there are following steps needsto be performed:109 110 Create an account on the [http://gogonet.gogo6.com] to access the Greenet6 website. follow the link: [http://gogonet.gogo6.com/page/freenet6-tunnelbrokerdownloadthegogoCLIENT]106 To setup the IPv6 tunnel, following steps need to be performed: 107 108 Create an account on the [http://gogonet.gogo6.com] to access the Freenet6 website. Follow the link: [http://gogonet.gogo6.com/page/freenet6-tunnelbrokerdownloadthegogoCLIENT] 111 109 112 110 To get a static IPv6 address or get a /56 network you need to get an account on the Freenet6 server. Create your account at this page: 113 [http://gogonet.gogo6.com/page/freenet6-registration]. Remember that this username and password can be used in go6.conf file, when we setting the ipv6 tunnel.114 115 Download the gogoCLIENT for your System , In our case we have Ubuntu sodownload the Client 6.0 Source Code (Linux/Unix/MacOS/BSD). http://gogonet.gogo6.com/page/download-1116 117 Follow the HEX_DC_0005_Gateway6_Client_Guide (PDF) (page-61) contained in the gw6c package for the installation on your ubuntu machine. But for simplicity the steps are as follow.111 [http://gogonet.gogo6.com/page/freenet6-registration]. Remember that this username and password is used in go6.conf file, when configuring the IPv6 tunnel. 112 113 Download the gogoCLIENT for your System. This tutorial assumes Ubuntu is used, hence download the Client 6.0 Source Code (Linux/Unix/MacOS/BSD). http://gogonet.gogo6.com/page/download-1 114 115 Follow the HEX_DC_0005_Gateway6_Client_Guide.pdf (page-61) contained in the gw6c package for the installation on your Ubuntu machine. But for simplicity the steps are as follow. 118 116 119 117 Complete the following steps to install the gogoCLIENT from the source code: … … 160 158 6. Run the gw6c client 161 159 * /usr/local/gw6c/bin$ sudo ./gw6c 162 This command let the bridge run in the background process. You can opennew terminal to program the node with the sensei-application.160 Leave IPv6 tunnel running, and open a new terminal to program the node with the sensei-application. 163 161 164 162 7. To verify whether the gw6c created another interface with IPv6 address; use the command … … 203 201 204 202 2. Copy coap/ and sensei/ folders from svn (node-contiki/apps/) to contiki-2.4/apps/ 205 * /Sensei-WP5$ cp -r node-contiki /apps/sensei/ ../contiki2.4/apps/206 * /Sensei-WP5$ cp -r node-contiki /apps/coap ../contiki2.4/apps/203 * /Sensei-WP5$ cp -r node-contiki-coap/apps/sensei/ ../contiki-2.4/apps/ 204 * /Sensei-WP5$ cp -r node-contiki-coap/apps/coap ../contiki-2.4/apps/ 207 205 208 206 3. Copy sicslowmac files in order to enable nodes mobility … … 216 214 }}} 217 215 218 4. Copy sensei-example/ folder from svn (node-contiki/examples/sensei-example) to 216 4. Change MAC driver in Contiki 217 218 contiki-2.4$ gedit platform/sky/contiki-conf.h 219 220 Replace a line 221 #define MAC_CONF_DRIVER cxmac_driver 222 with 223 #define MAC_CONF_DRIVER sicslowmac_driver 224 225 5. Copy sensei-example/ folder from svn (node-contiki/examples/sensei-example) to 219 226 contiki-2.4/examples/ 220 227