Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

Set Transmit Power Level over HCI in PSoC 6 MCU BLE – KBA226871

Set Transmit Power Level over HCI in PSoC 6 MCU BLE – KBA226871

Community-Team
Employee
Employee
50 questions asked 10 questions asked 5 questions asked

Author: GeonaP_26            Version: **

Translation - Japanese: PSoC 6 MCU BLEでHCIから送信電力レベルを設定する- KBA226871 - Community Translated (JA)

Question:

How do you set BLE transmit power level over Host Controller Interface (HCI) mode in PSoC® 6 MCU BLE?

Answer:

You can send the vendor HCI command HCI_VENDOR_SET_TX_PWR, used to set TX power, over HCI interface with appropriate parameters to configure TX power level. Since this is a vendor command, it is not related to the BT power control procedure.

Command

Opcode

Param Length

Params

Recommended Param Values

HCI_VENDOR_SET_TX_PWR

0xFDA5u    

OGF

OCF

0x3F

0x1A5

4 Octets

Channel ID,

Power Level,

Connection Handle  LSB,

Connection Handle  MSB

                                                                 

Param

Size

Value Example

Channel ID

1 octet

0x00

Power Level

1 octet

-20, -16, -12, -6, 0, 4

(use 2’s complement for negative numbers)

Connection Handle

2 octets

0x0000

  • The channel ID refers to the channel group ID. It is 0x00 for ADV channel and 0x01 for connection channels.
  • Connection handle is applicable if the channel ID is connection channel type. For advertisement and Direct Test Mode (DTM), connection handle is ignored.
0 Likes
792 Views
Contributors