Changes between Version 33 and Version 34 of node-contiki


Ignore:
Timestamp:
Oct 6, 2010, 7:54:47 AM (14 years ago)
Author:
petsku
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • node-contiki

    v33 v34  
    99This guide describes the steps how to program contiki-2.4 with sensei components to a node.
    1010
    11 NOTE: The information related to the bridge and Contiki OS is taken from Contiki website
     11NOTE: The information related to the bridge and Contiki OS is taken from Contiki website (www.sics.se/contiki/)
    1212and other Contiki related resources.
    1313
    1414== Operating System (ubuntu) ==
    1515
    16 If you have fresh copy of Ubuntu operating system, to install msp430 tool chain perform the
    17 following steps.
    18 
    19 $ gksudo gedit /etc/apt/sources.list --> remove all # before source lists
     16If 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
    2020
    2121$ sudo ldconfig
     
    3636=== Download Contiki-2.4 ===
    3737
    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:
     38Download Contiki-2.4 release source code (contiki-2.4.zip) from (http://www.sics.se/contiki/download.html) and extract it with a command:
    3939
    4040$ unzip contiki-2.4.zip
     
    4747==== Initial Steps to setup the Bridge ====
    4848
    49 Open the terminal on Ubuntu.
    50 
    51 IPv6 forwarding must be enabled before running the bridge sudo nano /etc/sysctl.conf
     49Open a terminal on Ubuntu.
     50
     51IPv6 forwarding must be enabled before running the bridge.
     52$ sudo nano /etc/sysctl.conf
     53
    5254Uncomment the line which contains:
    53 
    5455net.ipv6.conf.default.forwarding=1
    5556
    56 Reboot/logout and login back on the system
     57Logout of the Ubuntu and log back in.
    5758
    5859==== Build a bridge ====
     
    6566* $ make uip6-bridge-tap.upload
    6667
    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
     683. Create a file /etc/radvd.conf and copy the following lines to that file
    7169
    7270{{{
     
    7674     AdvCurHopLimit 128;
    7775         AdvReachableTime 360000;
    78          MinRtrAdvInterval 10;
    79          MaxRtrAdvInterval 15;
     76         MinRtrAdvInterval 3;
     77         MaxRtrAdvInterval 5;
    8078         AdvDefaultLifetime 45;
    81                 prefix aaaa::/64
     79        prefix aaaa::/64
    8280     {
    8381         AdvOnLink on;
     
    8987}}}
    9088
    91 5. Build a bridge
     894. Build a bridge
    9290
    9391* $ cd contiki-2.4/tools/sky/uip-bridge
     
    106104=== Setting up the IPv6 GOGO6 Tunnel ===
    107105
    108 To setup the IPv6 tunnel, there are following steps needs to 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]
     106To setup the IPv6 tunnel, following steps need to be performed:
     107
     108Create an account on the [http://gogonet.gogo6.com] to access the Freenet6 website. Follow the link: [http://gogonet.gogo6.com/page/freenet6-tunnelbrokerdownloadthegogoCLIENT]
    111109
    112110To 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 so download the Client 6.0 Source Code (Linux/Unix/MacOS/BSD). http://gogonet.gogo6.com/page/download-1
    116 
    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
     113Download 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
     115Follow 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.
    118116
    119117Complete the following steps to install the gogoCLIENT from the source code:
     
    1601586. Run the gw6c client
    161159* /usr/local/gw6c/bin$ sudo ./gw6c
    162 This command let the bridge run in the background process. You can open new terminal to program the node with the sensei-application.
     160Leave IPv6 tunnel running, and open a new terminal to program the node with the sensei-application.
    163161
    1641627. To verify whether the gw6c created another interface with IPv6 address; use the command
     
    203201
    2042022. 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/
    207205
    2082063. Copy sicslowmac files in order to enable nodes mobility
     
    216214}}}
    217215
    218 4. Copy sensei-example/ folder from svn (node-contiki/examples/sensei-example) to
     2164. Change MAC driver in Contiki
     217
     218contiki-2.4$ gedit platform/sky/contiki-conf.h
     219
     220Replace a line
     221#define MAC_CONF_DRIVER cxmac_driver
     222with
     223#define MAC_CONF_DRIVER sicslowmac_driver
     224
     2255. Copy sensei-example/ folder from svn (node-contiki/examples/sensei-example) to
    219226contiki-2.4/examples/
    220227