CoreHW ANT3 2x2 Antenna Array

Hi, we have project AoA direction finding. Firstly we have nrf5340 dk kits. Also CoreHW ANT3 2x2 matrix antenna kit. I run the direction finding connectionless demo on nrf5340-dk. I did some changes on code. 

static const uint8_t ant_patterns[] = {0x0, 0x4, 0xA, 0xE}; -> this new array of the antenna matrix.
dfe-antenna-num = <4>; -> number of antenna.
and lastly I added this code into the cte_recv_cv function.
    for (int i = 0; i < report->sample_count; i++) {
            if (report->sample_type == BT_DF_IQ_SAMPLE_8_BITS_INT) {
                printf("IQ sample %d: I = %d, Q = %d, channel index = %d\n", i, report->sample[i].i, report->sample[i].q, my->ant_ids);
            }
    }
My serial output like this...
Q1: Am i configured right? Anything else for my antenna array.
Q2: I'm not sure this is normal  IQ datas. So I want know which pins active while scanning. For example 
CTE[0]: samples count 45, cte type AOA, slot durations: 2 [us], packet status CRC OK, RSSI -630, "first switch pin active".
I found some pins description in "radio_df.c" file but i couldnt access the pins. Do you help me how can i overcome this problem.
Q3: While i trying something on visual devicetree editor the screen shown below opened. But this were not on purpose so how can i access again this menu.
 
And my setup below 
Parents
  • Hi

    First off, from the image of your antenna it seems like you have soldered the antenna directly onto the PCB trace antenna of the nRF5340 DK. This is very likely to cause noise and it should only be connected from the J1 connector to the antenna array you're using. 

    1. From the snippet you have shared that seems correct, but I can't guarantee it's okay since I don't know what else you might have done in your project.

    2. I think this is raw IQ data which must be converted into vector form to be reviewed properly. We don't have have any specific sample code showing this, but you can check out this page for information on the various formulas used to translate IQ data between polar and rectangular form.

    3. So, when opening the nRF DeviceTree visual editor, you can go down to the NODES section an press the soc, that will open a visual representation of the nRF52833 SoC with a window for configuring the Direction Finding switching pattern and number of antennas. It will represent the values given in the nrf52833dk_nrf52833.overlay file here:

    &radio {
    	status = "okay";
    	/* This is a number of antennas that are available on antenna matrix
    	 * designed by Nordic. For more information see README.rst.
    	 */
    	dfe-antenna-num = <12>;
    	/* This is a setting that enables antenna 12 (in antenna matrix designed
    	 * by Nordic) for Rx PDU. For more information see README.rst.
    	 */
    	dfe-pdu-antenna = <0x0>;
    

    Best regards,

    Simon

Reply
  • Hi

    First off, from the image of your antenna it seems like you have soldered the antenna directly onto the PCB trace antenna of the nRF5340 DK. This is very likely to cause noise and it should only be connected from the J1 connector to the antenna array you're using. 

    1. From the snippet you have shared that seems correct, but I can't guarantee it's okay since I don't know what else you might have done in your project.

    2. I think this is raw IQ data which must be converted into vector form to be reviewed properly. We don't have have any specific sample code showing this, but you can check out this page for information on the various formulas used to translate IQ data between polar and rectangular form.

    3. So, when opening the nRF DeviceTree visual editor, you can go down to the NODES section an press the soc, that will open a visual representation of the nRF52833 SoC with a window for configuring the Direction Finding switching pattern and number of antennas. It will represent the values given in the nrf52833dk_nrf52833.overlay file here:

    &radio {
    	status = "okay";
    	/* This is a number of antennas that are available on antenna matrix
    	 * designed by Nordic. For more information see README.rst.
    	 */
    	dfe-antenna-num = <12>;
    	/* This is a setting that enables antenna 12 (in antenna matrix designed
    	 * by Nordic) for Rx PDU. For more information see README.rst.
    	 */
    	dfe-pdu-antenna = <0x0>;
    

    Best regards,

    Simon

Children
Related