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.

BLE can't link up when receiver gain changed from standard gain to high gain

Other Parts Discussed in Thread: CC2541

Hi :

I am using CC2541 Keyfob and want to change the reciver gain to high-gain mode so I add one more line of code :: HCI_EXT_SetRxGainCmd( HCI_EXT_RX_GAIN_HIGH ) to the following extracted from keyfobdemo.c

 ===================================================

switch ( currentTxPowerLevel )

      {

      case 0:

        newTxPowerLevel = -6;

        // change power to -6 dBm

        HCI_EXT_SetTxPowerCmd( HCI_EXT_TX_POWER_MINUS_6_DBM );

        HCI_EXT_SetRxGainCmd( HCI_EXT_RX_GAIN_HIGH );  

        // Update Tx powerl level in Proximity Reporter (and send notification)

        // if enabled)

        ProxReporter_SetParameter( PP_TX_POWER_LEVEL, sizeof ( int8 ), &newTxPowerLevel );

        break;

=======================================================

There is no problem compliering the code and programming the code into CC2541.  However, when I used iphone to test, the BLE connection always fail to link up.  The screen of iphone always show "disconnected from peripheral".  When I remove the line of the code, then connection can successfully link up again.  Can you please advise why I see the problem and how to fix it ? 

Thank you very much

-Raymond