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

What are the conditions for sending a scan request?

Hello.

I am developing using nrf52832 (S132 v7.0.1, SDK v16.0.0) as central and Android device (Bluetooth 4.2) as advertise.
Android devices use nRF Connect.

I can set "Advertising data" and "Scan Response data" in nRF Connect and I want to receive both data. Whether or not these are received is determined by the argument "scan_evt_t" structure of "scan_evt_handler". (Example: p_scan_evt-> params.filter_match.p_adv_report-> type.scan_response)

Currently, after receiving "Advertising data", "Scan Response data" can be obtained on rare occasions.
How can I set central so that I can get "Scan Response data" every time after getting "Advertising data"?

Thank you.

Parents Reply
  • I am afraid you just have to keep trying (i.e. scan multiple times). Just to be sure it is not another issue you could place the scanner and advertiser in an RF chamber to see if you still have problems.

    Scanners have a backoff routine, but it can still take a few attempts before you are successfull. see core spec 4.4.3.2 Active scanning

    The backoff procedure uses two parameters, backoffCount and upperLimit, to
    restrict the number of scan request PDUs sent when collisions occur on scan
    response PDUs. Upon entering the Scanning State, the upperLimit and
    backoffCount are set to one....

Children
Related