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.

CC2640R2F: 如何通过mac地址去过滤扫描指定的蓝牙广播?

Part Number: CC2640R2F


协议栈版本:simplelink_cc2640r2_sdk_5_30_00_03

例程:blestack:simple_observer 与 simple_peripheral

项目里想要发出从机做个beacon即只发广播数据,在simple_peripheral 例程里修改了

uint8 bdAddress[B_ADDR_LEN] = { 0x44, 0x44, 0x44, 0x44, 0x44, 0x44 };

HCI_EXT_SetBDADDRCmd(bdAddress);

此时,指定了从机的MAC地址。通过抓帧软件能正确抓取到从机发出来的广播数据。MAC地址为44 44 44 44 44 44.

后面应用simple_observer例程出现了两个疑问。请问TI工程师们如何解决?

第一, 如何使用mac地址去过滤扫描指定的蓝牙广播?相同疑问的帖子在 https://e2echina.ti.com/support/wireless-connectivity/bluetooth/f/bluetooth-forum/218175/cc2640r2f-mac   没有解决到问题。

第二,我在SimpleObserver_processRoleEvent函数里,如下图,并修改了扫描时间为200ms     #define DEFAULT_SCAN_DURATION                 200 。

目的是,找到想要的MAC地址,即打印出数据。但没有打印出相应的MAC地址数据。请问TI工程师能不能通过第一个问题来过滤其他的MAC地址,只返回设置的MAC地址的广播数据。