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 Reply
  • Hi,

    1) Is this answer is still relevant?

    2) Is it possible to declare 2 of "advertising_init" with different defining and tags? and operate them simultaneously ?!

    3) What is the best way to advertise in 1m phy and in coded phy to allow phones (wich use  ble 4.2 only) or my custom central long range devices to "see" the pheripheral and connect to it (not simultaneously !) ?

Children
Related