How get the RF center frequency in Zephyr

1. in the file "Core_v5.2.pdf"

"The LE system operates in the 2.4 GHz ISM band at 2400-2483.5 MHz. The

LE system uses 40 RF channels. These RF channels have center frequencies

2402 + k * 2 MHz, where k = 0, ..., 39."

2. in the file "hci.c", in zephyr

Question: How can I get the 'AuxPtr chan_idx', in period adv? It seems not in "struct bt_le_scan_recv_info *info",not in"struct bt_le_per_adv_sync_recv_info *info",not in "struct bt_le_per_adv_sync *sync".

thks.

 

Parents Reply Children
  • Hello,

    Unfortunately, it looks like it isn't possible to extract the channel from an advertising report event. That information is not passed on from the Softdevice Controller. I am not familiar with the details of AoA, but seeing as this is working for others, are you sure that you really need to know the frequency of the channel being used? 

    I understand that the time difference between the samples on different antennas are dependent on the channel being used, but seeing as the difference between the advertising channels are 80 MHz on a 2.4 GHz frequency band. So if you assume a frequency of 2440 (middle channel) you will only be 40/4240 = 0,016 ( = 1.6%) offset. I think that is well within the accuracy of AoA itself (but I don't remember the accuracy from the specification right now). 

    Please prove me wrong, but I am trying to understand how other have done this, when the channel number isn't available from the softdevice controller. Currently, my conclusion is that it really doesn't matter, within the accuracy of the AoA specification.

    Best regards,

    Edvin

Related