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

Extended Advertising on NRF52832

Hi

Using SD Version 6.1.1 and NRF Version 15.3.0.

Using the following advertising params I can set non-extended advertising

ble_gap_adv_params_t advertisingParameters;

advertisingParameters.properties.type = BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED; // GAP Advertising type

using  

sd_ble_gap_adv_set_configure(&m_adv_handle, &m_adv_data, &advertisingParams);

As soon I change to

advertisingParameters.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED

I get an error NRF_ERROR_INVALID_PARAM from the Softdevice is there a step I am missing here to use Bluetooth 5

Parents
  • Hi

    Here is the rest of the setup

    memset(&advertisingParameters,0x00,sizeof(advertisingParameters));

    advertisingParameters.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED
    advertisingParameters.p_peer_addr = NULL; 
    advertisingParameters.duration = BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED;
    advertisingParameters.interval = 0x40; 

    advertisingParameters.primary_phy = BLE_GAP_PHY_AUTO;
    advertisingParameters.secondary_phy = BLE_GAP_PHY_AUTO;

    advertisingParameters.set_id = 4;

    advertisingParameters.filter_policy = BLE_GAP_ADV_FP_ANY;

    From a working instance where a remote central sees the advertising the only line I have changed 

    advertisingParameters.properties.type = BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED;

    Many thanks

Reply
  • Hi

    Here is the rest of the setup

    memset(&advertisingParameters,0x00,sizeof(advertisingParameters));

    advertisingParameters.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED
    advertisingParameters.p_peer_addr = NULL; 
    advertisingParameters.duration = BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED;
    advertisingParameters.interval = 0x40; 

    advertisingParameters.primary_phy = BLE_GAP_PHY_AUTO;
    advertisingParameters.secondary_phy = BLE_GAP_PHY_AUTO;

    advertisingParameters.set_id = 4;

    advertisingParameters.filter_policy = BLE_GAP_ADV_FP_ANY;

    From a working instance where a remote central sees the advertising the only line I have changed 

    advertisingParameters.properties.type = BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED;

    Many thanks

Children
No Data
Related