This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

control TX power during advertizing

Other Parts Discussed in Thread: CC2541

Hello,

I am running the SimpleBroadcaster sample on the CC2541 EV Board.

Everything is working ok apart from the fact that we cannot control the TX power during advertizing process. 

I tried to include the followinf data:

0x02,   // length of this data
GAP_ADTYPE_POWER_LEVEL,
0       // 0dBm

In the advertData structure but it did not change anything.

After investigation we saw that the POWER_PA register is controlling the power level at the PHY layer.

How can I controller that register from the application.

A sample code would be appreciated.

Thanks,

Fabrice.