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

Studio Bluetooth Forum Discussions

user_1771726
Level 1
Level 1

Dear all,

          The datasheet said 20706 can reach +12dbm tx power in HCI test,

But now it is +3dbm.How to set the tx power?

0 Likes
1 Solution
ShengY_96
Employee
50 likes received 25 likes received 10 likes received
Employee

Hi

Try this:

/**

* Function         wiced_bt_dev_set_adv_tx_power

*

*  Command to set LE Advertisement tx power

*

* @param[in]       power          :  power value in db

*

* @return          wiced_result_t

*

**/

wiced_result_t wiced_bt_dev_set_adv_tx_power(int power)

Call it before the ADV, and the power can be set to: -16/-12/-8/-4/0/4/8/12

Regards

Jenson

View solution in original post

8 Replies
Anonymous
Not applicable

Hi,

Try to this,  

/**

* Function         wiced_bt_dev_set_tx_power

*

*  Command to set the tx power on link

*

* @param[in]       bd_addr       : peer address

*                                  To set Adv Tx power keep bd_addr NULL

* @param[in]       power          :  power value in db

*

* @return          wiced_result_t

*

**/

wiced_result_t wiced_bt_dev_set_tx_power( wiced_bt_device_address_t bd_addr, int power );

/**

* Function         wiced_bt_dev_set_adv_tx_power

*

*  Command to set LE Advertisement tx power

*

* @param[in]       power          :  power value in db

*

* @return          wiced_result_t

*

**/

wiced_result_t wiced_bt_dev_set_adv_tx_power( int power );

0 Likes
JoJo_2624151
Level 3
First like received First like given
Level 3

Hi :

     wiced_bt_dev_set_tx_power It does not exist in the project,I don't know where you find it.

0 Likes
BrKu_1344346
Level 1
First like received Welcome!
Level 1

Hi

You can set  BR tx power in wiced_bt_cfg.c

Brian

ShengY_96
Employee
50 likes received 25 likes received 10 likes received
Employee

Hi

Try this:

/**

* Function         wiced_bt_dev_set_adv_tx_power

*

*  Command to set LE Advertisement tx power

*

* @param[in]       power          :  power value in db

*

* @return          wiced_result_t

*

**/

wiced_result_t wiced_bt_dev_set_adv_tx_power(int power)

Call it before the ADV, and the power can be set to: -16/-12/-8/-4/0/4/8/12

Regards

Jenson

Anonymous
Not applicable

There are 3 ways to modify the Tx power:

1) In WICED 6.0, you can set the max Tx power in wiced_bt_cfg_settings_t.

2) You can make use of the wiced_bt_dev_set_tx_power and wiced_bt_dev_set_adv_tx_power APIs even though these definitions are not present.

3) You can make use of vendor specific command 'set_transmit_power' whose command opcode is 0x26. It takes 2 parameters: Connection handle and desired tx power. For adv, set the connection handle to 0xFE.

Example: 26 FC 03 40 00 08, where

26 - command opcode

FC- group opcode

03 - parameter length

0040 - connection handle

08 - desired Tx power

You can use the above VSC with wiced_bt_dev_vendor_specific_command API.

JeLi_2512051
Level 1
First like received First like given Welcome!
Level 1

Hi Yssu

1),For the point 3 'vendor specific command',I do not see it in the doucement ‘WICED-HCI-Control-Protocol.pdf’

Where can I get it?

2),The ways to modify the Tx power,It modifies the BR/EDR or BLE tx power ?

3),BTW,I  can see some referenced apps to demostrate the advertisement of BLE but BR/EDR,

Is there any referenced apps to demostrate the advertisement of BR/EDR?

Thanks!

0 Likes
Anonymous
Not applicable

Hi Jesse,

1) This is regular HCI command, not a WICED HCI command. WICED HCI commands are different from regular HCI commands. The vendor specific commands are sent from host to controller. if you enable 'HCI_TRACE', then you will see that the host send HCI commands to the controller. WICED HCI, on the other hand is used between an external host and a WICED device.

2) Those APIs can be used for both BR/EDR and BLE. You have to specify the desired connection handle, be it BR/EDR or BLE.

3) Firstly, there is no Advertisement in BR/EDR. There is Inquiry and the Inquiry power cannot be altered using these procedures.

JeLi_2512051
Level 1
First like received First like given Welcome!
Level 1

Hi Yssu

Thanks!

For the question 3,I am a little confused.

Do you mean that there is no Advertisement Feature in Bluetooth profile like Bluetooth 3.0?

In some BR/EDR applications,such as BT mouse or BT speaker,there is a Advertisement,which can pair with peer device like IPhone.

0 Likes