Professional Documents
Culture Documents
Mc lc....................................................................................................................... 1
Ci t:...................................................................................................................................................5
Ci t VMWare:.................................................................................................................................5
Ci t Contiki:....................................................................................................................................7
Download v ci t phn mm Elipse .............................................................................................11
Install the Sun Java SDK 1.6.............................................................................................................16
Ci t cooja......................................................................................................................................18
III. H iu hnh Contiki:..........................................................................................20
Tch hp mt platform mi vo h iu hnh contiki:........................................................................20
Platform:............................................................................................................................................20
Platform trong Contiki:......................................................................................................................20
Cc bc tin hnh:...........................................................................................................................20
Tmode Sky trong h iu hnh Contiki:..............................................................................................22
Gii thiu Tmode Sky:......................................................................................................................22
Khc bit gia Tmote Sky v native:.................................................................................................23
Sentilla nodes:......................................................................................................................................23
Gii thiu Sentila node:.....................................................................................................................23
Cc bc thit lp Sentilla node:.......................................................................................................23
I.
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.
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.
1. Download
-
http://www.sics.se/contiki/instant-contiki.html
Click Next
Click Next
Click Install
Click Finish
Ci t Contiki:
-
Chy VMWave
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
Gii nn
Ci t
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
Finish
in password user
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
Cc bc tin hnh:
-
Bc 2: Tm hiu cch thc ngt thi gian ca cc ng dng v thay i trong file
clock.c
Sensors:
o Khi sensors thay i, mt s kin c truyn n tt c cc quy trnh nh: nt
bm, PIR pht hin chuyn ng
o Code chun truyn s kin nm ti th mc core/lib/sensors.c
o Cc sensor tng lai s l cc sensor s thay th cho cc sensor tng t
o Bc 1: Chn cc code sensor trong th mc core/lib/sensors.c
o Bc 2: Thay i cho ph hp vi platform mi
contiki-conf.h:
o Nm trong th mc platform/(tn platform)
o
C types
o V d: CC2420, CC1000
o
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.
Th mc dev c thm cc file tch hp cho cc devices trong Tmote Sky. Ngoi ra
trong Sky cn c thm th mc apps cha cc file application c th ca platform
sky.
Sentilla nodes:
Gii thiu Sentila node:
Sentilla nodes l th h sau ca Tmode sky node. Nhng im khc bit gia hai loi node
ny l:
-
Hin nay Contiki h tr rt nhiu cho sky platform nhng cha kp update cho tt c cc
c tnh ca Sentilla node
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
-
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