`
hulianwang2014
  • 浏览: 681142 次
文章分类
社区版块
存档分类
最新评论
  • bcworld: 排版成这样,一点看的欲望都没有了
    jfinal

contiki CC2530 CC2430例子描述

 
阅读更多
来源: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可以识别的二进制码流。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics