简体   繁体   English

如何连接到802.15.4帧流?

[英]how can I hook into a stream of 802.15.4 frames?

Using a packet sniffer I am able to detect and successfully read a "hello word" payload within an 802.15.4 frame . 使用数据包嗅探器,我能够检测并成功读取802.15.4帧内的“ hello word”有效载荷。

It's great can see the frames in the sniffer, but now I'm at the point where I would like to parse the payload out and do useful things with it. 可以看到嗅探器中的帧真是太棒了,但是现在我正要解析有效负载并用它做有用的事情。

I was wondering if the community could point me to sample C/C++/Java (or even labview, doesn't matter) code that uses hardware (like an xbee ) and can successfully parse out the payload in order to do useful operations. 我想知道社区是否可以指出我使用硬件(例如xbee )并可以成功解析有效负载以进行有用操作的示例C / C ++ / Java代码(甚至是labview,也没关系)。

Is is possible to use the packet sniffer I already have for this purpose? 可以将我已经拥有的数据包嗅探器用于此目的吗?

I would greatly appreciate all / any advise. 我将不胜感激所有/任何建议。

EDIT: I have written a much better tool that does exactly this: https://github.com/andrewdodd/pyCCSniffer 编辑:我写了一个更好的工具,可以做到这一点: https : //github.com/andrewdodd/pyCCSniffer

If you are still interested there are a few tools that can help you receive the sniffed packets in a more friendly environment. 如果您仍然有兴趣,可以使用一些工具来帮助您在更友好的环境中接收嗅探到的数据包。

I "wrote" one such tool by combining 2 others that were available on GitHub. 我通过组合GitHub上可用的其他两个工具来“编写”这样一个工具。

See here for more info https://github.com/andrewdodd/ccsniffpiper . 有关更多信息,请参见此处https://github.com/andrewdodd/ccsniffpiper

NB: You have to be careful which version of firmware you have loaded on the sniffer, as TI change the format of the bytestream from time to time. 注意:由于TI会不时更改字节流的格式,因此您必须小心嗅探器上加载的固件版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM