when use the DF of central and peripheral,i don't use the antenna array,but i set,there is no out put,what is this problem?

I use the zephyr version 3.0.9 for DF.i use the both boards nrf52833dk.i set the antenna array including antenna_num,antenna_patterns,and antenna_ref(pdu_antenna).

both file example are here.one is C:\Users\Administrator\zephyrproject\zephyr\samples\bluetooth\direction_finding_peripheral.another is C:\Users\Administrator\zephyrproject\zephyr\samples\bluetooth\direction_finding_central

the next is my confuguration.Firstly,i chnage the nrf52833dk_nrf52833 .overlay file in central.The antenna numbers is 16.

/*
 * Copyright (c) 2022 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */

&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>;*/
	dfe-antenna-num = <16>;
	/* 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>;*/
 	dfe-pdu-antenna = <0x0>;

	/* These are GPIO pin numbers that are provided to
	 * Radio peripheral. The pins will be acquired by Radio to
	 * drive antenna switching when AoA is enabled.
	 * Pin numbers are selected to drive switches on antenna matrix
	 * designed by Nordic. For more information see README.rst.
	 */
	dfegpio0-gpios = <&gpio0 3 0>;
	dfegpio1-gpios = <&gpio0 4 0>;
	dfegpio2-gpios = <&gpio0 28 0>;
	dfegpio3-gpios = <&gpio0 29 0>;
};

them i chnage the antenna_partterns in main.c file.

#if defined(CONFIG_BT_DF_CTE_RX_AOA)
/*切换顺序,1,2,3,4,5,6,7,8,9,10,11,12    12根天线  */
/*static const uint8_t ant_patterns[] = { 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA };*/
/*切换顺序,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16    16根天线  */
static const uint8_t ant_patterns[] = { 0x0, 0x8, 0x4, 0xC, 0x2, 0xA, 0x6, 0xE,
			           0x1, 0x9, 0x5, 0xD, 0x3, 0xB, 0x7, 0xF };
#endif /* CONFIG_BT_DF_CTE_RX_AOA */

i also use the jlink_RTT for debug.

so i add the cofiguration in prg.conf file.

#RTT log
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n

Then there are cnetral and peripheral output.

Central ie here.

