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

BLE5.0 Range Settings

SDK: 17.0.0

Softdevice : S140

Example:     ble_app_blink

I modify this example to long range adverting mode,and have some questions as follow:

(1)  the device can not connect for nrf connect app when the advertings parameters as follow:

     adv_params.primary_phy     = BLE_GAP_PHY_CODED; (change to BLE_GAP_PHY_1MBPS, nrf connect app can connect)
     adv_params.secondary_phy   = BLE_GAP_PHY_CODED;
     adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED;

(2) What is the difference between these two broadcast parameter setting methods?

     First settings:

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

     second settings:

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

Parents Reply
  • Hi,

    I do not have a HUAWEI P40 PRO so I cannot verify, but are you confident it supports establishing the connection on Coded PHY? Most phones (even new high-end models) only support establishing a connection on 1 MBps, and then changing to coded PHY.

    The difference between using 1M PHY as primary instead of Coded is that in this case the 1M phy is used to establish connections, and this is also used to point to the secondary phy (coded, in this case). This approach is the most compatible. It has the downside that 1 M advertisement packets must be received, so it reduces the range before the connection can be established.

Children
No Data
Related