This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to find if any Central Device is listening to Advertising data ?

Hi,

I wanted to know How can I find if any application on any platform(Central device)is listening to my advertising packet or not !! The whole idea behind this is to find if there is any Central device is in the range of my beacon or not ?? and increase the advertisement interval if no body is listening to save the power.... vice versa reduce the advertisement interval if someone is listening....

Can anyone help me with that ??

I would be more than thankful...

Parents
  • Thank you very much...

    But I found that with setting scan_req_report option at enabling BLE , I can atleast receive BLE_GAP_SCAN_REQ_REPORT whenever any central device tries to find BLE peripherals in the range....That should do what I am looking for....

    accoding to following link devzone.nordicsemi.com/.../

    I tried it and It looks working but only problem is peer address found in the received scan Request report and Scanning device`s bluetooth address do not match.....

    Please help me with this...

    And explain me if I am wrong...

Reply
  • Thank you very much...

    But I found that with setting scan_req_report option at enabling BLE , I can atleast receive BLE_GAP_SCAN_REQ_REPORT whenever any central device tries to find BLE peripherals in the range....That should do what I am looking for....

    accoding to following link devzone.nordicsemi.com/.../

    I tried it and It looks working but only problem is peer address found in the received scan Request report and Scanning device`s bluetooth address do not match.....

    Please help me with this...

    And explain me if I am wrong...

Children
  • Well what you see are only active scanning packets while there can be (and probably are) many devices which just listen (so "whenever any central device tries to find BLE peripherals..." isn't true, it's rather "whenever some device actively requests additional advertising information from particular BLE peripheral"). From the poor description of failure I guess you expect to see MAC address or your "known" central but incoming SCAN_REQ packet is from another device. If you want to continue in this "blind" testing then either isolate your two devices (in some kind of Faraday cage or distant area with no BLE active devices) or change accept the fact that there will be such events from multiple devices and wait for your favorite peer.

Related