免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1617 | 回复: 0
打印 上一主题 下一主题

TinyOS Packet Sending/Reception [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-04 20:07 |只看该作者 |倒序浏览


The sender first enters a CSMA delay period, listening
for  an  idle  channel.    The  sender  then  transmits  a  packet  start
symbol at 10Kbps, which a receiver samples for at 20Kbps.  As
the following data is transmitted at 40Kbps, after the start symbol
the receiver must synchronize to the sender at a finer granularity.
The sender pauses for a few bit times after the start symbol, then
transmits  a  one  bit.   The  receiver,  after  the  start  symbol,  polls
the channel to identify the falling edge denoting the sender pause.
Once it has done so, it polls again, this time for the next rising edge,
using an input capture register to take a precise timestamp. These
two spin loops take roughly 400-600 µs.  The receiver adjusts its
radio clock so that its 40Kbps data sample rate is synchronized with
the sender’s signal.  The sender starts transmitting encoded packet
data, which the receiver decodes into a packet buffer.
Once the packet data has been read in, the sender transmits a
pulse of ones for the receiver to use for measuring signal strength.
After this strength pulse, the sender transitions into receive mode
and the receiver transitions into send mode. The sender introduces
a short pause in its timing as part of this phase shift; as the receiver
was sampling after the sender actually transmitted a bit, the sender
must shift its sampling point to be after the receiver.  The receiver
then transmits a short bit pattern indicating acknowledgment; if the
sender hears it, it marks the sent packet as acknowledged before
passing it back in a send done event. The receiver checks the packet
CRC, discarding corrupted packets.  If the packet is addressed for
the receiver or the broadcast address, the networking stack signals
a reception event of the proper AM type.

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/92114/showart_1813091.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP