Changes between Version 18 and Version 19 of node-contiki


Ignore:
Timestamp:
Sep 16, 2010, 1:32:38 PM (14 years ago)
Author:
ikram
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • node-contiki

    v18 v19  
    173173In this case, output should give sensei-oulu.broker.freenet6.net -address
    174174
    175 ***Note: The tun is the IPv6 interface with the global address, which provide IPv6 interface to access the external world: [2001:5c0:1400:b::6213]
     175**Note: The tun is the IPv6 interface with the global address, which provide IPv6 interface to access the external world: [2001:5c0:1400:b::6213]
    176176
    177177== Download the Code from SVN ==
    178 
    179 
    180 
    181 
    182 
    183 
    184 
    185 
    186 
     178{{{
     179$ svn --username [username]  co https://svn-batch.grid.pub.ro/svn/Sensei-WP5/
     180
     181[The above command if ask for some security certificate exchange; Accept it [yes]]
     182[otherwise it prompt for the password for svn access]
     183Enter your password.
     184}}}
     185If you have a working copy of Sensei-WP5/ already, you can just updated it:
     186* /Sensei-WP5$ svn up
     187
     188Copy the latest version of the gateway on your machine for experiment.
     189
     190* $ cp –r /Sensei-WP5/gateway/  ../
     191
     192
     193== Program TmoteSky node with contiki-2.4 and sensei components ==
     194
     1951. Download and install Contiki-2.4 as instructed in Section 3.1
     196
     1972. Copy binaryws/ and sensei/ folders from svn (node-contiki/apps/) to contiki-2.4/apps/
     198* /Sensei-WP5$ cp -r node-contiki/apps/sensei/ ../contiki2.4/apps/
     199* /Sensei-WP5$ cp -r node-contiki/apps/binaryws ../contiki2.4/apps/
     200
     2013. Copy cxmac files in order to enable nodes mobility
     202* /Sensei-WP5$ cp node-contiki/core/net/mac/cxmac.* ../contiki2.4/core/net/mac/
     203
     2044. Copy sensei-example/ folder from svn (node-contiki/examples/sensei-example) to
     205contiki-2.4/examples/
     206
     207* /Sensei-WP5$ cp -r node-contiki/examples/sensei-example ../contiki2.4/examples/
     208
     2095. Compile and program a node
     210* contiki-2.4/examples/sensei$ make sensei.upload
     211
     2126. In case you want to put debug prints into the code, you can see them in serial dump
     213* contiki-2.4/examples/sensei$ ../../tools/sky/serialdump-linux -b115200 /dev/ttyUSB0
     214
     215
     216=== Link files in Contiki using Makefiles ===
     217
     218This section describes the steps how to link multiple files in Contiki OS using Makefiles.
     219
     220==== contiki-2.4/examples/sensei-example/ ====
     221
     222There are at least two files in /examples/sensei-example/ : sensei.c and Makefile
     223
     224Makefile should include following lines:
     225{{{
     226all: sensei
     227APPS = binaryws sensei          #folders that you want to include from contiki-2.4/apps/
     228DEFAULT_TARGET=sky
     229CONTIKI = ../..
     230include $(CONTIKI)/Makefile.include
     231}}}
     232
     233==== /apps/binaryws ====
     234
     235If the binaryws folder already exists, you can skip the following steps:
     236
     2371. Create a directory in /apps/binaryws
     2382. The binaryws directory should contains libBWS.c and libBWS.h file.
     2393. If there is no Makefile.binaryws in the /binaryws folder, create a file “Makefile.binaryws” in the binaryws folder.
     2404. Then into /apps/binaryws/Makefile.binaryws file write your source file as follows:
     241
     242binaryws_src = libBWS.c
     243
     244**Note that libBWS.c should have a line: #include "libBWS.h"
     245
     246
     247
     248
     249
     250
     251