2017-10-30 09:25 AM
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-lrwan12017-12-07 04:13 PM
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:
>:(
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.