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.

CC2541/CC2590 range extender configuration troubles & general questions on scanning

Other Parts Discussed in Thread: CC2541, CC2590, CC2540

I am having trouble reliably receiving advertising packets with a CC2541/CC2590 board that closely follows the reference design.  So, I’ve been testing and studying what I can observe, including the various control lines.  Please review below and tackle the embedded questions.

Thanks




The below results were obtained with the CC2541/CC2590 board running the SimpleBLEcentral code with minimal changes:

  • Code was added to restart the scan when it ends

  • Code was added to configure the CC2541 to use the CC2590





Figure 1 below shows the CC2590 PA Enable line and the LNA Enable line and a trace showing a spectrum analyzer output showing some RF activity.

Question 1:   The LNA trace shows a pattern where the LNA is on for around -9ms and then off for ~2ms... and this repeats.  Is the pattern seen on “LNA Enable” due to switching frequencies?

Question 2:   If so, why is the LNA off for such a long time?  (~ 2mS)   The CC2541 can switch frequencies very quickly.



Figure 2 below shows a zoom of the interesting area on the right side in Figure 1.

Question 3:  Does the labelling/understanding shown in Figure 2 look correct?



Figure 3 below shows the approximate 2ms “down time” on the LNA in blue along with the capture of three typical advertising packets shown under the red line.  (A wide RBW was used to vaguely capture the other advertising channels.)  This shows how the long “down time” can swallow up an advertising event and thus miss it.




Question 4:   The range extender configuration command HCI_EXT_ExtendRfRangeCmd does NOT properly configure line HGM (P1_1).  After running the command the HGM (P1_1) is always low.   I find that I need to manually set it high with these lines (P1SEL &= ~0x02; P1DIR |= 0x02; P1 |= 0x02;).  However, this is not ideal because it is permanent and therefore not change dynamically as needed. How do I configure the CC2541 to automatically control the HGM line?

 

Also, note that it appears that a lot of the advice given about configuring the range extender for the CC2541 does not appear to comport with the CC2541 spec. In particular, these sources...

...specify “RFC_OBS_CTRLx” settings that do not exist table provided on page 334 of the CC2541 spec.   (Some of the recommended settings do appear in the CC253x table… which is confusing.)   I have not been successful in my efforts to manually configure the three range extender control lines using the RF observable configuration registers.  

  • Not sure if this was every answered.  Would also like to see the  CC2540/1 automatically control the CC2590 HGM pin.  If this exists, can this be enabled?  Details and observations below.  Peripheral not Central in this instance.

    Had a set of boards built using the CC2541-CC2590EM Version 1.1 reference design.

    Three of these boards are tested and working with the SmartRF05 Evaluation Board.

    Two of the boards were assembled with A CC2541, one was assembled with a CC2540.

    I have modified the SimpleBLEPeripherial for the CC2540 and for the CC2541.  I've modified simpleBLEPeripherial.c to include these two lines at line 124:

    #define HAL_PA_LNA_CC2590 //~~JGN 23 OCT2014~~

    #define HAL_LCD FALSE //~~JGN 23OCT2014~~

    and these two lines at line 426:

    //Enable Range Extender ~~ JGN 23OCT2015 ~~ HCI_EXT_ExtendRfRangeCmd();

    I believe only the addition of the third line is necessary.  Now, everything seems to work, with either CC2540 or CC2541.  Transmit power seems to be up ~10dB over the CC2540EM reference module.

    The CC2590 EN and PAEN  pins seem to do what they should (scope screen capture attached; EN is blue, PAEN-is yellow; CC2541 shown; as measured at R122 and R132.)

    The HGM enable line (pin P1.1 on the CC2540/1; pin 7 on the power amplifier) stays low, even when the signal between the two boards is attenuated to an extent that link performance would improve with additional receive gain.  Even so, no additional LNA gain is ever requested by the CC2540/1.

    Question: Is there a way to enable automatic control of high receive gain by the CC2540/1?