您的位置:首页 > 其它

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".
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息