00> [DEVICE]: 2E:94:E2:6F:B0:09 (random), AD evt type 3, Tx Pwr: 127, RSSI -63  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> --- 12 messages dropped ---
00> [DEVICE]: 70:7F:98:CA:58:AC (random), AD evt type 3, Tx Pwr: 127, RSSI -57  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 7C:1A:F7:A7:12:0F (random), AD evt type 0, Tx Pwr: 127, RSSI -70  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 7C:1A:F7:A7:12:0F (random), AD evt type 4, Tx Pwr: 127, RSSI -69  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 07:70:87:63:82:1E (random), AD evt type 3, Tx Pwr: 127, RSSI -67  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: CB:54:B9:46:AC:76 (random), AD evt type 3, Tx Pwr: 127, RSSI -82  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> 5
00> 
00> [DEVICE]: 4F:A8:BD:F9:59:50 (random), AD evt type 4, Tx Pwr: 127, RSSI -53  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> --- 22 messages dropped ---
00> [DEVICE]: 3A:22:E2:FF:55:2F (public), AD evt type 4, Tx Pwr: 127, RSSI -76  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 2A:DC:47:B4:68:5E (random), AD evt type 3, Tx Pwr: 127, RSSI -62  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 34:5C:9E:BA:11:A1 (random), AD evt type 3, Tx Pwr: 127, RSSI -57  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 20:97:88:23:62:86 (random), AD evt type 3, Tx Pwr: 127, RSSI -88  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 2E:94:E2:6F:B0:09 (random), AD evt type 3, Tx Pwr: 127, RSSI -63  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 6E:2A:15:B7:E6:1A (random), AD evt type 0, Tx Pwr: 127, RSSI -60  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 6E:2A:15:B7:E6:1A (random), AD evt type 4, Tx Pwr: 127, RSSI -60  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Se5
00> 
00> [DEVICE]: E6:BA:B9:9D:37:78 (random), AD evt type 3, Tx Pwr: 127, RSSI -57  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> --- 13 messages dropped ---
00> [DEVICE]: 2A:DC:47:B4:68:5E (random), AD evt type 3, Tx Pwr: 127, RSSI -47  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: CB:54:B9:46:AC:76 (random), AD evt type 3, Tx Pwr: 127, RSSI -86  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 4F:A8:BD:F9:59:50 (random), AD evt type 0, Tx Pwr: 127, RSSI -60  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 4F:A8:BD:F9:59:50 (random), AD evt type 4, Tx Pwr: 127, RSSI -60  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 34:5C:9E:BA:11:A1 (random), AD evt type 3, Tx Pwr: 127, RSSI -58  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 7A:39:27:1B:CD:AB (random), AD evt type 0, Tx Pwr: 127, RSSI -78  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 51:DA:[DEVICE]: 07:70:87:63:82:1E (random), AD evt type 3, Tx Pwr: 127, RSSI -59  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> --- 9 messages dropped ---
00> [DEVICE]: E6:BA:B9:9D:37:78 (random), AD evt type 3, Tx Pwr: 127, RSSI -57  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000[DEVICE]: 1B:96:2D:AC:6B:19 (random), AD evt type 3, Tx Pwr: 127, RSSI -53  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> --- 10 messages dropped ---
00> [DEVICE]: FA:0D:AC:D8:7B:0D (public), AD evt type 0, Tx Pwr: 127, RSSI -86  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000[DEVICE]: 14:15:D3:3D:3E:52 (random), AD evt type 3, Tx Pwr: 127, RSSI -78  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> --- 12 messages dropped ---
00> [DEVICE]: 1B:96:2D:AC:6B:19 (random), AD evt type 3, Tx Pwr: 127, RSSI -55  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: E7:D0:A9:51:8B:6A (random), AD evt type 3, Tx Pwr: 127, RSSI -91  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: DE:86:9B:6D:43:F0 (random), AD evt type 0, Tx Pwr: 127, RSSI -35  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: DE:86:9B:6D:43:F0 (random), AD evt type 4, Tx Pwr: 127, RSSI -35 DF Conn App C:1 S:1 D[DEVICE]: DE:86:9B:6D:43:F0 (random), AD evt type 0, Tx Pwr: 127, RSSI -34  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> --- 15 messages dropped ---
00> [DEVICE]: DE:86:9B:6D:43:F0 (random), AD evt type 4, Tx Pwr: 127, RSSI -34 DF Conn App C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: E6:BA:B9:9D:37:78 (random), AD evt type 3, Tx Pwr: 127, RSSI -57  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: FA:0D:AC:D8:7B:0D (public), AD evt type 4, Tx Pwr: 127, RSSI -87  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: D4:73:12:3A:9E:8E (random), AD evt type 0, Tx Pwr: 127, RSSI -61  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 1B:96:2D:AC:6B:19 (random), AD evt type 3, Tx Pwr: 127, RSSI -57  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 2A:DC:47:B4:68:5E (random), AD evt type 3, Tx Pwr: 127, RSSI -61  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 34:5C:9E:BA:11:A1 (random), AD evt type 3, Tx Pwr: 127, RSSI -54  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, [DEVICE]: 6E:2A:15:B7:E6:1A (random), AD evt type 4, Tx Pwr: 127, RSSI -54  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> --- 7 messages dropped ---
00> [DEVICE]: 07:70:87:63:82:1E (random), AD evt type 3, Tx Pwr: 127, RSSI -66  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: FA:0D:AC:D8:7B:0D (public), AD evt type 4, Tx Pwr: 127, RSSI -85  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 2E:94:E2:6F:B0:09 (random), AD evt type 3, Tx Pwr: 127, RSSI -70  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 7C:1A:F7:A7:12:0F (random), AD evt type 0, Tx Pwr: 127, RSSI -74  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 7C:1A:F7:A7:12:0F (random), AD evt type 4, Tx Pwr: 127, RSSI -73  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> 5
00> 
00> [DEVICE]: 3A:22:E2:FF:55:2F (public), AD evt type 0, Tx Pwr: 127, RSSI -79  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: DE:86:9B:6D:43:F0 (random), AD evt type 0, Tx Pwr: 127, RSSI -38  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> --- 7 messages dropped ---
00> [DEVICE]: DE:86:9B:6D:43:F0 (random), AD evt type 4, Tx Pwr: 127, RSSI -37 DF Conn App C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 51:DA:93:DC:BC:1F (random), AD evt type 3, Tx Pwr: 127, RSSI -57  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 1B:96:2D:AC:6B:19 (random), AD evt type 3, Tx Pwr: 127, RSSI -56  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 70:7F:98:CA:58:AC (random), AD evt type 3, Tx Pwr: 127, RSSI -54  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: FA:0D:AC:D8:7B:0D (public), AD evt type 0, Tx Pwr: 127, RSSI -82  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 6E:2A:15:B7:E6:1A (random), AD evt type 0, Tx Pwr: 127, RSSI -56  C:1 5
00> 
00> [DEVICE]: 6E:2A:15:B7:E6:1A (random), AD evt type 4, Tx Pwr: 127, RSSI -56  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 07:70:87:63:82:1E (random), AD evt type 3, Tx Pwr: 127, RSSI -53  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: DE:86:9B:6D:43:F0 (random), AD evt type 4, Tx Pwr: 127, RSSI -35 DF Conn App C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> --- 15 messages dropped ---
00> [DEVICE]: CB:54:B9:46:AC:76 (random), AD evt type 3, Tx Pwr: 127, RSSI -70  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 2D:D1:CF:4F:44:22 (random), AD evt type 3, Tx Pwr: 127, RSSI -86  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 51:DA:93:DC:BC:1F (random), AD evt type 3, Tx Pwr: 127, RSSI -54  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 1B:96:2D:AC:6B:19 (random), AD evt type 3, Tx Pwr: 127, RSSI -57  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
00> 
00> [DEVICE]: 7A:39:27:1B:CD:AB (random), AD evt type 0, Tx Pwr: 127, RSSI -89  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000
(Connection lost)

