TinyOS CC2420接收P
我想保留未通过 crc 检查的数据包。 为此,我注释掉了 CC2420RecieveP readDone 函数的一部分,该函数检查接收缓冲区中 LQI 字节的 msb 位。
我认为这是可行的,
但是,一旦我在自己的接收函数中收到数据包,我就通过串行组件发送它(不仅仅是有效负载,我将整个接收到的无线电数据包复制到串行数据包的有效负载区域中)。 当我使用 Listen 程序时,即使 crc 已清楚地复制到函数 receiveDone_task 中的 bufPTR 中,但 crc bool 值似乎不存在(只有 LQI 和 RSSI)。
:(
救命!
迈克。
I want to hold onto packets that fail the crc check. To do this I have commented out a section of the CC2420RecieveP readDone function that checks the msb bit of the LQI byte in the received buffer.
I think this is working,
However, once I receive the packet in my own receive function I send it through the serial component (not just the payload, I copy the whole received radio packet into the payload area of the serial packet).
When I use the program Listen, it seems that the crc bool value is not there (only the LQI and RSSI) even though the crc is clearly copied into the bufPTR in the function receiveDone_task.
:(
Help!
Mike.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我只复制了前 28 个字节(不是标头加上 28 字节有效负载加上元数据)
:P
i was only copying the first 28 bytes (not the header plus a 28 byte payload plus the metadata)
:P