This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

sd_ble_gap_scan_start returns 0x6

Hello everyone,

I am trying to develop a windows application using the same example from pc-ble-driver-4.1.1\examples\heart_rate_collector/main.c. When i call the function 'sd_ble_gap_scan_start', the error code is 0x6. My scan parameters are,

extended = 0x00; // Set if accept extended advertising packetets.
report_incomplete_evts = 0x00; // Set if report incomplete reports.
active = 0x00; // Set if active scanning.
filter_policy = 0x00; //BLE_GAP_SCAN_FP_ACCEPT_ALL Accept all advertising packets except directed advertising packets
scan_phys = 0x01;//BLE_GAP_PHY_1MBPS /**< 1 Mbps PHY. */
interval = 0x00A0; /*< Determines scan interval in units of 0.625 milliseconds. */
window = 0x0050; /*< Determines scan window in units of 0.625 milliseconds. */
timeout = 0x0; /*< Scan timeout between 0x01 and 0xFFFF in seconds, 0x0 disables timeout. */
ch_mask_Byte = { 0, 0, 0, 0, 0 };

I am wrapping from the driver:

nrf-ble-driver-4.1.1-win_x86_32

Can anyone help me with this?

Thank you, LC

Parents
  • Hi awneil,

    Thanks for replying to the questions.

    The error code means : NRF_ERROR_NOT_SUPPORTED Unsupported parameters supplied See @ref ble_gap_scan_params_t.

    Below is the code that i used during the call for setting the parameters. So i am not sure which parameters is not supported.

    ble_gap_scan_params_t m_scan_param = new ble_gap_scan_params_t();
    m_scan_param.extended = 0x00; // Set if accept extended advertising packetets.
    m_scan_param.report_incomplete_evts = 0x00; // Set if report incomplete reports.
    m_scan_param.active = 0x00; // Set if active scanning.
    m_scan_param.filter_policy = 0x00; //BLE_GAP_SCAN_FP_ACCEPT_ALL Accept all advertising packets except directed advertising packets
    m_scan_param.scan_phys = 0x01;//BLE_GAP_PHY_1MBPS /**< 1 Mbps PHY. */
    m_scan_param.interval = 0x00A0; /*< Determines scan interval in units of 0.625 milliseconds. */
    m_scan_param.window = 0x0050; /*< Determines scan window in units of 0.625 milliseconds. */
    m_scan_param.timeout = 0x0;    /*< Scan timeout between 0x01 and 0xFFFF in seconds, 0x0 disables timeout. */

  • The error code means : NRF_ERROR_NOT_SUPPORTED Unsupported parameters supplied
    i am not sure which parameters is not supported.

    Yes - it has been noted that this type of error is very unhelpful:

    https://devzone.nordicsemi.com/f/nordic-q-a/48490/graceful-recovery-from-bluetooth-errors/192292#192292

    Disappointed

Reply Children
Related