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

求助

请问各位大佬,CC2640R2F扫描白名单添加设备地址时,添加地址数量超过3个程序就跑死了,这是什么原因

Alvin Chen:

你是用的如下code:
uint8_t autoSyncWhiteList = TRUE;
GAPBondMgr_SetParameter(GAPBOND_AUTO_SYNC_WL, sizeof(uint8_t), &autoSyncWhiteList);

user5911468:

回复 Alvin Chen:

#define DEFAULT_DISCOVERY_WHITE_LISTTRUE

uint8_tAddress[6];
HCI_LE_AddWhiteListCmd(HCI_PUBLIC_DEVICE_ADDRESS,Address);

我是这样添加的

Alvin Chen:

回复 user5911468:

// === SOLUTION [Change filter policy] === //set ADV filter policy to allow scan and connect request from white list only uint8_t advFilterPolicy = GAP_FILTER_POLICY_WHITE; static uint8 bdAddressPeer[6] = {0x00,0x90,0x78,0x56,0x34,0x12}; HCI_LE_AddWhiteListCmd(ADDRMODE_PUBLIC, bdAddressPeer); GAPRole_SetParameter(GAPROLE_ADV_FILTER_POLICY, sizeof(uint8_t), &advFilterPolicy) 类似于以上ADV filter 功能对吧,可能是你应用程序过大导致内存不足,你尝试去优化一下。

https://e2echina.ti.com/question_answer/wireless_connectivity/bluetooth/f/103/t/177561

赞(0)
未经允许不得转载:TI中文支持网 » 求助
分享到: 更多 (0)