TI中文支持网
TI专业的中文技术问题搜集分享网站

AOA多设备同时采集IQ数据时,connHandle和slave的addr一一对应问题。

以下IQ数据的结构体,并没有对应的addr信息,请问哪条指令可以读取出connHandle和addr的对应。

/// @brief AoA Raw Result
typedef struct __attribute__((packed))
{uint16_t connHandle;//!< Connection handleint8_t  rssi;//!< Rssi for this antennauint8_t antenna;//!< Antenna array used for this resultuint8_t channel;//!< BLE data channel for this measurementuint16_t offset;//!< Offset in RAW result (size of samples[])uint16_t samplesLength;//!< Expected length of entire RAW sampleAoA_IQSample_Ext_t samples[]; //!< The data itself
} rtlsAoaResultRaw_t;

或者蓝牙代码中查询当前连接的蓝牙的地址的API是哪个?
Viki Shi:

AoA RaW data里面没有connHandle,你要读的话可以自己操作。以simple_peripheral为例,一旦一个连接被建立,协议栈会触发GAP_LINK_ESTABLISHED_EVENT。对此事件进行处理是通过各自的handle,如函数SimplePeripheral_addConn(uint16_t handle),会根据handle把连接设备信息加入一个叫connList的数组。

因此,基于simple_peripheral,用户可利用connList来追踪连接的设备。

赞(0)
未经允许不得转载:TI中文支持网 » AOA多设备同时采集IQ数据时,connHandle和slave的addr一一对应问题。
分享到: 更多 (0)