I am using S120 SoftDevice on PCA10001 board with sdk7. I want to know on which channel i am receiving advertisement packets.
Is there any API on Central/Observer to which channel it receives advertisement packets.
I am using S120 SoftDevice on PCA10001 board with sdk7. I want to know on which channel i am receiving advertisement packets.
Is there any API on Central/Observer to which channel it receives advertisement packets.
Hi,
The SoftDevice will scan all three advertising channels, and there is no API to get the channel where the advertisement packet was received on. The information that the SoftDevice gives you about the packet can be found in ble_gap_evt_adv_report_t.
Hi sara,
It will by default scan on all 3 advertising channels (37, 38, 39). It will change channel each time ll_scan_start()
is called, but you can set it to scan on one specific channel by calling radio_init(channel)
with the channel you want to scan. See line 534 here.
Hi sara,
It will by default scan on all 3 advertising channels (37, 38, 39). It will change channel each time ll_scan_start()
is called, but you can set it to scan on one specific channel by calling radio_init(channel)
with the channel you want to scan. See line 534 here.