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!
Is it Not possible to read the Register for the Synthesizer frequency?
Is it Not possible to read the Register for the Synthesizer frequency?
no it is not. You have no idea when you receive the report whether the stack has moved on to an entire different channel. If the channel isn't supplied in the event, you can't know what it was.
Why do you need to know?
Even if BLE_GAP_EVT_REPORT is the official way of "reading " the advertisements you can read them immediatly (at least it is possible for the Chip im currently using (Different Manufacturer)). What I ned to know is the frequency a SCAN_REQ has been sent on. So i would have enough time ~300us to read the Register value
you can't guarantee that. You could end up processing the event ages after it occurred.
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.