nrf21540 gain always 20dB

Hello,

We are testing the radio_test sample on a nrf21540dk board with ncs-2.3. 
We want to change the fem tx_gain but we always get the same RSSI value on the nrf connect RSSI VIEWER application. 

It's like we always operate with a 20dB gain. 

We added the following configuration to the radio_test sample : 

CONFIG_FEM=y
CONFIG_MPSL=y 
CONFIG_MPSL_FEM=y
CONFIG_MPSL_FEM_NRF21540_GPIO_SPI=y
CONFIG_MPSL_FEM_ONLY=y
CONFIG_MPSL_FEM_NRF21540_RUNTIME_PA_GAIN_CONTROL=y
CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB=10

CONFIG_RADIO_TEST_POWER_CONTROL_AUTOMATIC=n

Then we used the following commands : 

start_channel 1
end_channel 80
time_on_channel 50
fem tx_gain 10
output_power pos0dBm
start_tx_sweep

Are we missing something ? 

Parents
  • Hi,

    The TX gain control in the radio test samples is working correctly with the config options you have provided. To confirm this here is the output power measured using a spectrum analyzer:

    If fact, the only config options needed are:

    CONFIG_FEM=y
    CONFIG_RADIO_TEST_POWER_CONTROL_AUTOMATIC=n

    RSSI is not a good measure of the output power from a device, since it is dependent on external factors,and the receiving device.

    What are the RSSI values you are seeing with 10dB and 20dB gain?

     

    Best regards,

    Bendik

  • Hi  ,

    I checked again with only the two config lines. I always get arround -33 dB in RSSI Viewer. 

    The board I use to check the RSSI is a nrf52840DK. 

    Both nrf21540DK and 52840DK are on the same table. 

    We also have a custom hardware with a nrf21540 and we ran the same code in conducted emission testing. 

    In both case (10dB and 20dB) we measure between 15 and 20dB (the cable and connections loss are not taken in account) so it's like we are always emitting with 20dB gain. 

    If we force the MODE pin to high (with a hardware connection) we effectively see a drop of arround 10dB. 

Reply
  • Hi  ,

    I checked again with only the two config lines. I always get arround -33 dB in RSSI Viewer. 

    The board I use to check the RSSI is a nrf52840DK. 

    Both nrf21540DK and 52840DK are on the same table. 

    We also have a custom hardware with a nrf21540 and we ran the same code in conducted emission testing. 

    In both case (10dB and 20dB) we measure between 15 and 20dB (the cable and connections loss are not taken in account) so it's like we are always emitting with 20dB gain. 

    If we force the MODE pin to high (with a hardware connection) we effectively see a drop of arround 10dB. 

Children
Related