Thingy53 ESB and FEM

Hi,

I am working with Thingy53 using the ESB (Enhanced ShockBurst) library.
I have my basic app running with multi-point comms and power control. This was done without using the Thingy53 nRF21540 FEM module (CONFIG_MPSL_FEM=n). This means that the Thingy53 antenna switch selects ANT2.

Now I would like to take the FEM module and ANT1 into use, but I think the ESB library does not directly support it. At least I think esb_set_tx_power() does not know how to control power using the FEM. But I am not sure if there are any other problems. I did find some adjacent old posts which seemed to indicate that there is some FEM support in ESB, but I did not really understand what that meant.

Q1: Does ESB already support using FEM in Thingy53. If so, how do I select between ANT1 and ANT2?

Q2: If not, can I still use ESB with FEM and handle power control separately? I would probably have to disable ESB power control somehow so that there would not be conflicting power settings.

Q3: If I can do FEM control independently of ESB, then what would be the recommended API to use?
It seems that at least the MPSL API (https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/mpsl/doc/api.html#) is an option.
There is also a simpler option abstracting the MPSL API: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/others/fem_al.html
Are these both supported "equally"? Obviously the FEM AL API looks more attractive since I basically only want to change power with reasonably high resolution and some adaptivity. I don't think I need any very advanced functions.

Best regards,

Petri Haavisto

Finland

Related