打印

在使用TI的packet sniffer过程中遇到的问题

[复制链接]
5210|3
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
Mobile1991|  楼主 | 2014-5-11 17:03 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

今天尝试使用TI的packet sniffer来观察收发的数据:1,将CC1110节点模块连接至PC,sniffer很快就capture device:SmartRFo4EB(USB Device ID=0050)--cc1110;
2,接着,在Radio Configuration栏下对各个射频寄存器进行设置,并保证该配置与Smartrf_CC1110.h中的一致;
   (Smartrf_CC1110.h是利用SmartRF studio对射频寄存器进行配置得到的)
3,点击sniffer的start,开始抓包时,遇到了一个的问题:capturing device,也就是我的节点模块,
     上面的LED熄灭(本来没有建立连接之前是亮着的),即使复位也毫无反应,整个模块就好像完全失灵了一样,
    只能重新下载源程序。但重新下载之后,重新执行步骤1、2,到了3出现了同样的问题。
就好像在点击sniffer的start一瞬间,之前给节点下的源程序全部给擦除了一样。
---------------------------------------------------------------------------------------------------------------------
上ti官网的E2E看到有人这样解释packet sniffer的:
If you're using a SmartRF05EB+CC2530EM, the Packet Sniffer tool will
first program the sniffer firmware on the CC2530EM.
Next, the sniffer will set the EB+EM in packet sniffer mode and send down
all the required configuration parameters (e.g. frequency and some RF register values specific to the chip).
Finally, the sniffer sends a start command and the capture hardware will start to receive and buffer packets.
The only interaction between the sniffer and the capture device at this point is the sniffer reading buffered packets from the capture device.
意思我好像看懂了,大概是讲:packet sniffer首先将sniffer firmware(抓包固件)编入我们使用的硬件节点,比如CC2530EM;然后
sniffer会将节点设置成抓包模式,并将在sniffer中配置的射频参数下传至硬件节点;最后,sniffer就会发送启动命令,
硬件节点就开始收发收据。而sniffer和硬件节点在这个时候唯一的交互就是:sniffer读取来自硬件节点的缓存的数据包。
-------------------------------------------------------------------------------------------------------------------------------
The CC2530 device on your board was reprogrammed when you started the sniffer.
Some of the GPIO pins on the CC2530 are reconfigured by the sniffer firmware to set up an SPI
and handshake interface between CC2530 and EB/debugger.
当我们点击starts启动抓包时,硬件节点上的程序将被改写,而建立sniffer和硬件节点之间的SPI接口和握手接口,
硬件节点的一些通用IO会被sniffer fireware改写。
-----------------------------------------------------------------------------------------------------------------------------------
看了这些,我也就大致明白了为什么会在点击start之后,我们自己的硬件节点就会失灵了。原来我们的之前下载的源程序
确实被改写了。
可是怎样才能保证我们自己之前的源程序在start sniffer之后不会被改写呢?
有见到过SmartRF flash programmer这种东西,它有用么?
希望懂的朋友指导一下,怎样才能实现抓包成功呢?先谢过!

相关帖子

沙发
dirtwillfly| | 2014-5-26 21:48 | 只看该作者
不好意思,刚看到这个帖子。

使用特权

评论回复
板凳
dirtwillfly| | 2014-5-26 22:05 | 只看该作者
楼主的问题解决了吗?
建议先看一看中文的packet sniffer用户手册:http://wenku.baidu.com/link?url= ... 8NkwWAwSNGrm_MV-7-a

使用特权

评论回复
地板
Mobile1991|  楼主 | 2014-5-28 21:16 | 只看该作者
dirtwillfly 发表于 2014-5-26 22:05
楼主的问题解决了吗?
建议先看一看中文的packet sniffer用户手册:http://wenku.baidu.com/link?url=NDFEq ...

谢谢版主提供的资料

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

11

主题

45

帖子

1

粉丝