how to apply whitelist and the total sequence of pairing & bonding

---

I want to apply whitelist and peer manager to an existing project
Now, the whitelist is not applied, and if you give the 'scan start' command, the scanned device lists are displayed on the serial monitor.
Here we now want to apply a whitelist.

Through the scan parameter setting, only the devices in the whitelist are retrieved.
As I understand it, when whitelist is applied on the central side, out of many advertising devices, the central receives advertising packets from only the devices on the list .
Then, even if there are 10 advertising devices, does scanning recognize only one device in the list?
Or All advertised devices are displayed, but is it possible to connect only one device in the list?

If it is not in the whitelist in the first place, I wonder if it is not possible to scan or only connect?

And when connecting for the first time, there is no information about pairing and bonding parameters, IRK and address, and none of the devices will be in the whitelist.
If so, how can I scan and connect, and the sequence is not well understood.
Can you explain in detail? Looking at the message chart, I don't know.

Parents
  • Hello,

    Through the scan parameter setting, only the devices in the whitelist are retrieved.
    As I understand it, when whitelist is applied on the central side, out of many advertising devices, the central receives advertising packets from only the devices on the list .
    Then, even if there are 10 advertising devices, does scanning recognize only one device in the list?
    Or All advertised devices are displayed, but is it possible to connect only one device in the list?

    Yes, when you do scanning with whitelist filtering, the central application will only receive scan events from devices which are in the list. This may be one, or multiple devices (whitelist can contain up to 8 devices).

    All advertised devices are displayed, but is it possible to connect only one device in the list?

    I would should the application know which device to connect to?

    And when connecting for the first time, there is no information about pairing and bonding parameters, IRK and address, and none of the devices will be in the whitelist.

    To accept new connections, you have to initiate scanning without a whitelist filter.

    Best regards,

    Vidar

  • Thanks for replying.

    I would should the application know which device to connect to?

    First, I try to connect ble and ble. The central side is a general ble dongle, and the peripheral side is connected to the mcu, so the sensed signal is transmitted to ble to uart, and the dongle receives the signal value from ble.

    When scanning, I don't want to list other nearby devices, so that the device to be connected is remembered and only this device is listed.

    There are still unanswered questions.

    To accept new connections, you have to initiate scanning without a whitelist filter.

    You said that you have to scan without a whitelist filter to accept new connections. If so, should it be implemented differently from the hrs_c example?
    If there is no information left on the flash when the scan starts (when trying to connect for the first time), can I turn off whitelist filtering, and show only the devices in the list if connection information remains in the flash?

  • Bi_ said:
    If so, should it be implemented differently from the hrs_c example?

    No, not necessarily. It depends on your requirements. For instance, what user input you will use to temporarily disable the whitelist. The hrs_c example will restart scanning without whitelist if you press and hold button_2 (BSP BLE Button Module)

    Bi_ said:
    If there is no information left on the flash when the scan starts (when trying to connect for the first time), can I turn off whitelist filtering, and show only the devices in the list if connection information remains in the flash?

    Yes, this is how it is handled in the hrs_c example already.

  • oh i got some understanding.
    thank you
    May I ask one more question?

    Can the whitelist be implemented in either central or peripheral?
    I am looking at hrs example and hid mouse example together, and one seems to be implemented in central and one in peripheral.
    After forming a list only on the central side, is it possible to receive peer information and do a listing?

Reply
  • oh i got some understanding.
    thank you
    May I ask one more question?

    Can the whitelist be implemented in either central or peripheral?
    I am looking at hrs example and hid mouse example together, and one seems to be implemented in central and one in peripheral.
    After forming a list only on the central side, is it possible to receive peer information and do a listing?

Children
Related