I am interested in the nRF52840 chip. Is it possible to get the channel number / frequency, on which an advertisement has been received.
best regards!
I am interested in the nRF52840 chip. Is it possible to get the channel number / frequency, on which an advertisement has been received.
best regards!
RK is right, unless Nordic add it into their event structure in some future SD release it's very unreliable reading it from registers directly. But you have other options as usually: don't use Nordic stack and write your won or go with some licensed/open source stack which either has it already or allows you to customize it easily.
The Nordicsemi Mesh SDK which implements a passive scanner using the Timeslot API will deliver the RSSI and channel number for the advertisements that are received. The Mesh SDK is available as source code.
@David Edwin: Would it be possible to configure that as an active scanner?
You will need to write the code in the Mesh SDK to do that at the bearer level, i.e. send the SCAN_REQ and get the SCAN_RSP to make it an active scanner. It is however possible if you have the understanding of the hardware RADIO peripheral and an understanding of the TimeSlot API.
You would extend the existing scanner and also use the existing broadcaster as a reference for the RADIO and Timeslot code.
Edit: You can remove most of the Mesh code base as the bearer part is fairly small. The softdevice and SDK examples can be used side by side to the active scanner.
Thanks for your quick response. So it will be more work than planned. But at least I know it's possible. Thanks again!