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

S120 scanner handling of ADV_IND with no scan response

Hello All,

For the S120 softdevice active scanner, it appears that when ADV_IND is received and a scan request/response exchange occurs there will be two BLE_GAP_EVT_ADV_REPORT events sent to the application, one for the ADV_IND packet and one for the scan response. The ble_gap_evt_adv_report_t::scan_rsp field specifies which is which.

If ADV_IND is received but for some reason the scan response is not, will the BLE_GAP_EVT_ADV_REPORT event associated with the ADV_IND packet be sent to the application?

Thanks and Best Regards, Matt

Parents
  • Hello,

    I didn't want to start a new post as my question relates to this same question.

    I'm working with an S120 product that is a controller. I'm updating the firmware of this product to connect it to various BLE peripherals (like a weight scale).

    I have an issue now where my weight scale is advertising a ADV_IND and within a very short time (1-2ms) also a SCAN_RSP. I need to grab the SCAN_RSP so I can take the local name and connect to it. (I worked this sequence flow and packet data by using a packet sniffer on my Mac. I'm assuming the S120 product would handle this same sequence. I.e I'm guessing the S120 product will do the same as my Bluetooth firmware on my Mac, which requests for more info when it gets the ADV_IND which results in a near immediate response.)

    But currently I am only getting one BLE_GAP_EVT_ADV_REPORT for the ADV_IND. And nothing for SCAN_RSP which is an issue for me as I can't get the local name to identify and connect.

    I am fairly new to S120 so forgive me if my question is a bit newbie... My guess as to why this is happening is because:

    1. The S120 layer does not (with its default config) get the peripheral to respond with a SCAN_RSP when ADV_IND is caught. There is a custom config to get it to do this?

    2. The ADV_IND and SCAN_RSP appear too close to each other so the later is ignored by the controller?

    Or it could be something else, Please point me in the right direction.

    Thanks very much, Mark

  • No probs, I worked it out. For others who may have this issue - set Active Scanning to True.

Reply Children
No Data
Related