Advertisement white list max size?

4 posts / 0 new
Last post
Joacimwe
Offline
Last seen:1 year 6 months ago
Guru
Joined:2014-01-14 06:45
Advertisement white list max size?

Hi.

When starting undirected advertisement, "In order to select which device can receive a scan response or initiate a connection, application can set white list using GAPM_WHITE_LIST_MGT_CMD command" according tohttp://support.dialog-semiconductor.com/system/files/resources/RW-BLE-GA....

The GAPM_WHITE_LIST_MGT_CMD command documentation does not specify how many elements that can be added to the white list. So my question is: what is the maximum size of the white list? The intention is to only make a restricted set of devices able to connect to the DA14580 peripheral.

Device:
MT_dialog
Offline
Last seen:2 months 4 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Joacimwe,

Hi Joacimwe,

The number of entries in the white list depends on the maximum number of connections the device is able to perform +2 extra positions.

Thanks MT_dialog

Joacimwe
Offline
Last seen:1 year 6 months ago
Guru
Joined:2014-01-14 06:45
That sounds strange since as

That sounds strange since as a peripheral, there can always only be one connection?
So 3 in total? If so, can I make it bigger?
Or do you mean 6 + 2 since the DA14580 can at most have 6 connections (only in central mode).

Joacimwe
Offline
Last seen:1 year 6 months ago
Guru
Joined:2014-01-14 06:45
Nevermind, 3 seems to be the

Nevermind, 3 seems to be the correct answer...
I found three functions in the sdk to make it bigger: ble_wlpubaddptr_set(ptr), ble_wlprivaddptr_set(ptr) and ble_wlnbdev_pack(nbprivdev, nbpubdev). It seems to work very well even with 100 addresses. Note that both nbprivdev and nbpubdev must be at least 1. If a list should be empty, put the 00:00:00:00:00:00 address in. ptr points to an array of bd addrs (6 bytes each) and must be stored in the 0x80000 area of the RAM.

我能理解与whiteli的关系st size if you are a central and use it to connect to as many devices that is supported, but I don't see the point by default supporting only 3 when in peripheral mode...