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 register

Hi

i am using the sensor demo software on cc2530zdk with zstack 2.5.0. I have changed the original TXPOWER value of the sensor device to the lowest value

 

// Initialze HAL drivers
  HalDriverInit();

  // Initialize NV System
  osal_nv_init( NULL );

  // Initialize the MAC
  ZMacInit();

  //edited for different power levels
  uint8 txvalue = 0x05 ; //-22dBm
  MAC_MlmeSetReq(MAC_PHY_TRANSMIT_POWER, &txvalue);

and also uncommented the


#define HAL_MAC_USE_REGISTER_POWER_VALUES //uncommented this for manual transmit power

in the mac_radio_defs.h file.

may i know how to check if this is the value the transmitter is using?

Thank you.

  • Ha Satchi,

     

    While in debug mode (in AIR IDE), get your application running, then, just randomly

    pause it and add the TXPOWER register to "watch" and observe if the value

    matches the expectations.

    You can also use the ZMacSetTransmitPower( TX_PWR_MINUS_22 ).

    I've been using this function for a long time now, and it works for me.

     

    Br,

    Igor