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.

CC2640: How can an advertising Peripheral selectively refuse to send Scan Response to an undesired/inappropriate Central device Scan Request?

Part Number: CC2640

We have several proprietary Peripheral devices and several proprietary Central devices, in an environment full of foreign Central devices from other vendors.

Our code is based on the simple_peripheral and simple_central sample code.

When a Peripheral is advertising, we notice that foreign devices send a Scan Request, and the Peripheral responds with a Scan Response.

We want the Peripheral to examine the Scan Request, determine if it is from one of our Centrals, and if not, then do not respond, do not send a Scan Response.

In the beginning, none of our devices know about each other and have never connected before, so we have nothing in a whitelist.

What section of the TI source code can we review or modify to handle this filtering action?

Is there any documentation or sample source code illustrating such a filter?

  • Hi Happy Dawg,

    Let me make sure I understand this correctly:

    You have a peripheral, that advertises.

    You many multiple centrals, some of which are yours.

    You want to only send scan responses to the scan requests that are from your centrals. However, you don't know addresses are your centrals?

    The only information you can extract from a scan request is the requestor's address (public or random). If you don't know which addresses are yours to begin with, I don't know how this can be done.

    However, if you do have information on which centrals are yours (just from addresses) then you could simply use the whitelist as you point out.

    Regards,
    Rebel