How to config nrf5340 tx power?

 Hello,

I want to modify the default transmit power of the nrf5340 peripheral_uart project.

board:nrf5340 dk

ncs:v1.5.0

example:v1.5.0\nrf\samples\bluetooth\peripheral_uart

I found this project v1.5.0\zephyr\samples\bluetooth\hci_pwr_ctrl

Then I transplanted the set_tx_power function to my project.

But the power remains unchanged.

Can you help me point out the correct way,I just want to modify the power.

Thank you.

Parents Reply
  • Hi Joanthan,

    Thank you for your reply.

    Yes I did, but unfortunately it doesn't work.

    Now I have solved this problem by set the prj.conf files.

    CONFIG_BT_LL_SOFTDEVICE=n
    CONFIG_BT_LL_SW_SPLIT=y
    CONFIG_BT_CTLR_ADVANCED_FEATURES=y
    CONFIG_BT_CTLR_CONN_RSSI=y
    CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
    But I don’t know why this is done, is there some documentations can help me?
    Thank you.

     

Children
Related