This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F: Read RSSI value of SCAN_REQ packet

Part Number: CC2640R2F

CC2640R2F is used as peripheral.

 

Before connection, while CC2640R2F is advertising:

 

1. When it receives the SCAN_REQ packet from a central (active scanner), how can we extract the RSSI value of this SCAN_REQ packet to the application layer?

 

2. Can the application layer decide whether to send the SCAN_RSP packet? Or is it handled in the stack?

  • Hi Eddie,

    Eddie Koh said:
    1. When it receives the SCAN_REQ packet from a central (active scanner), how can we extract the RSSI value of this SCAN_REQ packet to the application layer?

    This is an interesting question and after reviewing the code, this might be possible within GAP_ADV_DATA_UPDATE_DONE_EVENT. But let me run a quick test to confirm.

    Eddie Koh said:
    2. Can the application layer decide whether to send the SCAN_RSP packet? Or is it handled in the stack?

    The application could decide what to send. But the response depends on your advertising PDU.

    dev.ti.com/.../ble_scan_adv_basic.html

      Best regards,

       David

  • Hi Eddie,

    For #1, I made it work but I did not use GAP_ADV_DATA_UPDATE_DONE_EVENT. I used HCI_EXT_ScanReqRptCmd, please take a look at this: dev.ti.com/.../group___h_c_i.html

    "Enables or disables scan request reports. The default system value for this feature is disabled. When enabled, a received Scan Request from a peer device during Advertising will result in a Scan Request Report sent from the controller of type hciEvt_BLEScanReqReport_t."

    And you can read the RSSI using scanRequestReport->rssi;

    Hopefully this helps.

    David
  • Hi David,

    I have a customer scenario which I would like to seek your advise, can I email you the case study?

    Thanks,
    Christina
  • Hi Christina,

    Sure, I'll contact you offline.

    Best regards,

    David