Peripheral is here.

00> *** Booting Zephyr OS build zephyr-v3.0.0-2055-g736520a4fef6  ***
00> 
00> [    0.383178] <inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)
00> [    0.383178] <inf> bt_hci_core: HW Variant: nRF52x (0x0002)
00> [    0.383209] <inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 3.0 Build 99
00> [    0.383972] <inf> bt_hci_core: Identity: DE:86:9B:6D:43:F0 (random)
00> [    0.383972] <inf> bt_hci_core: HCI: version 5.3 (0x0c) revision 0x0000, manufacturer 0x05f1
00> [    0.384002] <inf> bt_hci_core: LMP: version 5.3 (0x0c) subver 0xffff
00> Bluetooth initialized
00> 
00> Advertising successfully started
00> 

The four gpio are always zero by Logical Anylazey.

what is thia problem?

Parents
  • In general see:
    https://devzone.nordicsemi.com/f/nordic-q-a/79814/aoa-aod-using-nrf52833/330276#330276 

    In specific on how to control the gpios used for antenna array:
    https://devzone.nordicsemi.com/f/nordic-q-a/83857/ncs-1-8-direction_finding_connectionless_rx-aoa-can-t-work/348715#348715 

    My suggestion is to build the Direction finding connectionless locator as-is without any modifications first to ensure that gpios toggle as expected, after this you can start to do modifications one by one.

    Kenneth

  • ok,i try as you suggest.In the default setsetting,i can get the iq sample form my Tx.i only change the configuration about the antenna array.The antenna _num and antenna_partterns,because i use 16 antenna array.

    i only chnage the overlay file in nrf52833dk_nrf52833.overlay and change some configuration in main.c file.

    The overlay file have been changed as follow.

    /*
     * Copyright (c) 2022 Nordic Semiconductor ASA
     *
     * SPDX-License-Identifier: Apache-2.0
     */
    
    &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>;*/
    	dfe-antenna-num = <16>;
    	/* 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>;*/
     	dfe-pdu-antenna = <0x0>;
    
    	/* These are GPIO pin numbers that are provided to
    	 * Radio peripheral. The pins will be acquired by Radio to
    	 * drive antenna switching when AoA is enabled.
    	 * Pin numbers are selected to drive switches on antenna matrix
    	 * designed by Nordic. For more information see README.rst.
    	 */
    	dfegpio0-gpios = <&gpio0 3 0>;
    	dfegpio1-gpios = <&gpio0 4 0>;
    	dfegpio2-gpios = <&gpio0 28 0>;
    	dfegpio3-gpios = <&gpio0 29 0>;
    };

    The main.c file have been changed as here.

    #if defined(CONFIG_BT_DF_CTE_RX_AOA)
    /*切换顺序,1,2,3,4,5,6,7,8,9,10,11,12    12根天线  */
    /*static const uint8_t ant_patterns[] = { 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA };*/
    /*切换顺序,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16    16根天线  */
    static const uint8_t ant_patterns[] = { 0x0, 0x8, 0x4, 0xC, 0x2, 0xA, 0x6, 0xE,
    			           0x1, 0x9, 0x5, 0xD, 0x3, 0xB, 0x7, 0xF };
    #endif /* CONFIG_BT_DF_CTE_RX_AOA */

    but this problem i also meet in connection.so i think it is design problem.

    because it can't more than 16 antennae,so i do some test about both design.

    another problem in connectionless have err code -22.The link is here.

    i wait for your solution abot this,because i can get what this problem is.Thanks for your reply.

