tinyos学习笔记7--TestLinkLocal例程功能说明
2015-12-28 15:18
387 查看
TestLinkLocal tests the basic Link-Local communication functionality of blip.It verifies that the radio is working, and address resolution is correct, and that 64-bit addressing
mode works correctly.
TestLinkLocal例程用于测试blip基本的本地链接通信功能。该例程具体可用于测试radio组件是否正常工作,能否正确的进行地址解析,及64位寻址方式是否正确。
Install on at least two motes -- the node ID's don't matter since they will use only 64-bit address mode.
最少使用2个节点来完成该实验,节点号(id.x)的设置没有大的影响,因为他们将仅使用64位地址模式。
1) Once per second, each mote transmits a packet (an echo request) to the link-local multicast all-nodes group (ff02::1). Led0 is toggled each time this happens. The source address is the node's
link-local unicast address derived from an EUI-64.
每秒钟,每个节点往外发送一个数据包(该数据包中有一个echo命令)到本地链接的所有节点分组(ff02::1)。Led0在此时会做反转。源地址是节点的本地链接的单播地址,来自EUI-64。
2) All nodes receiving an echo request toggle Led1. They also reply to the echo request with a unicast packet to the originator.
所有节点收到的数据为echo命令时将反转其自身的Led1。他们并将以其自身的单播地址给发送ehos命令的那一方发一个回复包。
3)Nodes receiving a unicast reply to one of their echo requests toggle Led2.
发送echo命令的节点收到发给他的reply回复后,反转Led2。
Therefore, if everything is working, you should see Led0 and Led2 blinking together, and Led1 blinking in sequence with the other mote's transmission.
This application can help troubleshoot problems with the header compression layer; to disable header compression, edit the Makefile to uncommment "-DLIB6LOWPAN_HC_VERSION=-1".
mode works correctly.
TestLinkLocal例程用于测试blip基本的本地链接通信功能。该例程具体可用于测试radio组件是否正常工作,能否正确的进行地址解析,及64位寻址方式是否正确。
Install on at least two motes -- the node ID's don't matter since they will use only 64-bit address mode.
最少使用2个节点来完成该实验,节点号(id.x)的设置没有大的影响,因为他们将仅使用64位地址模式。
1) Once per second, each mote transmits a packet (an echo request) to the link-local multicast all-nodes group (ff02::1). Led0 is toggled each time this happens. The source address is the node's
link-local unicast address derived from an EUI-64.
每秒钟,每个节点往外发送一个数据包(该数据包中有一个echo命令)到本地链接的所有节点分组(ff02::1)。Led0在此时会做反转。源地址是节点的本地链接的单播地址,来自EUI-64。
2) All nodes receiving an echo request toggle Led1. They also reply to the echo request with a unicast packet to the originator.
所有节点收到的数据为echo命令时将反转其自身的Led1。他们并将以其自身的单播地址给发送ehos命令的那一方发一个回复包。
3)Nodes receiving a unicast reply to one of their echo requests toggle Led2.
发送echo命令的节点收到发给他的reply回复后,反转Led2。
Therefore, if everything is working, you should see Led0 and Led2 blinking together, and Led1 blinking in sequence with the other mote's transmission.
This application can help troubleshoot problems with the header compression layer; to disable header compression, edit the Makefile to uncommment "-DLIB6LOWPAN_HC_VERSION=-1".
相关文章推荐
- TOSSIM仿真之网络配置
- A+精准营销软件系列之Q群营销助手软件功能说明
- ubuntu14.04+TinyOS-2.1.2
- TinyOS无线传感器网络串口通信和无线通信
- TinyOS心得
- tinyos学习笔记2--由"="引出的问题(Blink例程的学习)
- tinyos学习笔记3--基于cc2538平台的Blink、串口、timerTest例程测试
- BLIP发行历史(TinyOS中的BLIP)
- tinyos学习笔记4--谈谈TestSerial例程的测试
- tinyos学习笔记6--Blip测试实验之TestLinkLocal
- TinyOS生成docs时报UnicodeDecodeError: 'ascii' codec can't decode byte错误的解决方法
- CC2530的TinyOS移植之windows篇
- TinyOS平台基于telosb节点学习-SerialForwarder工具
- TinyOS学习-CC2420篇setPower
- TinyOS学习:安装流程
- TinyOS学习 - 射频层析成像之获取RSSI值
- TinyOS学习 - Ubuntu 12.04LTS安装TinyOS 2.1.1后make telosb报错之解决方案
- TinyOS学习 - 节点烧写工具代码
- TinyOS安装以及eclipse for tinyos插件
- Oracle 各后台进程功能说明