STM32CubeExpansion_LRWAN_V2.1.0 data rate and tx power configuration issue !!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-09-14 12:30 AM
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.
- Labels:
-
LoRa
-
STM32L0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-09-14 12:43 AM
All source should be available.
Various rules in the country tables likely limits functionality by region to meet appropriate guidelines.
Up vote any posts that you find helpful, it shows what's working..
