cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeExpansion_LRWAN_V2.1.0 data rate and tx power configuration issue !!!

Khoa Tran
Associate II

The hardware is B-L072Z-LRWAN1 kit.

In STM32CubeExpansion_LRWAN_V1.3.1 I can change the Data rate and Tx power.

But after update to STM32CubeExpansion_LRWAN_V2.1.0 I can't change data rate and tx power as I want.

The data rate I change by edit LORAWAN_DEFAULT_DATA_RATE, LORAWAN_ADR_STATE is LORAMAC_HANDLER_ADR_OFF.

static LmHandlerParams_t LmHandlerParams =

{

 .ActiveRegion =       ACTIVE_REGION,

 .DefaultClass =       LORAWAN_DEFAULT_CLASS,

 .AdrEnable =        LORAWAN_ADR_STATE,

 .TxDatarate =        LORAWAN_DEFAULT_DATA_RATE,

 .PingPeriodicity =     LORAWAN_DEFAULT_PING_SLOT_PERIODICITY

};

#define LORAWAN_DEFAULT_DATA_RATE          DR_5

#define LORAWAN_ADR_STATE              LORAMAC_HANDLER_ADR_OFF

But when I change LORAWAN_DEFAULT_DATA_RATE only IN865, RU864, EU868, KR920 take effect, AS923 and AU915 data rate is DR_2 (SF10), US915 the data rate is fixed DR_0 (SF10) no matter what I change LORAWAN_DEFAULT_DATA_RATE.

Tx power i change by call LmHandlerSetTxPower(TX_POWER_5);

But tx power is TX_POWER_0. I know the tx power by measuring current consumption.

Best Regards,

Khoa.

1 REPLY 1

All source should be available.

Various rules in the country tables likely limits functionality ​by region to meet appropriate guidelines.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..