tinyos学习笔记7--TestLinkLocal例程功能说明

此博客介绍了如何通过LinkLocal测试例程来验证blip的本地链接通信功能,包括无线电组件的工作状态、地址解析的准确性以及64位寻址模式的正确性。实验涉及至少两个节点,每秒向本地链接所有节点分组发送数据包,并通过LED指示数据包的接收和响应情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

      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".



评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值