Using nrf5340dk with the nrf21540 EK

Hey I have a question regarding the setup described in the title. I have an application built upon the "Throughput Sample" of Nordic Semiconductor. To get a farther Distance, the Receiver gets an nrf21540 EK, connected via the Arduino Headers and a SMA cable. Now I added the Shield via Extra C-Make option in The VS Code Extension:

-DSHIELD=nrf21540ek and
-Dhci_ipc_SHIELD=nrf21540ek

However, this is the only thing I did so far. The resources online are diverse and I don't know where to start. Can i just plug it in now and it automatically
works? Do i need to change something in my code for it to work?
I use the 2.6.0 SDK in Visual Studio Code

An answer would help a lot! Thanks!
Parents Reply Children
  • Sorry, it still isn't quite clear to me how to calibrate it as it does not make sense to me how to apply it. I want to have the FEM provide a 13dbm output power for Bluetooth LE. Can I just set the CONFIG_BT_CTLR_TX_PWR_ANTENNA to 13, and the CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB to 20 as default? Will that ensure me the desired output? All these different Config variables seem conflicting to me, I apologise that i have to ask again.

    I don't need to change the output power dynamically, I only want to set it once statically.

    Regarding the antenna diversity: As i Understand, this is only for 802.15.4? This won't work for Bluetooth LE right?

    Thanks and again sorry for the many questions

  • I agree that it can be confusing what configuration settings to use with the FEM. I don't think you need to change the factory calibration, I just wanted to mention it is an option. 

    Sorry, it still isn't quite clear to me how to calibrate it as it does not make sense to me how to apply it. I want to have the FEM provide a 13dbm output power for Bluetooth LE. Can I just set the CONFIG_BT_CTLR_TX_PWR_ANTENNA to 13, and the CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB to 20 as default? Will that ensure me the desired output?

    Yes, the RADIO.TXPOWER register will then be set to -7 to acheive the desired output. Note that +10 dBm is the max. output power permitted for BLE in Europe.

    Regarding the antenna diversity: As i Understand, this is only for 802.15.4? This won't work for Bluetooth LE right?

    Correct. Antenna diversity isn't that useful for BLE due to channel hopping and short preamble. I haven't seen anyone using it with BLE.

Related