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.

TXPOWER CC2530 CC2591

Other Parts Discussed in Thread: CC2591, CC2530

Hi,

 

I am using Zstack-CC2530-2.3.1 and a module with a CC2530 and a CC2591. I compile with the option HAL_PA_LNA. I want to be able of chose between 2 power 10dBm and 20dBm.

 

For setting the power I modify the ZMacInit() call in  ZMain.c but it did not work.

 

  // Initialize the MAC

  ZMacInit();

 

  uint8 value = 0xE5;

  MAC_MlmeSetReq(MAC_PHY_TRANSMIT_POWER, &value);

 

I succeed to send the power I want when I change the last parameter in the definition of macRadioDefsTxPowerCC2591 in mac_radio_defs.c

 

#if defined HAL_PA_LNA || defined MAC_RUNTIME_CC2591

const uint8 CODE macRadioDefsTxPwrCC2591[] =

{

  19,  /* tramsmit power level of the first entry */

  (uint8)(int8)0, /* transmit power level of the last entry */

  /*  19 dBm */   0xF5,   /* characterized as 19.36 dBm in datasheet */

  /*  18 dBm */   0xD5,   /* characterized as 18.45 dBm in datasheet */

.

.

.

  /*   2 dBm */   0x25,   /* characterized as 2.71 dBm in datasheet */

  /*   1 dBm */   0x15,   /* characterized as 0.70 dBm in datasheet*/

  /*   0 dBm */   0xE5, //0x05,   /* characterized as -0.8 dBm in datasheet */

};

#endif

 

I can keep this modification for my application but I’m asking if there is a simpler method to do it ??

 

I hope someone have an idea,

Best regards, Gaelle