AnsweredAssumed Answered

How to adjust PA level on Kinetis Thread Stack 1.0.0

Question asked by Randolf Hu on May 11, 2016

Hi Sirs,

We are working on Kinetis Thread Stack 1.0.0 on usbkw24d512. We want to adjust the channel power to the maximum. we found the APS layer, the maximum value is  0x1F (16dBm), but in Phy layer, the maximum value is only 0x1C (10dBm). Can we revise the gPhyMaxTxPowerLevel_d to 0x1F? Will it cause any side effect?

In usbkw24d512 platform, do it support close loop power control? Will it optimize the PA power automatically?

 

In phy.h

/* Set the default power level to 0dBm */

#ifndef gPhyDefaultTxPowerLevel_d

#define gPhyDefaultTxPowerLevel_d     (0x17)

#endif

#define gPhyMaxTxPowerLevel_d         (0x1C)       

/* Tx Power level limit for each individual channel */

#ifndef gChannelTxPowerLimit_c

#define gChannelTxPowerLimit_c { gPhyMaxTxPowerLevel_d,   /* 11 */ \

                                 gPhyMaxTxPowerLevel_d,   /* 12 */ \

                                 gPhyMaxTxPowerLevel_d,   /* 13 */ \

                                 gPhyMaxTxPowerLevel_d,   /* 14 */ \

                                 gPhyMaxTxPowerLevel_d,   /* 15 */ \

                                 gPhyMaxTxPowerLevel_d,   /* 16 */ \

                                 gPhyMaxTxPowerLevel_d,   /* 17 */ \

                                 gPhyMaxTxPowerLevel_d,   /* 18 */ \

                                 gPhyMaxTxPowerLevel_d,   /* 19 */ \

                                 gPhyMaxTxPowerLevel_d,   /* 20 */ \

                                 gPhyMaxTxPowerLevel_d,   /* 21 */ \

                                 gPhyMaxTxPowerLevel_d,   /* 22 */ \

                                 gPhyMaxTxPowerLevel_d,   /* 23 */ \

                                 gPhyMaxTxPowerLevel_d,   /* 24 */ \

                                 gPhyMaxTxPowerLevel_d,   /* 25 */ \

                                 gPhyMaxTxPowerLevel_d }  /* 26 */

#endif

In AspInterface.h

/* Supported Power Levels */

enum {

    gAspPowerLevel_m40dBm = 0x03,

    gAspPowerLevel_m38dBm = 0x04,

    gAspPowerLevel_m36dBm = 0x05,

    gAspPowerLevel_m34dBm = 0x06,

    gAspPowerLevel_m32dBm = 0x07,

    gAspPowerLevel_m30dBm = 0x08,

    gAspPowerLevel_m28dBm = 0x09,

    gAspPowerLevel_m26dBm = 0x0A,

    gAspPowerLevel_m24dBm = 0x0B,

    gAspPowerLevel_m22dBm = 0x0C,

    gAspPowerLevel_m20dBm = 0x0D,

    gAspPowerLevel_m18dBm = 0x0E,

    gAspPowerLevel_m16dBm = 0x0F,

    gAspPowerLevel_m14dBm = 0x10,

    gAspPowerLevel_m12dBm = 0x11,

    gAspPowerLevel_m10dBm = 0x12,

    gAspPowerLevel_m8dBm  = 0x13,

    gAspPowerLevel_m6dBm  = 0x14,

    gAspPowerLevel_m4dBm  = 0x15,

    gAspPowerLevel_m2dBm  = 0x16,

    gAspPowerLevel_0dBm   = 0x17,

    gAspPowerLevel_2dBm   = 0x18,

    gAspPowerLevel_4dBm   = 0x19,

    gAspPowerLevel_6dBm   = 0x1A,

    gAspPowerLevel_8dBm   = 0x1B,

    gAspPowerLevel_10dBm  = 0x1C,

    gAspPowerLevel_12dBm  = 0x1D,

    gAspPowerLevel_14dBm  = 0x1E,

    gAspPowerLevel_16dBm  = 0x1F

};

Thanks,

Jake

Outcomes