Changing the BLE TX power on run time

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

cross mob
D_Sd_3235936
Level 4
Level 4
25 sign-ins 50 questions asked 25 replies posted

We have to decrease the TX power via runtime of the app.

As it is considered somewhat of a risk on our side, we would like to understand better the API function:

 

CyBle_SetTxPowerLevel

 

Does the function have any restrictions?

e.g,

When it can be used?

Does it require a delay?

and What will be the safest place to use it?

 

Unfortunately we cannot change the default settings of the BLE TX power level in PsocCreator.

 

Thanks.

0 Likes
1 Solution
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello @D_Sd_3235936 , 

You can call the CyBle_SetTxPowerLevel after CYBLE_EVT_STACK_ON event. Please call the function after few calls of CyBle_ProcessEvents(). For more information, please refer to this function description in the BLE component datasheet. 

You can confirm the TxPower level set in the project with CyBle_GetTxPowerLevel api. This function reads the transmit power of the BLE radio for the given BLE sub-system channel group.

Thanks,

P Yugandhar. 

View solution in original post

0 Likes
1 Reply
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello @D_Sd_3235936 , 

You can call the CyBle_SetTxPowerLevel after CYBLE_EVT_STACK_ON event. Please call the function after few calls of CyBle_ProcessEvents(). For more information, please refer to this function description in the BLE component datasheet. 

You can confirm the TxPower level set in the project with CyBle_GetTxPowerLevel api. This function reads the transmit power of the BLE radio for the given BLE sub-system channel group.

Thanks,

P Yugandhar. 

0 Likes