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

Advertise long range for beacons

I would like to know what configurations are required to advertise long range.

adv_params.primary_phy     = BLE_GAP_PHY_CODED;
adv_params.secondary_phy   = BLE_GAP_PHY_CODED;

Just changing the phy. returns error 0x07

I compared the ble_app_blinky and ble_app_att_mtu_throughput, but they are to diffrent to find what's required.

Goal ist to programm a ble long range beacon.

SDK 15.0.0

nrf52840 pca10056

Parents
  • FormerMember
    0 FormerMember

    The below parameters can be used to set up an advertiser on coded phy:

    ble_gap_adv_params_t adv_params =
        {
            .properties    =
            {
              .type = BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED, // or BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_SCANNABLE_UNDIRECTED
            },
            .p_peer_addr   = NULL,
            .filter_policy = BLE_GAP_ADV_FP_ANY,
            .interval      = ADV_INTERVAL,
            .duration      = 0,
    
            .primary_phy   = BLE_GAP_PHY_CODED, 
            .secondary_phy = BLE_GAP_PHY_CODED,
            .scan_req_notification = 1,
        };

Reply
  • FormerMember
    0 FormerMember

    The below parameters can be used to set up an advertiser on coded phy:

    ble_gap_adv_params_t adv_params =
        {
            .properties    =
            {
              .type = BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED, // or BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_SCANNABLE_UNDIRECTED
            },
            .p_peer_addr   = NULL,
            .filter_policy = BLE_GAP_ADV_FP_ANY,
            .interval      = ADV_INTERVAL,
            .duration      = 0,
    
            .primary_phy   = BLE_GAP_PHY_CODED, 
            .secondary_phy = BLE_GAP_PHY_CODED,
            .scan_req_notification = 1,
        };

Children
Related