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
  • If you start by debugging the code you can see if the ble_advertising_init function (or scan init) returns with an error code. If the error code is "invalid params" it's some of the parameters that are not according to spec. For instance both scannable and connectable is not supported with the extended advertising. So if you want to connect to the peripheral you will need connectable, non-scannable, undirected advertising. This is described in Volume 6, Part B, Section 4.4.2, Table 4.1 in the spec.

Children
Related