Changes between Version 44 and Version 45 of node-contiki


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

--

Legend:

Unmodified
Added
Removed
Modified
  • node-contiki

    v44 v45  
    2929=== Download Contiki-2.4 ===
    3030
    31 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:
     31Download Contiki-2.4 release source code (contiki-2.4.zip) from (http://www.sics.se/contiki/download.html) and extract it.
    3232
    3333$ unzip contiki-2.4.zip
     
    5959* $ make uip6-bridge-tap.upload
    6060
    61 3. Create a file /etc/radvd.conf and copy the following lines to that file
     613. Create a file /etc/radvd.conf and copy the following lines to that file.
    6262
    6363{{{
     
    8080}}}
    8181
    82 4. Build a bridge
     824. Build a bridge.
    8383
    8484* $ cd contiki-2.4/tools/sky/uip-bridge
     
    9898Note: if you run "tcpdump -i tap0" you will see the IP addresses of your nodes when they ask for routers (Router Solicitation).
    9999
    100 5. Enable WLAN
     1005. Enable WLAN.
    101101
    102102=== Setting up the IPv6 GOGO6 Tunnel ===
     
    121121     /temp/gw6c-6_0_1$ make all
    122122
    123 3. To install the gogoCLIENT in the /usr/local/gw6c directory with the necessary files, run the following command:
     1233. Install the gogoCLIENT in the /usr/local/gw6c directory.
    124124     /gw6c-6_0_1$ make installdir=/usr/local/gw6c install
    125125
     
    1321325. In order to run the IPv6 tunnel as DNS, setup gw6c.conf file; the setting for the usr/local/gw6c/bin/gw6c.conf
    133133
    134 Suppose we create an account with username.
     134Suppose we create an account with username "sensei-oulu". Notice that this username is used as a part of URL address later, therefore choose username that describes your network.
    135135
    136136{{{ 
     
    150150}}}
    151151
    152 Other configurations: leave as default
     152Other configurations: leave as default.
    153153
    154154**Note: Whole gw6c.conf file is at the end of this document.**
    155155
    156 6. Run the gw6c client
     1566. Run the gw6c client.
    157157* /usr/local/gw6c/bin$ sudo ./gw6c
    158 Leave IPv6 tunnel running, and open a new terminal to program the node with the sensei-application.
    159 
    160 7. To verify whether the gw6c created another interface with IPv6 address; use the command
    161 * $ifconfig -> The output should be similar to this:
     158Leave IPv6 tunnel running, and open a new terminal to program the node with Sensei-application.
     159
     1607. Verify that the gw6c created another interface with IPv6 address.
     161* $ifconfig[[BR]]
     162The output should be similar to this:
    162163{{{
    163164tun     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
     
    170171}}}
    171172
    172 8. Verify that a domain name corresponds to IPv6 address
     1738. Verify that a domain name corresponds to IPv6 address.
    173174
    174175* $ nslookup 2001:5c0:1400:b::6213
    175176
    176 In this case, output should give sensei-oulu.broker.freenet6.net -address
     177In this case, output should give sensei-oulu.broker.freenet6.net -address.
    177178
    178179
     
    195196== Program Tmote Sky node with contiki-2.4 and Sensei components ==
    196197
    197 1. Download and install Contiki-2.4 as instructed in Section 3.1
     1981. Download and install Contiki-2.4 as instructed in Section 3.1.
    198199
    199200**Note: If you want to program a node with source code, please continue to step 2. If you don't need source code or you don't have access to the Sensei SVN, you can program a node with binary file with less steps. If you choose to program a node with binary file, please move to Section "Program Tmote Sky node with binary file".
    200201
    201 2. Copy coap/ and sensei/ folders from svn (node-contiki/apps/) to contiki-2.4/apps/
     2022. Copy coap/ and sensei/ folders from svn (node-contiki-coap/apps/) to contiki-2.4/apps/
    202203* /Sensei-WP5$ cp -r node-contiki-coap/apps/sensei/ ../contiki-2.4/apps/
    203204* /Sensei-WP5$ cp -r node-contiki-coap/apps/coap ../contiki-2.4/apps/
    204205
    205 3. Copy sicslowmac files in order to enable nodes mobility
     2063. Copy sicslowmac files in order to enable nodes mobility.
    206207
    207208{{{
     
    213214}}}
    214215
    215 4. Change MAC driver in Contiki 
     2164. Change MAC driver in Contiki.
    216217
    217218contiki-2.4$ gedit platform/sky/contiki-conf.h
     
    227228* /Sensei-WP5$ cp -r node-contiki/examples/sensei-example ../contiki2.4/examples/
    228229
    229 6. Compile and program a node
     2306. Compile and program a node.
    230231* contiki-2.4/examples/sensei$ make sensei.upload
    231232
     
    235236contiki-2.4/examples$ mkdir sensei
    236237
    237 3. Download binary file and Makefile from a website and put them to the sensei folder, which was created in the previous step
     2383. Download binary file and Makefile from a website and move them to the sensei folder, which was created in the previous step.
    238239* www.ee.oulu.fi/~ikram/sensei.sky
    239240* www.ee.oulu.fi/~ikram/Makefile
    240241
    241 4. Program a node
     2424. Program a node.
    242243* contiki-2.4/examples/sensei$ make sensei.upload
    243244[[BR]]
     
    246247* contiki-2.4/examples/sensei$ ../../tools/sky/serialdump-linux -b115200 /dev/ttyUSB0
    247248[[BR]]
    248 
    249 
    250 === Link files in Contiki using Makefiles ===
    251 If you download the code from SVN, then you do not need to follow this subsection. This section simply explain the steps how to link multiple files in Contiki OS using Makefiles.
    252 
    253 ==== contiki-2.4/examples/sensei-example/ ====
    254 
    255 There are at least two files in /examples/sensei-example/ : sensei.c and Makefile
    256 
    257 Makefile should include following lines:
    258 {{{
    259 all: sensei
    260 APPS = coap sensei              #folders that you want to include from contiki-2.4/apps/
    261 DEFAULT_TARGET=sky
    262 CONTIKI = ../..
    263 include $(CONTIKI)/Makefile.include
    264 }}}
    265 
    266 ==== /apps/coap ====
    267 
    268 If the coap folder already exists, you can skip the following steps:
    269 
    270 1. Create a directory in /apps/coap
    271 2. The coap directory should contains coap.c and coap.h file.
    272 3. If there is no Makefile.coap in the /coap folder, create a file “Makefile.coap” in the coap folder.
    273 4. Edit the /apps/coap/Makefile.coap file write your source file as follows:
    274 
    275 coap_src = coap.c
    276 
    277 **Note that coap.c should have a line: #include "coap.h"
    278 
    279 ==== /apps/sensei ====
    280 
    281 If the sensei folder already exists, you can skip the following steps:
    282 1. Create a directory in /apps/sensei
    283 The sensei directory should contain the following files.
    284 {{{
    285         Makefile.sensei
    286         actuator.c
    287         actuator.h
    288         parameter.c
    289         parameter.h
    290         rai.c
    291         rai.h
    292         rpi.c
    293         rpi.h
    294         sensor.c
    295         sensor.h
    296         subscription.c
    297         subscription.h
    298 }}}
    299 If there is no Makefile.sensei in the /sensei folder, create a file "Makefile.sensei" in the sensei folder.
    300 
    301 2. Then into /apps/sensei/Makefile.sensei file write your source file as follows:
    302 {{{
    303 sensei_src = rai.c rpi.c actuator.c sensor.c parameter.c subscription.c
    304 }}}
    305249
    306250