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

code phy and 1M phy mixed mode advertising

Dear Nordic support,

I'd assume it should be OK to allow nrf52840 to advertise in dual phy mode - primary in 1Mbps and secondary coded phy so that phones with and without long range support can pickup the advertising?

Can you please show me some example (link/or doc) on how to make a peripheral advertise on both phys so that we can achieve that?

here is what I got:

#define DUAL_PHY 1
#if DUAL_PHY
/**< PHY for the primary advertising. @ref BLE_GAP_PHYS (BLE_GAP_PHY_1MBPS, BLE_GAP_PHY_2MBPS or BLE_GAP_PHY_CODED). */
init.config.ble_adv_primary_phy = BLE_GAP_PHY_1MBPS;
init.config.ble_adv_secondary_phy = BLE_GAP_PHY_CODED;/**< Enable or disable extended advertising. */
init.config.ble_adv_extended_enabled = true;/**< Enable or disable extended advertising. */
#else
init.config.ble_adv_primary_phy = BLE_GAP_PHY_1MBPS;
//init.config.properties.type = BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED;
#endif

But looks like it is not working as expected - seems the extended adv enable or not plays a big role here. 

Your support is appreciated,

Lichang

Parents
  • I have played with the following configuration:

    The following makes phone supporting BT4.2 see the adv but DK running long range central example cannot see/connect to to the peripheral DK.

    init.config.ble_adv_primary_phy = BLE_GAP_PHY_1MBPS;
    init.config.ble_adv_secondary_phy = BLE_GAP_PHY_CODED;/**< Enable or disable extended advertising. */
    init.config.ble_adv_extended_enabled = false;/**< Enable or disable extended advertising. */

     

    BT4.2 phone cannot see the adv using the following config:

    init.config.ble_adv_primary_phy = BLE_GAP_PHY_CODED;
    init.config.ble_adv_secondary_phy = BLE_GAP_PHY_1MBPS;/**< Enable or disable extended advertising. */
    init.config.ble_adv_extended_enabled = true;/**< Enable or disable extended advertising. */

    Can you please give us some code snippets which can support both long range and 4.2 only phy?

    Thanks

Reply
  • I have played with the following configuration:

    The following makes phone supporting BT4.2 see the adv but DK running long range central example cannot see/connect to to the peripheral DK.

    init.config.ble_adv_primary_phy = BLE_GAP_PHY_1MBPS;
    init.config.ble_adv_secondary_phy = BLE_GAP_PHY_CODED;/**< Enable or disable extended advertising. */
    init.config.ble_adv_extended_enabled = false;/**< Enable or disable extended advertising. */

     

    BT4.2 phone cannot see the adv using the following config:

    init.config.ble_adv_primary_phy = BLE_GAP_PHY_CODED;
    init.config.ble_adv_secondary_phy = BLE_GAP_PHY_1MBPS;/**< Enable or disable extended advertising. */
    init.config.ble_adv_extended_enabled = true;/**< Enable or disable extended advertising. */

    Can you please give us some code snippets which can support both long range and 4.2 only phy?

    Thanks

Children
Related