Reply
  • ok,i try as you suggest.In the default setsetting,i can get the iq sample form my Tx.i only change the configuration about the antenna array.The antenna _num and antenna_partterns,because i use 16 antenna array.

    i only chnage the overlay file in nrf52833dk_nrf52833.overlay and change some configuration in main.c file.

    The overlay file have been changed as follow.

    /*
     * Copyright (c) 2022 Nordic Semiconductor ASA
     *
     * SPDX-License-Identifier: Apache-2.0
     */
    
    &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>;*/
    	dfe-antenna-num = <16>;
    	/* 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>;*/
     	dfe-pdu-antenna = <0x0>;
    
    	/* These are GPIO pin numbers that are provided to
    	 * Radio peripheral. The pins will be acquired by Radio to
    	 * drive antenna switching when AoA is enabled.
    	 * Pin numbers are selected to drive switches on antenna matrix
    	 * designed by Nordic. For more information see README.rst.
    	 */
    	dfegpio0-gpios = <&gpio0 3 0>;
    	dfegpio1-gpios = <&gpio0 4 0>;
    	dfegpio2-gpios = <&gpio0 28 0>;
    	dfegpio3-gpios = <&gpio0 29 0>;
    };

    The main.c file have been changed as here.

    #if defined(CONFIG_BT_DF_CTE_RX_AOA)
    /*切换顺序,1,2,3,4,5,6,7,8,9,10,11,12    12根天线  */
    /*static const uint8_t ant_patterns[] = { 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA };*/
    /*切换顺序,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16    16根天线  */
    static const uint8_t ant_patterns[] = { 0x0, 0x8, 0x4, 0xC, 0x2, 0xA, 0x6, 0xE,
    			           0x1, 0x9, 0x5, 0xD, 0x3, 0xB, 0x7, 0xF };
    #endif /* CONFIG_BT_DF_CTE_RX_AOA */

    but this problem i also meet in connection.so i think it is design problem.

    because it can't more than 16 antennae,so i do some test about both design.

    another problem in connectionless have err code -22.The link is here.

    i wait for your solution abot this,because i can get what this problem is.Thanks for your reply.

Children
No Data
Related