Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

About scan timeout

Hi,

I am using SDK 17.1.0 as a host scanner. When I changed the timeout to 0, there was a problem with the connection slave (NRF_ERROR_INVALID_PARAM). I'm pretty sure the problem is not caused by other conditions. Because other parameters remain the default. So when I want the scan to never time out, can I only restart the scan after the timeout?

Parents Reply
  • The following are all parameters related to the scanning part:

    #define NRF_BLE_SCAN_SCAN_INTERVAL 160
    
    #define NRF_BLE_SCAN_SCAN_DURATION 0
    
    #define NRF_BLE_SCAN_SCAN_WINDOW 80
    
    #define NRF_BLE_SCAN_MIN_CONNECTION_INTERVAL 7.5
    
    #define NRF_BLE_SCAN_MAX_CONNECTION_INTERVAL 30
    
    #define NRF_BLE_SCAN_SLAVE_LATENCY 0
    
    #define NRF_BLE_SCAN_SUPERVISION_TIMEOUT 4000 // 0
    
    #define NRF_BLE_SCAN_SCAN_PHY 1

    If the timeout parameter is set to 0, will other parameters conflict? Or is the connection error because the slave does not accept this value?

Children
Related