DA14585 Scan Response API

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
moiify
Offline
Last seen:3 weeks 2 days ago
加入:2020-03-12 07:26
DA14585 Scan Response API

In SDK6.0.12,when the device finish scan , which function would be called to receive the scan response . I just konw the fuctionuser_adv_report_ind() ,to receive the adv package.

Device:
PM_Dialog
Offline
Last seen:1 day 10 hours ago
工作人员
加入:2018-02-08 11:03
Hi moiify,

Hi moiify,

Could you please try to explain little bit what you are trying to accomplish? If I understood correctly, the DA14585 is configures as a Central, and you would like to have an advertising report. Is that correct? If yes, when a GAPM_ADV_REPORT_IND is received, the gapm_adv_report_ind_handler() will be triggered which executes the .app_on_adv_report_ind callback (in user_callback_config.h header file) . This handler has an input parameter the gapm_adv_report_ind structure, which includes the adv_report structure. To do so, if you want to handle the advertising report, you should create a new function namely user_on_adv_report_ind() and register it in the .app_on_adv_report_ind.

In your application:

void user_on_adv_report_ind(struct gapm_adv_report_ind const * param) { /*your implementation here*/ }

In user_callback_config.h :

.app_on_adv_report_ind = user_on_adv_report_ind ;

Thanks, PM_Dialog

moiify
Offline
Last seen:3 weeks 2 days ago
加入:2020-03-12 07:26
I want to receive the scan

I want to receive the scan response package. not the advertising report

PM_Dialog
Offline
Last seen:1 day 10 hours ago
工作人员
加入:2018-02-08 11:03
Hi moiify

Hi moiify

You should receive the scan response data immediately after getting the advertising data. Once the central gets the advertising data and its performing an active scan it will automatically send a scan request and the peripheral is obligated to send the scan response before transmits the next advertising packet on the next channel and before the central scans on the next channel. Are you performing active or passive scanning? If you would like to get the scan response data, you should you perform active scanning.

Thanks, PM_Dialog