nRF21540 antenna diversity for BLE

Hi,

We are working with nRF21540DK and developing a BLE application. nRF21540DK with nRF Connect SDK 2.5.0 . I have couple of questions.

  1. In nRF21540DB product page says "The two antenna ports on the nRF21540 DK are useful for antenna diversity scenarios in 802.15.4 based protocols (i.e. Thread or Zigbee) to reduce multipath propagation effects.". I couldn't see any explanation on the datasheet regarding two antenna and BLE.

    Does BLE protocol use the both antennas?
  2. If BLE doesn't use both antennas, which antenna it use, POUTA or POUTB?
  3. POUTA set to 20dB and POUTB set to 10dB as default. Is there any reason you have selected these values as default? For example why it is not 21db which is the maximum value.
  4. Why you haven't selected 20dB for both antenna? Why the POUTB is exactly the half value of the POUTA ?
  5. In datasheet page 25, CONFREG0 TX_GAIN TX gain control (0: minimum, 31: maximum). What is the unit of this value, obviously it is not dB, because maximum is 21dB. 
  6. What is the minimum and maximum dB value we can set for POUTA and POUTAB individually?

Thanks.

  • Does BLE protocol use the both antennas?

    It can use 


    If BLE doesn't use both antennas, which antenna it use, POUTA or POUTB?

    POUTB and POUTA is not a reference to what physical antenna or RF output is used, so POUTA/POUTB is not the same as ANT1/ANT2. 


    ANT1 and ANT2 is the two physical outputs that will connect to an antenna. It is not any relation between POUTx and ANTx.


    POUTA and POUTB is only for the TX gain selection, either option A = 20dBm or B = 10dBm. The UICR option is for a a custom value of choice. 


    Why you haven't selected 20dB for both antenna? Why the POUTB is exactly the half value of the POUTA ?

    Both the ANT1 and ANT2 port can have any dBm output power. So both can have +20dBm if that is what you want. 



    In datasheet page 25, CONFREG0 TX_GAIN TX gain control (0: minimum, 31: maximum). What is the unit of this value, obviously it is not dB, because maximum is 21dB. 


    https://infocenter.nordicsemi.com/topic/ps_nrf21540/chapters/keyparameters/doc/electrical_specification.html?cp=8_0_0_6_1#unique_1296948405 

    It is a decimal value that  is a ladder with 16 steps and one main range selector, with two options, to get 32 control settings. 


    What is the minimum and maximum dB value we can set for POUTA and POUTAB individually?

    POUTA = 20dBm,
    POUTB = 10dBm,
    The pre-programed TX gain settings are not changeable. 

    ANT1/ANT2 = 21dBm ±1 


    Hope this clears things up for you. 


    Regards,
    Jonathan

  • Thanks for your comments!

    It can use 

    Could you be more specific? How we can use antenna diversity scenario on BLE? Does it a part of configuration of MPSL on SDK 2.5.0? I think the quote from the product page I mentioned above only mentions 802.15.4 based protocols not BLE for a reason. We possibly make a our custom board with nRF52840 and nRF21540 to use with BLE Mesh. I want to understand if we can have any benefit from the 2nd antenna.

     

    POUTA and POUTB is only for the TX gain selection, either option A = 20dBm or B = 10dBm. The UICR option is for a a custom value of choice. 

    Okay either we use POUTA or POUTB. I understood. I thought we can select antenna gain of individual antennas. So when we set POUTA=20dB, does it set both ANT1 and ANT2 TX gains to 20dB? 


    Another question:
    The quote from Using nRF21540 GPIO+SPI built-in power model

    The nRF21540 built-in power model compensates for the following external conditions:

    • Temperature

    • FEM supply voltage

    • Carrier frequency

    • FEM input power.

    Sorry I don't have expertise on radio signals, I couldn't see if antenna have any effects on power model compensation. If we use a custom antenna on our custom board, do we need to create our custom power model or can we use built-in power model directly?

    Thanks, Akif


  • Hi,

    akif said:
    Could you be more specific? How we can use antenna diversity scenario on BLE? Does it a part of configuration of MPSL on SDK 2.5.0? I think the quote from the product page I mentioned above only mentions 802.15.4 based protocols not BLE for a reason. We possibly make a our custom board with nRF52840 and nRF21540 to use with BLE Mesh. I want to understand if we can have any benefit from the 2nd antenna.

    There could be scenarios where using two antennas would be beneficial, but it often just complicates design and introduces extra components. So for BLE, you could have a scenario where you have a directional antenna and a omnidirectional antenna that you can switch between depending on what you want to achieve. So there is not neacsaeraly a dedicated use case for antenna diversity but it does not mean it cant be. It could be used for localization if an antenna array is used. So there are antenna diversity options for BLE as well. But this would have to handled in the application as and not in the softdevice/BLE stack.  So there are better diversity options for other protocols, but it does not mean that it is impossible for some antenna diversity to be used with BLE. 

    If there is not a specific use case or situation in mind for your application then it is likely best to go for one antenna.  Adding more antennas increases the cost and complexity in the physical design but also on the development side. 

    akif said:
    Okay either we use POUTA or POUTB. I understood. I thought we can select antenna gain of individual antennas. So when we set POUTA=20dB, does it set both ANT1 and ANT2 TX gains to 20dB? 

    If you use POUTA  then the output power will be 20dBm with both antenna ports so ANT1 and ANT2. Only one antenna is used at the time so only one ANTx port is set at the time. 



    akif said:
    Sorry I don't have expertise on radio signals, I couldn't see if antenna have any effects on power model compensation. If we use a custom antenna on our custom board, do we need to create our custom power model or can we use built-in power model directly?

    The antenna will effect the gain, since all antennas has gain, but exactly what type of gain in how much is not something the FEM can adjust for. The way to do this is to tune the matching circuits and antenna with a spectrums analyzer and a VNA to find the optimal result. Then the built-in model will handle the other variables to adjust the gain to correct levels. 


    Regards,
    Jonathan

  • If there is not a specific use case or situation in mind for your application then it is likely best to go for one antenna.  Adding more antennas increases the cost and complexity in the physical design but also on the development side. 

     I do have a specific use case for the same question.  
    I have a BLE system where we have battery operated BLE devices and we had to back off on TX power to meet battery life.  The battery operated device talks to a wall powered gateway set to max TX power.  This creates a asymmetric communication where the gateway has difficulty hearing the battery operated devices.    To improve the gateways capability to hear the battery operated device I was planning to use your nRF21540 to utilize the LNA as well as gaining receive signal strength from antenna diversity.  

    My configuration 

    The battery operated nRF52840 is capable of +8dBm but backed off to +0dBm 


    Knowing this use case what do you think of our approach and trying to rely on antenna diversity to pick the polarization with the strongest signal. 

    We do not have control over the installation so I can't relay of directional antennas and the fact that the gateway will communicate with multiple battery operated devices.  

    Thanks 

  • Ders said:
    Knowing this use case what do you think of our approach and trying to rely on antenna diversity to pick the polarization with the strongest signal. 

    There is not a relay good solution for choosing what antenna would be best i think. You can use RSSI and look at the "strength" then switch antenna and compare, keeping the antenna that gets the best results. But I am not sure that there will be a huge difference in signal quality here so this might be a lot of work for little improvement. 

    Is the battery powered unit relatively mobile and will change possession\location often then selecting antenna based on RSSI value over time might not net great results. 

    The LNA will work, but antenna diversity might not be as effective as you want it to be, but this is difficult to say and you would have to test this and evaluate if it is enough of a bonus that it is worth it. 

    Regards,
    Jonathan

Related