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

Long Range Mode Issue(Nrf52840~)

Hi,

We have a bluetooth product which uses Nrf52840 as the MCU. It composes of a peripheral and a central device of which connect with each other via bluetooth and they work perfect so far.
When power on, the central start scanning whereas the peripheral will start advertising, as long as the central find the designated peripheral, they will establish the bluetooth connection automatically.

Now, we plan to implement the bluetooth V5 long range mode. After doing some modification of the firmware of the central and the peripheral, I found they don't work anymore.(meaning they cannot establish the bluetooth connection)

Figure 1 and figure 2 are the change points on the central side. By debugging, I found that the sd_ble_gap_scan_start(&p_scan_ctx->scan_params, &p_scan_ctx->scan_buffer) return error which is NRF_ERROR_INVALID_LENGTH. when the firmware start the scan, you can see in Figure 3(return error is located at the bottom of figure 3).

Does anyone know why's that? Did I miss something to change?

Related