Event handler for scan request

8 posts / 0 new
Last post
oren
Offline
Last seen:1 year 7 months ago
Expert
加入:2014-06-28 22:03
Event handler for scan request

Hi all,
The GAPM_START_ADVERTISE_CMD allows to set the scan-response data that will be broadcasted whenever the chip (peripheral) receives a scan-request packet.
Is it possible to set a handler that will be called whenever the chip receives a scan-request packet?
I don't need that the handler will be called immediately. I just want to know if any central device broadcasted a scan-request packet to the chip.

A flag will also be good, i.e. periodically check (every X seconds) some memory address that changes whenever a scan-request packet is received.

Thanks

JE_Dialog
Offline
Last seen:1 month 1 week ago
Staff
加入:2013-12-05 14:02
Hello Oren, we are looking

Hello Oren, we are looking into this requirement. There are a coulpe of other customer with similar request and we will look at this shortly.

BR JE_Dialog

Yamazaki
Offline
Last seen:4 years 7 months ago
加入:2014-01-08 06:00
嗨对话框支持团队,

嗨对话框支持团队,

We will use a scan response as a receive data from central.
Could you find this answer?

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi Yamazaki,

Hi Yamazaki,

I dont get the question to be honest, you can use the scan response data in order to transfer data from the peripheral to central though, if that is the question.

Thanks MT_dialog

icujba
Offline
Last seen:4 years 5 months ago
加入:2015-05-13 08:04
Hi all,

Hi all,

Is this functionality, event handler on scan request, available now ?

Thanks

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi icujba,

Hi icujba,

The same handler in the central that handles your advertising data, handles the scan response data as well. You should get your scan response data in the user_on_adv_report_ind() handler function right after you get your advertising data.

Thanks MT_dialog

icujba
Offline
Last seen:4 years 5 months ago
加入:2015-05-13 08:04
Hi,

Hi,

The question, present in the initial post of this thread as well, is about whether there is a handler/event on the broadcaster/peripheral side for when a scan request(not response) packet is received.

"The GAPM_START_ADVERTISE_CMD allows to set the scan-response data that will be broadcasted whenever the chip (peripheral) receives a scan-request packet.
Is it possible to set a handler that will be called whenever the chip receives a scan-request packet?"

Thanks

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi icujba,

Hi icujba,

Sorry, misunderstood the question, no such handler is not available.

Thanks MT_dialog