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

Issue regarding Nrf52840 long range mode

Hi, I'm using Nrf52840 as the MCU for the developed product.

For my product, there is a central and a peripheral which two are communicate with each other via bluetooth. Currently, I set the adv_params.primary_phy = BLE_GAP_PHY_1MBPS for the peripheral, and .scan_phys = BLE_GAP_PHY_1MBPS for the central. They work perfectly. 

Now I wanna use the long range mode, so I change the BLE_GAP_PHY_1MBPS to BLE_GAP_PHY_CODED for both central and peripheral. However, after the modification, I found that they don't work and even I cannot find the peripheral anymore by using Nordic Connect App. Anybody knows why? 

Thank you so much!

Parents Reply
  • Got it. 

    I did the modification as below, (my SDK is 15.2)

    For the peripheral: 

    (1) Setting adv_extended_enabled = true

    (2) in ble_advertising_start(), change the secondary_phy to CODED. 

    Then, for the central:

    Setting the .scan_phys to BLE_GAP_PHY_AUTO

    However, I found that, after setting adv_extended_enabled to true in the peripheral, they cannot connect with each other anymore. 

    Do you have any idea why is that? Probably there are some other places need to be modified also? 

    Maybe it's because of the following one?

    (it will change the adv type from SCANNABLE to NONSCANNABLE)

Children
Related