来源:http://nets-www.lboro.ac.uk/george/contiki-sensinode/
【说明】
仅翻译了部分内容,这些内容为examples中几个例子的描述。学习contiki需要有一个纲要性的指导文件,具体可参考原文链接。
Examples
We've added some more examples in examples/sensinode:
udp-ipv6:UDP client-server example over uIPv6. Uses link-local and global addresses. Button 1 on the client will send an echo request. This is derived from examples/ipv6/rpl-udp
border-router: 802.15.4 to SLIP bridge example. Connect the node to a USB port. It will act as RPL root for the 6lowpan network and will forward packets from the 15.4 network to its UART (and thus towards the internet over SLIP). You will
also need tunslip6 in tools to make things work.
sensors: Demonstrating button and ADC functionality
cc2431-location-engine:Example demonstrating the usage cc2431 location engine (blind node) N.B. Not all sensinode devides have a cc2431
timer-test: Same as the original clock_test + testing the rtimer-arch code
event-post: Demonstrating the interaction between two processes with custom events
blink-hello: Hello World with LED blinking
broadcast-rime: Just an example from examples/rime, slightly modified
sniffer: The device will capture all 802.15.4 traffic and output it in hexdump format. This can then be converted to pcap with text2pcap (suggest using -l 195) and analyzed with wireshark.
我们在sensinode平台中加入了很多例子
udp-ipv6:UDP client-server(客户端和服务器)例子。在这个例子中使用了链路本地地址和全局单播地址。在客户端的按钮1会发送一个回显请求。这个例子修改自examples/ipv6/rpl-udp。
border-router:802.15.4到slip桥的例子。该节点连接到一个USB端口。该节点作为RPL路由的跟节点并把802.15.4的数据转发到UART(即通过SLIP连接到互联网)。为了完成该部分的工作还需要使用tunslip6。
sensors:演示按钮和ADC功能。
cc2431-location-engine:演示使用CC2431内部定位引擎。注意,并不是所有的sensinode设备都有CC2431。
timer-test:一些关于clock_test和rtimer-arch的代码。
event-post:演示了两个任务之间的互动和用户自定义事件。
blink-hello:经典的Hello World功能和LED闪烁功能
broadcast-rime:稍微修改了examples/rime中的例子
sniffer:该设备抓取所有的所有的802.15.4的通信数据并通过hex格式输出。这些抓取内容可以通过text2pcap导入至pacp中(text2pcap建议参数 -l 195 )并使用wireshark进行分析。
【名词解释】
link-local address 链路本地地址(来自《IPV6技术精要》)
global address 全局单播地址(来自《IPV6技术精要》)
RPL:
SLIP:
tunslip6:
pcap:pcap是一个数据包抓取库, 很多软件都是用它来作为数据包抓取工具的。 WireShark使用PCAP库来抓取数据包的。PCAP抓取出来的数据包并不是原始的网络字节流,而是对其进行从新组装,形成一种新的数据格式。
text2pcap:使打印出来的ASCII或HEX码流的数据报转化成wireshark可以识别的二进制码流。
分享到:
相关推荐
基于IAR的Contiki系统在CC2530下的移植
CC2530 Contiki资料SDK
基于CC2530平台的contiki操作系统的IARproject
文档属于CC2530的Contiki开发技术指导文件,便于新手和应用开发。
感谢 任海波 老师的 基于IAR的Contiki系统在CC2530下的移植 文章,让我把contiki 移植到了cc2530 工程上,但是只是编译通过并没有跑起来!欢迎大家下载程序一起研究。
基于Contiki和CC2530的6LowPAN节点程序
contiki操作系统,增加了TI公司的CC2530芯片,及相应平台的移植,有需要的同学参考一下,我也正在学习中。
基于IAR的Contiki系统在CC2530下的移植
使用IAR环境打开,工程路径: work1-读取温湿度并发送数据\project\iar\simple\contiki_cc2530.eww
基于keil的contiki系统的stm32移植程序, 简单测试程序,写的比较乱,仅作参考
contiki的最新版本,内含cc2530驱动
contiki-3.0-6lowpan-cc2650节点源码
基于Contiki操作系统的无线传感器网络实现与优化研究 (需要使用CAJViewer阅读器打开)
Contiki是一个开源的、高度可移植的多任务操作系统,适用于联网嵌入式系统和无线传感器网络,由瑞典计算机科学学院(Swedish Institute of Computer Science)的Adam Dunkels和他的团队开发
printf函数是在stdio.h文件中定义的,因为printf支持重定向,printf输出会由putchar函数(位于platform->cc2530dk->debug.c->大概位置为91行)控制,Contiki对putchar做了重定义,在putchar里又调用了putchr函数...
Contiki学习笔记:进程、事件、etimer关系 Contiki 实例: Contiki学习笔记:创建两个交互进程 Contiki 主函数剖析: Contiki学习笔记:main函数剖析 Contiki学习笔记:启动一个进程process_start Contiki学习笔记...
contiki_contiki 微型操作系统介绍文档
生成一个Contiki应用程序,该应用程序将关闭无线电,等待十秒钟,然后将CC2650置于永久睡眠模式,以便可以测量电流消耗。 建造 该项目的构建与其他任何Contiki项目一样。 只需使用make TARGET=<target> 。 但是,...
Contiki是一个开源的、高度可移植的多任务操作系统,适用于联网嵌入式系统和无线传 感器网络,由瑞典计算机科学学院(Swedish Institute of Computer Science)的Adam Dunkels 和他的团队开发。Contiki完全采用...
Contiki_Programming_Guide