Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to achieve long range?

Dear nordic,

I want to add long range in my application and also i want to set maximum power 

i used sdk 15 and example ble central and peripheral(relay)

Where i set to coded phy and maximum power ?

I need some help to achieve long range and setting maximum power to nrf52840

Parents Reply Children
  • Hi 

    Did you check the example code on the blogpost i linked in the previous reply? I suggest that you compare your code with the example code from the guide so that you can see what's missing. In the mtu_throughput example you should change the tx_phys , rx_phys, scan_phys to BLE_GAP_PHY_CODED to achieve long range in advertising and scanning. But again, all of this is done in the example code.

    Jared 

  • Hi, I have the same problem switching my ble_app_uart and ble_app_uart_c to long range , when i change the phys to work with coded instead of 1MBPS the function  sd_ble_gap_adv_set_configure in the peripheral code and the function sd_ble_gap_scan_start return error numbe 7 , I think this is error  NRF_ERROR_INVALID_PARAM.

    how I fix this please ?

    I tried to look at the example code on the blogpost you linked in the previous reply, but i didn't find the code there.

    I am using the nRF5_SDK_15.2.0_9412b96 SDK and the s140_nrf52_6.1.1_softdevice

  • Hi,

    NRF_ERROR_INVALID_PARAM is returned when one or more of the parameters that are passed doesn't satisfy the specification. You should check ble_scan params and the p_adv_report_buffer to the documentation.

Related