一、 contiki2.5环境搭建

Win7+虚拟机(VMware-player-4.0.3-703057.exe)+ InstantContiki2.5_Ubuntu12.04.zip

 

1、 contiki资料网站

http://sourceforge.net/apps/mediawiki/contiki/index.php

                       

 

 

2、 InstantContiki2.5_Ubuntu12.04.zip下载

http://sourceforge.net/projects/contiki/files/Instant%20Contiki/Instant%20Contiki%202.5/

 

 

3.虚拟机环境运行

 

ubuntu初始密码user

 

4.hello world运行

1)进入/home/user/contiki/examples/hello-world

2)输入make回车后编译生成hello-world.native

contiki-native.a    hello-world-example.csc  obj_cooja   README

contiki-native.map  hello-world.native       obj_native  symbols.c

hello-world.c       Makefile                 obj_sky     symbols.h

3)运行hello-world.native

user@ubuntu:~/contiki/examples/hello-world$ ./hello-world.native

Contiki-2.5-release-532-gc1b3183 started

Rime started with address 2.1

MAC nullmac RDC nullrdc NETWORK Rime

Hello, world

 

5.cooja

1)进入/home/user/contiki/tools/cooja

2)ant run

 

欢迎交流学习http://www.cnblogs.com/blueskywyf/

 

posted on 2012-06-08 15:08  blueskywyf  阅读(933)  评论(0编辑  收藏  举报