- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 );
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi :
wiced_bt_dev_set_tx_power It does not exist in the project,I don't know where you find it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
You can set BR tx power in wiced_bt_cfg.c
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.