This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

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



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

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

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

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