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

SCAN_RSP IN EXTENDED ADVERTISEMENT

Hi,

Is it possible to add scan response with extended advertisement packet?

When I try to add scan response, then I got error NRF_ERROR_INVALID_PARAM. 

I am using a nRF52840 DK board with nRF5_SDK_15.0.0_a53641a.

Softdevice version is s140_nrf52_6.0.0.

I have done the following configurations

init.config.ble_adv_primary_phy = BLE_GAP_PHY_1MBPS;
init.config.ble_adv_secondary_phy = BLE_GAP_PHY_2MBPS;
init.config.ble_adv_extended_enabled = true;

Please give an update

Parents
  • Hi.

    I'm sorry about the delayed response.

    I see that you created a new post, where my colleague advised you to upgrade to the latest SDK/Softdevice. I do agree, and would suggest that you upgrade to the latest version.

    Hard to say what could be causing the NRF_ERROR_INVALID_PARAM error.

    Is it possible to add scan response with extended advertisement packet?

    Yes, it is possible to add scan response data when using extended advertising.
    However, you can not use both ad. data and scan response data concurrent when using the extended advertising feature. This is defined and limited by the Bluetooth spec.

    If you add both you will most likely get the invalid param error.

    Might that be the cause of your error?

    Best regards,
    Joakim

  • So what would be a workaround to keep the data from both? To join the data from scan response to the adv packet when using extended advertisement?

Reply Children
No Data
Related