- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there any API for retrieving the Tx power for current advertising or connection state?
From the comment of these 2 APIs in setting the Tx power.
Does it mean that controller will change the tx power by itself without over the maximum set by application?
Question 1. Any other API for retrieving the current Tx power?
Question 2. What's the default Tx power (4 dBm?) if application doesn't set it manually at all?
Question 3. What's the parameter to set Tx power to 4 dBm (if this is the default one) if the granularity of Tx power is 3, -1, -5 .... , -25 (in every 4 dBm) refer to 'Re: Power level granularity in blecm_setTxPowerInConnection() and blecm_setTxPowerInADV()'
////////////////////////////////////////////////////////////////////////////////
/// Sets the maximum TX power
///
/// \param maxTxPowerDb The max TX power allowed in dB.
////////////////////////////////////////////////////////////////////////////////
void blecm_setTxPowerInConnection(INT8 maxTxPowerDb);
////////////////////////////////////////////////////////////////////////////////
/// Sets the maximum TX power
///
/// \param maxTxPowerDb The max TX power allowed in dB.
////////////////////////////////////////////////////////////////////////////////
void blecm_setTxPowerInADV(INT8 maxTxPowerDb);
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> Is there any API for retrieving the Tx power for current advertising or connection state?
No, there isn't one.
> Does it mean that controller will change the tx power by itself without over the maximum set by application?
Unlike classic Bluetooth, there is no dynamic power control in BT Low Energy. So the TX power is constant. The default TX power level is +4dBm for both ADV and connection. The application can change it using the two blecm_* functions in your post. The stack will never change these power levels.
> What's the parameter to set Tx power to 4 dBm...
Use +3dBm (or +4dBm), the FW always rounds it to the closest value the HW is capable of.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think you will find this thread hepful Power level granularity in blecm_setTxPowerInConnection() and blecm_setTxPowerInADV()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks. But I've checked that thread, it didn't answer my question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> Is there any API for retrieving the Tx power for current advertising or connection state?
No, there isn't one.
> Does it mean that controller will change the tx power by itself without over the maximum set by application?
Unlike classic Bluetooth, there is no dynamic power control in BT Low Energy. So the TX power is constant. The default TX power level is +4dBm for both ADV and connection. The application can change it using the two blecm_* functions in your post. The stack will never change these power levels.
> What's the parameter to set Tx power to 4 dBm...
Use +3dBm (or +4dBm), the FW always rounds it to the closest value the HW is capable of.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Arvinds,
Thanks.
Regarding to your comment 'Use +3dBm (or +4dBm), the FW always rounds it to the closest value the HW is capable of.', what's the exact parameter for setting power to 4dBm? I suppose that +3 is used for +3dBm according to the granularity provided from source code comment.