4 posts / 0 new
Last post
liuluan002
Offline
Last seen:6 months 2 weeks ago
Joined:2015-11-27 14:24
scanning issue

Hi Dialog,

1. How to make the scanning with many whitelist addresses? How to add these address(more than 6 addresses) into the whitelist? Could you give me an example for showing how it works?

2. Is there any limitation for the scanning time? Since I want to scan for channel 37 for 24hours. How to make it possible and not missing any packages?

Device:
MT_dialog
Offline
Last seen:3 months 1 hour ago
Staff
Joined:2015-06-08 11:34
Hi liuluan002,

Hi liuluan002,

1) The white list settings of the stack can fit up to 8 devices (the amount of the devices that fit in the white list depends on the amount of connections the
设备可以有+ 2),所以如果你配置你的device to have up to 6 connections then the size of your whitelist reaches up to 8.

uint8_t white_addr[6] = {0x01, 0x00, 0x00, 0xCA, 0xEA, 0x80};
struct gapm_white_list_mgt_cmd *cmd = KE_MSG_ALLOC_DYN(GAPM_WHITE_LIST_MGT_CMD,
TASK_GAPM,
TASK_APP,
gapm_white_list_mgt_cmd,
sizeof(struct gap_bdaddr));
cmd->operation = GAPM_ADD_DEV_IN_WLIST;
cmd->nb = 1;
memcpy((void *) &cmd->devices[0].addr, (void *)white_addr, BD_ADDR_LEN);
ke_msg_send(cmd);

2) The scan in general discovery mode and limited discovery mode lasts up to 8 seconds, and it scans all the channels sequentially, there is no way to scan
individual channels, like only channel 37 and not the other channels, regarding the 24h scanning you can restart the scanning in the scanning complete function.
If the advertising message reaches the device there will be a advertising report from the device, but there is no guarantee that an advertising string will reach
scanning device, there is no mechanism to ensure that.

Thanks MT_dialog

Joacimwe
Offline
Last seen:1 year 6 months ago
Guru
Joined:2014-01-14 06:45
The white list size is by

The white list size is by default too restricted according to me. To have more devices, you can see my post here:https://support.dialog-semiconductor.com/advertisement-white-list-max-si....

MT_dialog
Offline
Last seen:3 months 1 hour ago
Staff
Joined:2015-06-08 11:34
Hi Joacimwe,

Hi Joacimwe,

Thanks for the indication, accessing directly the whitelist registers of adding more devices in the white list its not tested from Dialog's side therefore i am not aware of any side effects this could have, thus i cannot recommend it. The recommended way is from the SDK's api.

Thanks MT_dialog