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
  • Hi Pooneh

    Did you change the dfe-antenna-num to match the number of antennas you'd like to use, as this is the number of antennas you want to use. dfe-pdu-antenna sets what antenna you want to be the default used for PDU transmissions. 

    These mBluetooth.h and gBluetooth.c does not seem to be part of the nRF Connect SDK at all, have you added these yourself or are you using a version of Zephyr outside of the nRF Connect SDK?

    Can you upload the log where this "too many arguments" message is returned as well so we can get a better idea of what's happening?

    Best regards,

    Simon

Reply
  • Hi Pooneh

    Did you change the dfe-antenna-num to match the number of antennas you'd like to use, as this is the number of antennas you want to use. dfe-pdu-antenna sets what antenna you want to be the default used for PDU transmissions. 

    These mBluetooth.h and gBluetooth.c does not seem to be part of the nRF Connect SDK at all, have you added these yourself or are you using a version of Zephyr outside of the nRF Connect SDK?

    Can you upload the log where this "too many arguments" message is returned as well so we can get a better idea of what's happening?

    Best regards,

    Simon

Children
  • I added these two files myself. It's a compatible Zephyr version, but I'm only using the necessary parts for my application from the SDK. So, I'm combining several codes with each other. (That's why I have Bluetooth.h)

    I'm working directly with Zephyr, and I'm sending a command through the shell to specify the antenna pattern. Here is the code screenshot: (Is there a limit on the number of arguments with Zephyr?) 

    Here is the problem. I try to connect to the serial port, and I'm sending this command to change the antenna pattern, but I receive the following message. (40, 41, ... are the gpios for the antennas) 

    Can it be a limit to the length of command in the terminal? I'm using minicom to connect to the port. 

  • Hi Simon is OoO until Monday and he is a right person to answer you. It would be great if you can wait until Monday. Thanks a lot for your patience so far.

Related