GAP advertisement flag

7 posts / 0 new
Last post
apoudret
Offline
Last seen: 2 months 1 week ago
Joined: 2017-09-22 08:33
GAP advertisement flag

Hello,

I have a DA14681 board which is running as a central device and scanning nearby devices.

I receive advertising reports, but it seems that the flags field (LE_LIMITED_DISC_MODE, LE_GENERAL_DISC_MODE, BR_EDR_NOT_SUPPORTED, etc) is missing from the advertising data.

Is there any other way to know the flags field of an advertising report?

Best regards,

Andy

Device: 
PM_Dialog
Offline
Last seen: 4 days 11 hours ago
Staff
Joined: 2018-02-08 11:03
Hi apoudret,

Hi apoudret,

Please check the ble_evt_gap_adv_report_t structure. There is nor any structure member in order to get hat the flags field

Thanks, PM_Dialog

apoudret
Offline
Last seen: 2 months 1 week ago
Joined: 2017-09-22 08:33
Hello,

Hello,

So it is not possible to get this data using the Dialog SDK? Could the flag field be added to the structure in the next version?

Best regards,

Andy

PM_Dialog
Offline
Last seen: 4 days 11 hours ago
Staff
Joined: 2018-02-08 11:03
Hi apoudret,

Hi apoudret,

Let me check if it is possible and I will let you know. I would recommend you to not modify the ble_evt_gap_adv_report_t .

Thanks, PM_Dialog

PM_Dialog
Offline
Last seen: 4 days 11 hours ago
Staff
Joined: 2018-02-08 11:03
Hi apoudret,

Hi apoudret,

You could use the ble_gap_adv_mode_get() function in order to get the discoverability mode used for advertising. This function triggers the  ble_mgr_dev_params_acquire() in order to get the BLE device parameters and the discoverability mode is stored into params->adv_mode. Please check ble_dev_params_t structure.

Thanks, PM_Dialog

apoudret
Offline
Last seen: 2 months 1 week ago
Joined: 2017-09-22 08:33
Hi PM_Dialog,

Hi PM_Dialog,

Thank you, indeed I can get the discoverability mode with this method.

And how can I know the BR/EDR support of the scanned device? (BR_EDR_NOT_SUPPORTED / LE_BR_EDR_CONTROLLER / LE_BR_EDR_HOST flags)

Best regards,

Andy

PM_Dialog
Offline
Last seen: 4 days 11 hours ago
Staff
Joined: 2018-02-08 11:03
Hi apoudret,

Hi apoudret,

If you found the previous answer useful, please mark it as “accepted”. As far as I know you could not get that information on the central’s side. However, let me check it to make sure if it is possible and I will keep you updated on this.

Thanks, PM_Dialog