How to read rssi in sample "hci_pwr_ctrl" on nrf5340?

Hello,

I'm a beginner of nrf5340, when I tried hci_pwr_ctrl(ncs v1.5.1) , I met some problems.I adjusted the tx power and changed prj.conf :

static const int8_t txp[DEVICE_BEACON_TXPOWER_NUM] = {0, -4, -8, -12, -16, -20, -40};

CONFIG_BT=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_PERIPHERAL=y
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=768
CONFIG_BT_HRS=y
CONFIG_BT_DEVICE_APPEARANCE=833
CONFIG_BT_DEVICE_NAME="Dynamic test beacon"
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
CONFIG_BT_CTLR_CONN_RSSI=y
CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y

Then I added hci_rpmsg to network core, it solved some problems, and advertising process worked well. I used another nrf5340 to connect with the first board, maybe they had connected but I'm not sure.Then I got a new error:

How can I get the rssi value?Please help me.

Kind Regards,

Majoris

Parents Reply Children
No Data
Related