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.

How to set TXPOWER through serial api on cc2530?

Other Parts Discussed in Thread: CC2591, CC2530, Z-STACK

Hi,

I have a short question. I have module with cc2530 and cc2591 and the power level is extremely low so I would like to set RXPOWER register through serial api. Also is it necessary to turn on cc2591 or is it turned on by default. It is all on one module that is not developed by us.

Thank you!

Regards,

Marko

  • Hi Marko,

    I suppose you are talking about TXPOWER, not RXPOWER. The output power can be set by MT_SYS_STACK_TUNE. Please see section 3.8.1.18 of Z-Stack Monitor and Test API.pdf.

    To enable CC2591 at compilation, you need to define HAL_PA_LNA in the compiler option - preprocessor.

    - Cetri

  • Hi Cetri,

    thank you for your answer. Yes I'm talking about TXPOWER, my mistake. So I can change TXPOWER register value through serial api commands, but to enable cc2591 I have to compile it with HAL_PA_LNA and there is no way to enable it through serial api commands? I ask that because I'm using hex files that came in  C:\Texas Instruments\ZAP-MSP430-2.5.0\Projects\zstack\ZAP\ZNP-HexFiles so it would be much more convenient that I can control with some serial api cmd. 

    Thank you!

    Best regards,

    Marko

  • Hi Marko,

    Unfortunately there is no way to enable/disable CC2591 through serial API. You need to build the ZNP image with HAL_PA_LNA to use CC2591.

    Please note that if you are using CC2530-CC2591 combo EMK and haven't made any modification regarding CC2591 use in the source code, you need to follow 'Alternate pin configuration' described in Section 2.1.2.2 of 'CC2530ZNP Interface Specifications.pdf' and use UART transport. Please make sure that the CFG1 pin is LOW.

    - Cetri