Any API for retrieving the current Tx power?

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

cross mob
Anonymous
Not applicable

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);

0 Likes
1 Solution
asridharan
Employee
Employee
10 comments on KBA 5 comments on KBA First comment on KBA

> 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.

View solution in original post

4 Replies
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog
0 Likes
Anonymous
Not applicable

Hi,

Thanks. But I've checked that thread, it didn't answer my question.

0 Likes
asridharan
Employee
Employee
10 comments on KBA 5 comments on KBA First comment on KBA

> 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.

Anonymous
Not applicable

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.

0 Likes