Professional Documents
Culture Documents
TV OverView Contiki
TV OverView Contiki
I.
2.
II.
1.
Download........................................................................................................................................4
2.
Ci t:...........................................................................................................................................5
a.
Ci t VMWare:.........................................................................................................................5
b.
Ci t Contiki:............................................................................................................................7
c.
d.
e.
Ci t cooja..............................................................................................................................17
Platform:....................................................................................................................................19
b.
c.
Cc bc tin hnh:...................................................................................................................19
2.
b.
3.
Sentilla nodes:..............................................................................................................................22
a.
b.
I.
Gii thiu v contiki v Cooja:
1. Gii thiu h iu hnh Contiki:
H iu hnh contiki l h iu hnh m ngun m, c nghin cu, thit k v pht trin
bi mt nhm cc nh pht trin t vin khoa hc my tnh Thy in, ngi ng u l Adam
Dunkels. Nhm pht trin Contiki gm nhiu thnh vin n t SICS, CISCO, cng nhiu t
chc v cc trng i hc khc trn th gii.
H iu hnh Contiki c thit k cho cc vi iu khin c b nh nh, vi thng s 2KB
RAM v 40KB ROM. Nh , Contiki c s dng cho cc h thng nhng v cc ng dng
trong mng cm bin khng dy. Contiki bt u c nghin cu t nm 2001 v pht hnh
phin bn u tin Contiki 1.0 nm 2003. Hnh 3.1 cho thy lch s pht trin ca Contiki trong
nhng nm qua. Phin bn hin nay ca Contiki l 2.4, vi nhiu thay i, b sung v pht trin
vt bc. Trong thc t, Contiki c ng dng trong nhiu d n nh gim st ng hm
xe la, theo di nc trong bin Baltic,
Nhiu c ch, tng trong Contiki c ng dng rng ri trong cng nghip. in hnh
nh m hnh uIP c pht hnh nm 2001 c s dng trong h thng ng dng ca hng
trm cng ty trong cc lnh vc hng hi, thng tin v tinh, khai thc du m,; m hnh
Protothreads c cng b ln u tin nm 2005, n nay c s dng trong nhiu ng
dng nh b gii m k thut s v thit b cm bin rung khng dy.
H iu hnh Contiki c lp trnh bng ngn ng C, hot ng da trn c ch event driven v c nhng c im ph hp vi cc h thng nhng v mng cm bin khng dy:
C nhng modul cho php c lng v qun l nng lng mt cch hiu qu.
S dng RIME stack phc v cc giao thc dnh cho mng nng lng thp mt
cch hiu qu.
II.
Hng dn Download v Install
1. Download
- Vo link sau v download Contiki v VMWare.
http://www.sics.se/contiki/instant-contiki.html
Click Next
Click Next
Click Install
Click Finish
b. Ci t Contiki:
-
Click Cancel
Vo link
http://www.eclipse.org/downloads/download.php?
file=/eclipse/downloads/drops/R-3.6-201006080911/eclipse-SDK-3.6-win32.zip
Download bng Torrent hoc download trc tip
Giao din
Host :
: anonymous
Server
: pserver ,
Chn Use an existing module (this will alow you to browse the modules in the
repository)
Chn contiki-2.x
in password user
e. Ci t cooja
Bn s dng lnh cd [foder name] truy cp vo foder con ca foder bn ang . Khi vo c
ti foder cooja ri th chy lnh
Ant run
Tuy nhin sau khi m c chng trnh cooja, iu u tin nn lm l thit lp thng s cho
cooja bng cch m tab Settings:
+External Tools Path: y c th thit lp cc thng s v ng dn cho cooja, ng dn
cc file lin quan
+Manager Project Directories:
+Compiler Configuration Wizard
Hon tt qu trnh ci t Contiki v Cooja
Th mc:
o CVS
o Dev
File:
o Cfs-coffee-arch.h
o Clock.c
o Contiki-conf.h
o Contiki-main.c
o Makefile.native
c. Cc bc tin hnh:
-
Cc th vin:
-
blink.c :
sky-collect.c : Thu thp d liu ca sensor v gi tr thng tin nng lng Collects
sensor data and energy profile values to a sink. Press the "user" button on the Tmote Sky
that is connected to the PC to make the node a sink.
Hin nay Contiki h tr rt nhiu cho sky platform nhng cha kp update cho tt c cc
c tnh ca Sentilla node
Bc 1: Ci t msp430 compiler
Sentilla node ging nh sky node, cng c vi iu khin msp430 ca hng Texas
Instrument. chy chng trnh cho vi iu khin, chng ta cn c msp430-gcc.
Chng ta cn kim tra xem contiki ci t cc file cn thit ca msp430 cha. Cc file bao
gm:
binutils-msp430
gcc-msp430
msp430-libc
Bc 2: Install the Sentilla bootstrap loader and update the PATH variable
Ly file tmote-bsl t din n sentilla
-
a) contiki-2.x/tools/sky
-
$ cd contiki-2.x/tools/sky
$ mv msp430-bsl-linux msp430-bsl-linux-tmotesky
b) a file tmote-bsl vo folder contiki-2.x/tools/sky v t li tn l msp430-bsl-linux
c) Cui cng, add folder contiki-2.x/tools/sky vo mi trng thay i PATH. This is
necessary for finding the motelist-linux script which will be invoked when uploading to a
node:
Bng cch g dng lnh
$ export PATH=$PATH:~/Desktop/contiki-2.x/tools/sky
n y bn hon thnh vic tch hp platform Sentila vo h iu hnh Contiki. Bn c th
tip tc chy mt v d n gin trn Sentila node theo bc 3 v 4 trong hng dn ti a ch
sau:
http://www.sics.se/contiki/tutorials/tutorial-getting-started-with-sentilla-nodes-on-ubuntu8.10.html