⚠️ 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.
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.
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.
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.
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:
In user_callback_config.h :
Thanks, PM_Dialog
I want to receive the scan response package. not the advertising report
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