Announcements

Equip yourself to optimize PSoc4 MCUs for Evs at the EV Webinar. Click here to register.

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

PSoC™ 4 Forum Discussions

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
1000 replies posted 5 likes given First comment on blog

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
1000 replies posted 5 likes given First comment on blog

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