AoA anntenna switch 'ant_patterns[]' CAN NOT work well?

software: ncs v1.8.0

hardware: my test nrf52833 board, with 9 antennas.

I do experiment like this:

aoa rx:  in "nrf52833dk_nrf52833.overlay" file, I set  "dfe-antenna-num = <16>;" and "dfe-pdu-antenna = <0xB>;"

             in "main.c" file, I set "const static uint8_t ant_patterns[] = {0x0B, 0x04, 0x0C, 0x04, 0x0E, 0x04, 0x00, 0x04, 0x02, 0x04, 0x07, 0x04, 0x08, 0x04, 0x0A, 0x04};"

QUESTION:

when I run the code, the callback function 'recv_cb' can been executed, but callback function 'cte_recv_cb' CAN NOT been executed, so I can not get IQ samples data. BUT, I used 'dfe-antenna-num = <12>'; is ok also. then 'dfe-antenna-num = <13>'/<14>/<15>/<16>;are not ok. why like this?

thks.

 

  • Hi

    Have you checked out the ReadMe.rst of the Direction Finding connectionless locator sample? There is a section there explaining in detail how to do antenna matrix configuration for AoA mode, and how to set up the Antenna patterns.

    What exactly happens when the callback function "can't be executed" do you get some kind of error code or indication as to what is happening?

    Best regards,

    Simon

  • Hi Sion, thank you.

    1. I checked and can also understand ReadMe.rs. It says we can use 16 antennas(0~15).

    2. "can't be executed", it means that, function can not been called auto, and there is no errors, the code can run, such as 'recv_cb', I can get CTE data, 'scan_recv', I can scan other tags. Only can not get IQ samples.

    thks again.

  • Hi

    Okay, so you receive data from the beacon as expected, but you're not able to see IQ samples epecifically? Do you see the "CTE ... samples count, cte type, slot durations printed by cte_recv_cb function on the central side? If so, this is a report that the IQ samples have been received. However, our application does not handle the received sample data for you, and you will need to convert the received data into a vector in order to review it. You can check out this page for information on the formulas used to translate between polar and rectangular form. Unfortunately this is not something we provide for you.

    Best regards,

    Simon

  • 1."but you're not able to see IQ samples epecifically?",  I can not see IQ samples.

    2."cte_recv_cb function on the central side?" , I can not see message output.

    3. I understand how to calculate IQ, yeah. algorithm is simulated already.

    4. I will create a  new project to test 16 antennas.

  • Hi again

    Thank you for clarifying. 

    Can you show me the log from the locator device so I can get a look at what data you actually receive?

    Best regards,

    Simon

Related