Setting TX power level in BLE Host stack has no effect on peak current

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Setting TX power level in BLE Host stack has no effect on peak current

ソリューションへジャンプ
1,326件の閲覧回数
arpad_toth
Contributor II

Hello,

Setting power level in "BLE Host stack QN9080DK MCUXpresso SDK 2.2.0" stack has NO effect on TX advertisement current level, with these two power level the peak current is still 0.9mA:

Gap_SetTxPowerLevel(0u, gTxPowerAdvChannel_c)
Gap_SetTxPowerLevel(255u, gTxPowerAdvChannel_c)

BleApp_GenericCallback(const gapGenericEvent_t* const pGenericEvent)
{
      switch(pGenericEvent->eventType)
      {
            case gInitializationComplete_c:
                  /* set TX power */
                  assert(Gap_SetTxPowerLevel(255u, gTxPowerAdvChannel_c) == gBleSuccess_c);
                  assert(Gap_SetTxPowerLevel(255u, gTxPowerConnChannel_c) == gBleSuccess_c);
                  break;
                  ...
            case gTxPowerLevelSetComplete_c:
                  /* this is called twice, break point stops here */
                  break;
}

Also RSSI on RX side doesn't seem to be correlating.

What am I doing wrong?

ラベル(2)
タグ(3)
0 件の賞賛
1 解決策
1,065件の閲覧回数
estephania_mart
NXP TechSupport
NXP TechSupport

Hello ,

  The register that needs to be modified it's the ANA_CTRL0[PA_POWER], the  API to access this register is RF_SetTxPowerLevel(). It can be set between 0x00 (minimum -  -30dBm) and 0xFF (maximum - +2dBm). 

 

  By default this field is not touched, so it is set to 0x7F which corresponds to 0dBm. 

Regards,
Estephania

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
1,065件の閲覧回数
arpad_toth
Contributor II

Controller_SetTxPowerLevel() is not an active interface for QN908X.

0 件の賞賛
1,066件の閲覧回数
estephania_mart
NXP TechSupport
NXP TechSupport

Hello ,

  The register that needs to be modified it's the ANA_CTRL0[PA_POWER], the  API to access this register is RF_SetTxPowerLevel(). It can be set between 0x00 (minimum -  -30dBm) and 0xFF (maximum - +2dBm). 

 

  By default this field is not touched, so it is set to 0x7F which corresponds to 0dBm. 

Regards,
Estephania

0 件の賞賛