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.

Make CC2540 connectable but not discoverable

Other Parts Discussed in Thread: CC2540

Hi, I have a problem with a CC2540 peripheral based on the Keyfob example code.

I have modified the code in order to enter in advertisement mode every 10 seconds.

What I need to do is to have a device that every 10 second enter in adv mode, and let a bluetooth device that know the MAC address to connect, but at the same time should be not visible to the other device. 

If I need to make it visible to all of the available bluetooth device I will press a button on the peripheral.

Thanks in advance 

  • Hello,

    I'm not sure what "visible to other devices" means in terms of the BT core spec as if you advertise, you are visible. If you are trying to inhibit other devices from connecting, you can use directed advertising or white lists. You can set the "non discoverable" mode, AD Flags 0x04, but not all Central/Hosts implement this mode.

    Best wishes