Hi
Based on NCS 2.3.0,I started by referencing this link and compiling it using the relevant configuration How to setting TX power through HCI command? - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com),
Add the below setting on "prj.conf" and re-build the project.
CONFIG_BT_HCI_VS=y
CONFIG_BT_HCI_VS_EXT=y
CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
CONFIG_BT_HCI_RAW_CMD_EXT=y
CONFIG_BT_CTLR_SET_HOST_FEATURE=y
Run command: hcitool -i hci0 cmd 0x3f 0x000e 0x00 0x00 0x00 -8, set TX power Success
Execute the following command and btmon results:
hcitool cmd 0x08 0x0007
< HCI Command: ogf 0x08, ocf 0x0007, plen 0
> HCI Event: 0x0e plen 5
01 07 20 00 F8
btmon
@ RAW Open: hcitool (privileged) version 2.22 {0x0004} [hci0] 6.431766
< HCI Command: LE Read Advertising Channel TX Power (0x08|0x0007) plen 0 #1 [hci0] 6.434787
> HCI Event: Command Complete (0x0e) plen 5 #2 [hci0] 6.440189
LE Read Advertising Channel TX Power (0x08|0x0007) ncmd 1
Status: Success (0x00)
TX power: -8 dbm (0xfffffff8)
@ RAW Close: hcitool
To conduct Direct Test Mode (DTM) HCI testing, add configuration:
hcitool cmd 0x08 0x0007
< HCI Command: ogf 0x08, ocf 0x0007, plen 0
> HCI Event: 0x0e plen 5
01 07 20 00 00
btmon
@ RAW Open: hcitool (privileged) version 2.22 {0x0003} [hci0] 6.625427
< HCI Command: LE Read Advertising Channel TX Power (0x08|0x0007) plen 0 #1 [hci0] 6.625593
> HCI Event: Command Complete (0x0e) plen 5 #2 [hci0] 6.630707
LE Read Advertising Channel TX Power (0x08|0x0007) ncmd 1
Status: Success (0x00)
TX power: 0 dbm (0x00)
@ RAW Close: hcitool
