2024-05-17發(fā)布的CH583EVT=》EXAM=》BLE=》Broadcaster,在broadcaster.c當(dāng)中的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
終端:華為手機(jī)Mate40|華為平板;軟件:BLE調(diào)試助手;問(wèn)題:都發(fā)現(xiàn)不了CH582M官方開(kāi)發(fā)板的藍(lán)牙設(shè)備。
反饋信息正常,就是終端發(fā)現(xiàn)不了藍(lán)牙設(shè)備。如果不改 TGAP_ADV_PRIMARY_PHY 再測(cè)試,手機(jī)截屏如下
????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可以正常改為L(zhǎng)E CODED,就是Primary PHY改不動(dòng),一改就找不到設(shè)備了。用Peripheral也做了測(cè)試,情況一樣。終端都是支持Coded PHY,不清楚是哪里出了問(wèn)題?