RX enable time on the PA LNA driver for nRF21540

Hi

I'm using the PA LNA driver for the nRF21540 with the function:

void mesh_lna_setup_start(uint32_t rampup_start_capture_time, uint32_t timer_index)

Now, when I check the TX and RX signals, I can see that the RX enable PIN is switched low every 200ms, not only during the TX interval.

How can I change this to 100% receiving time? When a packet is coming over BLE and the RX is switched off, this packet is getting lost.

Here is the plot of the TX, RX enable Pins:

CH1 is TX, CH2 (green) is RX:

Parents Reply
  • Hi,

    Dominik Eugster said:
    What I don't understand is why RX goes low without TX is sending something, can you explain this?

    Yep. This is described in the documentation that is provided.

    You will see brief Active High pulses on the GPIO pin 24, which is used for the PA control. Similarly, the GPIO pin 25 (used for the LNA control) is almost always ON, except for the time when the radio switches to the next advertising channel for scanning or for sending advertisements.

    You can observe that this interval of LNA Off without active TX is equal `BEARER_SCAN_INT_DEFAULT_MS` (default 2 seconds). The scanner has to change channel for scanning.

    Dominik Eugster said:

    I found a nRF21540 driver lib here:
    https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fgroup__nrf21540.html

    Should I use this one or the PA/LNA driver (which is working in my project)? I'm confused about this because until now nobody spoke about this driver.

    If you want to use Mesh you have to follow BLE Mesh documentation recommendations. 

Children
Related