2024-05-17发布的CH583EVT=》EXAM=》BLE=》Broadcaster,在broadcaster.c当中的void Broadcaster_Init()修改:
uint8_t initial_adv_event_type = GAP_ADTYPE_EXT_NONCONN_NONSCAN_UNDIRECT;
GAPRole_SetParameter(GAPROLE_ADV_EVENT_TYPE, sizeof(uint8_t), &initial_adv_event_type);
GAP_SetParamValue(TGAP_ADV_SECONDARY_PHY,GAP_PHY_VAL_LE_CODED); //125K
GAP_SetParamValue(TGAP_ADV_PRIMARY_PHY, GAP_PHY_VAL_LE_CODED); //125K
终端:华为手机Mate40|华为平板;软件:BLE调试助手;问题:都发现不了CH582M官方开发板的蓝牙设备。
反馈信息正常,就是终端发现不了蓝牙设备。如果不改 TGAP_ADV_PRIMARY_PHY 再测试,手机截屏如下
GAP_SetParamValue(TGAP_ADV_SECONDARY_PHY,GAP_PHY_VAL_LE_CODED); //125K
// GAP_SetParamValue(TGAP_ADV_PRIMARY_PHY, GAP_PHY_VAL_LE_CODED); //125K
Secondary PHY可以正常改为LE CODED,就是Primary PHY改不动,一改就找不到设备了。用Peripheral也做了测试,情况一样。终端都是支持Coded PHY,不清楚是哪里出了问题?