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

Configuration problem of BLE scan

I am using nRF52480 and s140. The example is ble_app_uart_c. The program works fine with: Scan interval x00A0 and Scan window x0050

However, when I set the Scan window to 140. or something bigger. The program keeps restarting and the board resets.

But, according to the infocenter the window range should be 0x0004 and 0x4000.

  • Hi mich_x!

    You also have to increase the value of the scan interval if you increase the value of the scan window.
    If the scan window is larger than the scan interval the sd_ble_gap_scan_start() will return NRF_ERROR_INVALID_PARAM and the board will reset.

    The scan interval decides how often the central will start scanning, and the scan window decides how long to scan each interval.
    If you want the central to continuously you set the interval to the same value as the window.

    Best regards,
    Joakim.

Related