Antenna pattern AoD

I'm using nRF5340 DK for BLE, AoD (Connection). I am also using the TX example from nordic. I can add extra antennas to the ant_patterns[] (up to 17), with no errors. I also changed #define BLE_ANT_PATTERN to 17. But in reality, while connecting to the chip (through the terminal (Linux)), The maximum number I could change is 10. Is there a pre-defined number somewhere else? 

I also changed CONFIG_BT_CTLR_DF_MAX_ANT_SW_PATTERN_LEN to 17, as you mentioned for nrf52833dk_nrf52833.config for My board (nRF5340) [in the child image).

I am using zephyr and west directly on a Linux VM, without the SDK. When the length is longer than 10, it gives me an error that I'm passing too many arguments. 

Could you pls help me with the error? 

Best, 

Parents
  • Hello,

     

    Thanks for your response. I am using the Zephyer Controller.

     

    I only have one *.overlay file in my child image that is written based on nRF5x SoC . dfe-antenna-num = <4>; in this file. Also in this file, I defined 7 gpios. (dfegpio0-gpios = <&gpio1 1 0>; …). In this file, I also define: dfe-pdu-antenna = <0x40>. That’s all!

    (I am using an antenna array with 4 switches that each of which switches 16 antennae. (64 in total) Separately, they all are functioning well)

    In my mBluetooth.h file (in modules), I have defined the BLE_ANT_PATTERN 17,

    In the gBluetooth.c file (in src), I have: static unit8_t ant_pattern[] = {0x40, …} (I’m using gpio 4)

    Then I build the whole project, with no errors. (build target = nrf5340dk_nrf5340_cpuapp)

    Once I programmed my dev board, I connect to the Port (ttyACM1), to change the antenna pattern, and then, I come across the error that I can not put more than 10 gpios when entering the new pattern. (I am using aod_tx )

     

    Best,

    Pooneh

Reply
  • Hello,

     

    Thanks for your response. I am using the Zephyer Controller.

     

    I only have one *.overlay file in my child image that is written based on nRF5x SoC . dfe-antenna-num = <4>; in this file. Also in this file, I defined 7 gpios. (dfegpio0-gpios = <&gpio1 1 0>; …). In this file, I also define: dfe-pdu-antenna = <0x40>. That’s all!

    (I am using an antenna array with 4 switches that each of which switches 16 antennae. (64 in total) Separately, they all are functioning well)

    In my mBluetooth.h file (in modules), I have defined the BLE_ANT_PATTERN 17,

    In the gBluetooth.c file (in src), I have: static unit8_t ant_pattern[] = {0x40, …} (I’m using gpio 4)

    Then I build the whole project, with no errors. (build target = nrf5340dk_nrf5340_cpuapp)

    Once I programmed my dev board, I connect to the Port (ttyACM1), to change the antenna pattern, and then, I come across the error that I can not put more than 10 gpios when entering the new pattern. (I am using aod_tx )

     

    Best,

    Pooneh

Children
No Data
Related