微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI蓝牙设计交流 > 想请教下各位,CC2640/CC2650是否支持在MAC层发送数据帧时记录发送/接收时间(时间戳)?

想请教下各位,CC2640/CC2650是否支持在MAC层发送数据帧时记录发送/接收时间(时间戳)?

时间:10-02 整理:3721RD 点击:

目前在做的实验需要一些时间数据,为了准确,想要拿到在mac层发送时和接收时的时间数据,不知道是否可以拿到,恳请各位大佬能够指点下~

1)你所说的MAC层是否指的是物理层?

2)其实你要以用抓包工具或者APP中做一些处理实现

外扩一个时钟芯片。

您可以用抓包工具得到。请问您这些数据想如何使用呢?

可以看下射频驱动,那里面是有时间戳的,类似这种:

struct __RFC_STRUCT rfc_propRxOutput_s {
   uint16_t nRxOk;      //Number of packets that have been received with payload, CRC OK and not ignored   接收并处理             
   uint16_t nRxNok;     //Number of packets that have been received with CRC error.              crc异常 
   uint8_t nRxIgnored;  //Number of packets that have been received with CRC OK and ignored due to address mismatch. 地址不匹配               
   uint8_t nRxStopped;  //Number of packets not received due to illegal length or address mismatch with pktConf.filterOp = 1非法数据               
   uint8_t nRxBufFull;  //Number of packets that have been received and discarded due to lack of buffer space.由于接收buf满而被丢弃的数据             
   int8_t lastRssi;    //RSSI of last received packet    最后一次接收数据包的rssi             
   ratmr_t timeStamp;   //Time stamp of last received packet.  最后一次接收数据的时间戳               
};

不好意思,今天才看到,针对你的问题:

(1)想要获取MAC层的时间戳主要是为了获悉真正数据发送出去的时间,而不是在应用层处理时的时间

(2)这个数据要在应用层使用,抓包工具不太能够满足需要呢

不知道是否有可行的办法呢

guozi

可以看下射频驱动,那里面是有时间戳的,类似这种:

struct __RFC_STRUCT rfc_propRxOutput_s {
   uint16_t nRxOk;      //Number of packets that have been received with payload, CRC OK and not ignored   接收并处理             
   uint16_t nRxNok;     //Number of packets that have been received with CRC error.              crc异常 
   uint8_t nRxIgnored;  //Number of packets that have been received with CRC OK and ignored due to address mismatch. 地址不匹配               
   uint8_t nRxStopped;  //Number of packets not received due to illegal length or address mismatch with pktConf.filterOp = 1非法数据               
   uint8_t nRxBufFull;  //Number of packets that have been received and discarded due to lack of buffer space.由于接收buf满而被丢弃的数据             
   int8_t lastRssi;    //RSSI of last received packet    最后一次接收数据包的rssi             
   ratmr_t timeStamp;   //Time stamp of last received packet.  最后一次接收数据的时间戳               
};

感觉很有用,不过这个文件是在哪里呢?在工程文件里好像没有找到

Susan Yang

您可以用抓包工具得到。请问您这些数据想如何使用呢?

主要想要在运行时使用,抓包的数据只能用来观察不是很方便

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top