Contiki学习笔记

本文详细记录了在Win7环境下,使用VMware虚拟机安装Ubuntu 12.04,然后安装InstantContiki2.5进行Contiki物联网操作系统的学习过程。从环境搭建到Hello World程序的编译运行,最后介绍了如何使用Cooja模拟器进行模拟测试。
摘要由CSDN通过智能技术生成

一、contiki2.5环境搭建

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

 

1contiki资料网站

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

 

2InstantContiki2.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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值