How to setting TX power through HCI command?

Hi Sir,

We reference example "/nrf/samples/bluetooth/hci_uart" and test on nRF52833.

Now we want to set the Tx power by sending appropriate HCI commands from the host.

We tried the below command but got an error.

"hcitool -a hci0 inqtpl 4"

Can't set inquiry transmit power level on hci0: Input/output error (5)

Could you share the command for how to set the TX power level?

Thank you.

BRs, Han

Parents
  • Hi,

    When using hcitool note that inq and tpl are two different commands.
    hcitool should be used with -i option.
    Full command would look like this hcitool [-i <hciX>] [command [command_parameters]]
    inq - used for inquiries of remote devices
    tpl - command used for displaying transmit power level
    In your case, this would be hcitool -i hci0 tpl <bdaddr> [type]

    If you want to use inqtpl command then consider using hciconfig:
    hciconfig inqtpl 4 - sets the inquiry transmit power level to 4
    hciconfig inqtpl    - gets the inquiry transmit power level

    Best regards,
    Dejan

Reply
  • Hi,

    When using hcitool note that inq and tpl are two different commands.
    hcitool should be used with -i option.
    Full command would look like this hcitool [-i <hciX>] [command [command_parameters]]
    inq - used for inquiries of remote devices
    tpl - command used for displaying transmit power level
    In your case, this would be hcitool -i hci0 tpl <bdaddr> [type]

    If you want to use inqtpl command then consider using hciconfig:
    hciconfig inqtpl 4 - sets the inquiry transmit power level to 4
    hciconfig inqtpl    - gets the inquiry transmit power level

    Best regards,
    Dejan

Children
Related