How to control NRF21540 in ESB

I want to configure the ESB and nRF21540 chips on the NRF21540-DK. In order to compare the signal gain, I used the nRF52832-DK and burned the Bluetooth routine (without any additional individual configuration). At this time, I compared the signal strength (at a close distance), broadcast signal approximate, nRF52832-DK is even stronger.

I added additional configuration to the nRF21540-DK:

CONFIG_MPSL=y
CONFIG_MPSL_FEM=y
CONFIG_BT_CTLR_TX_PWR_ANTENNA=20

There is a noticeable improvement in the broadcast signal.

But CONFIG_BT_CTLR_TX_PWR_ANTENNA seems to depend on Bluetooth protocol, if I enable ESB, I can't set the value.

I tried to find other functions or methods to control the gain, but without success. Can you give me any suggestions?

Thanks!

Related