cancel
Showing results for 
Search instead for 
Did you mean: 

I-CUBE-LRWAN v1.1.2 - Set Tx Power?

Posted on October 30, 2017 at 17:25

Is it possible to 'manually' configure the Tx Power level using theI-CUBE-LRWAN v1.1.2 software?

I can see that the End_Node demo enables Adaptive Data Rate:

/* !
 *Initialises the Lora Parameters
 */
static LoRaParam_t LoRaParamInit= {TX_ON_TIMER,
 APP_TX_DUTYCYCLE,
 CLASS_A,
 LORAWAN_ADR_ON,
 DR_0,
 LORAWAN_PUBLIC_NETWORK,
 JOINREQ_NBTRIALS};
�?�?�?�?�?�?�?�?�?�?�?

But, if I disable it, I don't see how/where I'd set the Tx power level.

Related: With ADR enabled, is there a way for the node to limit the maximum Tx power level?

#semtech #stm32 #lora #lorawan #i-cube-lrwan #b-l072z-lrwan1 #p-nucleo-lrwan1 #i-nucleo-lrwan1
1 REPLY 1
Posted on December 08, 2017 at 01:13

A kind of similar question:

https://community.st.com/0D50X00009XkXHYSA3

As far as I can find, there isnoproper API to specify the output power.

It seems that your only choice are:

  • either use ADR;
  • or you're stuck with the default for the selected region.

>:(

In the end, I think I ended up hackingLoRaMacInitialization() - where it says:

 getPhy.Attribute = PHY_DEF_TX_POWER; phyParam = RegionGetPhyParam( LoRaMacRegion, &getPhy ); LoRaMacParamsDefaults.ChannelsTxPower = phyParam.Value;�?�?�?

just override that with

LoRaMacParamsDefaults.ChannelsTxPower = TX_POWER_3�?

or whatever.

TX_POWER_0 seems to mean, 'the maximum allowed for the region', and

TX_POWER_1,TX_POWER_2, etc represent increasing reductions from that level.