Callback for Scan_request

⚠️
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.
2 posts / 0 new
Last post
hamiddhosseini
Offline
Last seen:3 months 4 weeks ago
加入:2020-05-12 12:04
Callback for Scan_request

Hello there,

In order to increase the Quality of Service (QoS) while maintaining a low battery consumption, we need to implement some strategies based on the received scan_request. In other words, we need to analyze the request and make some modifications to the current state of the device ( such as the advertising interval). That being said, I wanted to ask whether it's possible to:

1- Check the received Scan_request and generate/modify the callback of this event?
2- Change the advertising packet upon receiving a scan request?

Regards,

Hamid

Device:
PM_Dialog
Offline
Last seen:2 hours 26 min ago
工作人员
加入:2018-02-08 11:03
Hi Hamid,

Hi Hamid,

Thanks for your question. I would recommend checking theDA14585 DA14586 DA14531扫描请求TrackSW example.

This example aims to demonstrate how a peripheral device can track if it is scanned and which central device performs the scanning procedure. The central device needs to scan in active mode since the peripheral device will track if it is scanned via the scan request from central. The scan request is tracked in every BLE END event.

For the initial setup, please read theSoftware Example Setup Using Python Link Scriptdocument.

All our SDK examples don not include the SDK, so you will have to link them with the SDK before using them.

Thanks, PM_Dialog