Problem with advertisement filtering policy

Learn MoreFAQsTutorials

9 posts / 0 new
Last post
hamiddhosseini
Offline
Last seen:2 months 3 weeks ago
Joined:2020-05-12 12:04
Problem with advertisement filtering policy

Hello there,

I'm trying to implement a system in which only the whitelisted devices are allowed to scan but every device is allowed to send a connectino request.

As I've checked theadv_filt_policyinuser_config.hthere is such an option for the filtering policy. However, when I set this option, I'm not able to see my device and send a connection request. Could you please give me some instructions about how can I fix this issue and implement such an idea?

My goal is to indicate when a whitelisted device has sent a scan request.

Currently, I've based my work onble_app_securityexample of the sdk andscan_request_trackerexample.

Regards,

Hamid

Device:
PM_Dialog
Offline
Last seen:2 days 7 hours ago
Staff
Joined:2018-02-08 11:03
Hi hamiddhosseini,

Hi hamiddhosseini,

What is the SDK version that you are using? The WhiteListing has been added in the latest SDK release (version 6.0.14.1114). Please see app_easy_manage_wlist() API in the app_easy_whitelist.c.

Could you please indicate if you are using that API?

Thanks, PM_Dialog

hamiddhosseini
Offline
Last seen:2 months 3 weeks ago
Joined:2020-05-12 12:04
I'm using SDK 6.0.14 and I

I'm using SDK 6.0.14 and I have theapp_easy_manage_wlist()API.

However, I should be able to send a connection request to the device, regardless of the whitelist since advertisement filtering policy is set toADV_ALLOW_SCN_WLST_CON_ANY.Right now, I cannot send neither scan request nor connection request.

Furthermore, I have the following questions:

1- Isn't the device automatically added to the whitelist after pariring?

2- If it's not automatic, I should add the device to the whitelist after a successful pairing. Then later on I have to check if the device exists in the whitelist. However, whitelist operations do not include a search method. Therefore, How can I conduct a search in the whitelist?

Best regards,

Hamid

PM_Dialog
Offline
Last seen:2 days 7 hours ago
Staff
Joined:2018-02-08 11:03
Hi Hamid,

Hi Hamid,

When the app_easy_manage_wlist() is called, the device BD address is stored in the gap_ral_dev_info structure. Could you please share how you are using the app_easy_manage_wlist() API? Are you using any of the SDK examples?

Thanks, PM_Dialog

hamiddhosseini
Offline
Last seen:2 months 3 weeks ago
Joined:2020-05-12 12:04
Hello there,

Hello there,

As it was mentioned before, I'm using ble_app_security example of the SDK and I've added the scan_request_track to it. These examples work together just fine and I can see the address of the devices who have sent a scan request.

At this point I want to trigger an event in case of a scan request from a white listed device. That being said, I have two options:

1- Change the adv_filt_policy to ADV_ALLOW_SCAN_WLST_CON_ANY; which should automatically stop non-whitelisted devices from sending scan requests. However, this change causes the device to stop advertising completely. It does not crash but there is no advertisement packets.

2- My second option is to allow every device to send a scan request and in the scan_request_cb, search for the devices in the whitelist. However, app_easy_manage_wlist() does not have any command for searching the whitelist and therefore I'm currently not using it.

PM_Dialog
Offline
Last seen:2 days 7 hours ago
Staff
Joined:2018-02-08 11:03
Hi Hamid,

Hi Hamid,

Could you please let me know if this question is related with this one?

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/verifying-scaners-identity

Thanks, PM_Dialog

hamiddhosseini
Offline
Last seen:2 months 3 weeks ago
Joined:2020-05-12 12:04
是的,我们的想法是相同的。

是的,我们的想法是相同的。我在讨论the first option, but since it seemed impossible, I started to implemetn the second option and I felt I need to start a new topic for that.

PM_Dialog
Offline
Last seen:2 days 7 hours ago
Staff
Joined:2018-02-08 11:03
Hi Hamid,

Hi Hamid,

Thanks for the clarification. So, let’s discuss this in your other forum ticket..

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/problem-advertisement-filtering-policy

Thanks, PM_Dialog

hamiddhosseini
Offline
Last seen:2 months 3 weeks ago
Joined:2020-05-12 12:04
OK

OK