2023-09-29 01:20 PM - edited 2023-09-29 01:21 PM
Hello everyone.
I'm facing a issue when I try to use CODED_PHY instead 1M_PHY. When I start a GAP_GENERAL_DISCOVERY_PROC, the stack returns: 0xD1 (BLE_STATUS_INVALID_SCAN_CONFIGURATION).
Could anyone help me? The scan configuration is (return 0x00 - OK):
ret = aci_gap_set_scan_configuration(DUPLICATE_FILTER_ENABLED, SCAN_ACCEPT_ALL, LE_CODED_PHY_BIT, PASSIVE_SCAN, SCAN_INTERVAL, SCAN_WINDOW);
PRINTF("Scan configuration for LE_CODED_PHY: 0x%02X\n", ret);
and the start procedure function returns 0xD1 (NOK). variable phy = LE_CODED_PHY.
ret = aci_gap_start_procedure(GAP_GENERAL_DISCOVERY_PROC, phy, SCAN_DURATION/10, 0);
if(ret){
PRINTF("start general discovery failed; err: %02X", ret);
}
When using 1M_PHY it works well.
I can't see more details about the functions and error troubleshooting in the documentation, so I'm looking help here.
Best Regards,
Leonardo