Repository navigation
[v4.9.3] 2026-11-03
This version is based on branch v4.9.0 of the LoRa Basics Modem.
Detailed Modem API changelog can be found here
Detailed Modem HAL changelog can be found here
Added
- LR20xx RSSI calibration: new mandatory BSP function
ral_lr20xx_bsp_get_rssi_calibration_table(), called at RAL initialization, with reference tables in the example BSP (ral_lr20xx_bsp.c): a custom LR20xx BSP must implement it - Regional Parameters RP002-1.0.4 and RP002-1.0.5 support (CFList type 1 for dynamic plans, up to 80 channels on EU868, new US915 channel plan, Relay channel 1 SF update, AS923 group 4).
RP_VERSIONselects the version in the application options, default remains RP2-1.0.3 - LR2012 radio added to the CMake files
- LR2022 radio added to the CMake files and to the list of WW_2G4-compatible radios
- LR20xx: PA power configuration tables, updated
ral_lr20xx_bsp.cfor the example BSP - SX126x: PA power configuration tables in the example BSP (
sx126x_pa_pwr_cfg.h) - Makefile:
CSMAcompilation flag - CMake:
LBM_CMAKE_CONFIG_AUTOandRAL_DRIVER_DIRECT_DISPATCHoptions - Relay Tx:
number_of_miss_wor_ack_to_switch_in_nosync_modecan now be configured by the user
Changed
- Repository reorganization: sources moved under
lbm/lbm/lbm_lib: LoRa Basics Modem core, API and HALlbm/radio_plannerlbm/smtc_radio_interface: RAL, RALF and radio driverslbm/smtc_core_hal_interface: HAL part not related to LBM (see the Modem HAL changelog)
- The Radio Planner and ralf can be provided externally to LBM (RAC dependency removed,
USE_SMTC_RACselects the use ofmodem_radio) - Cleaned and simplified CMake architecture
- Class B beacon DPLL:
BEACON_PLL_PHASE_GAIN_MUL/DIVset to 1/2 for a faster convergence and accept a bigger crystal error - Multicast Class B/C: the session now starts 2 s before its session time
- Radio drivers updates:
- Duty-cycle frequency list now takes the 80 channels into account
- RAL: new LoRa LDRO computation for all radios, LR2021 PRAM version checked at radio initialization
Fixed
- NbTrans > 1: the duty-cycle time off is now updated on retransmission, all retransmissions are sent before the duty-cycle delay is enforced
- Wrong index boundary check when decrementing the datarate
lr1_stack_mac_cmd_ans_cutcould block the modem because DeviceTimeAns and Class B MAC commands were missing in the array used for length check- Class B/C Multicast v1/v2 ping slot hopping when frequency is 0
- Modem was not able to retain sleep when
lorawan_dwn_ack_managementvariable was less than or equal to 96 bytes (context added) - Fixed missing check of
SMTC_MULTICASTdefinition (Class B or C only) smtc_modem_get_suspend_radio_communications()can no longer be called in test mode- Porting guide:
CONTEXT_SECURE_ELEMENTneeds 484 bytes - ALC SYNC and FUOTA package versions set to 2
- Issue #141 Missing semicolons when
SMTC_TRACEis compiled - LR20xx: wakeup time must be between 100 us and 1 ms
- IN865, AU915 and AS923_GRP4 region typos/out-of-bound fixes
- Radio Planner: IRQ flag cleared when an interrupt occurs without an active task,
ral_clear_irq_status()called beforeral_set_sleep(), FLRC packet length error reported - MAC commands answer size table:
LINK_CHECK_ANSreplaced byLINK_CHECK_REQ(command sent by the end-device)
Security
Robustness fixes found by static analysis and code audit (out-of-bound access, unvalidated lengths and indexes):
- FOpts extraction read past the valid payload before MIC verification
- FUOTA: fragment payload size validated against the received RF payload;
FragDecoderProcess()rejectsfragCounter == 0(row index underflow);frag_indexbounds checked before use;frag_req_cmd_sizetable initialisation; unicast DataFragment refused on multicast-only sessions;fmp_test()duplicated declaration - Remote Multicast Setup:
MC_GROUP_STATUS_REQanswer buffer bound check - Multi Package Access:
MULTI_PACK_BUFFER_REQread past the payload - Certification:
TX_PERIODICITY_CHANGE_REQandEchoPlayReqsize validation link_adr_parser()size check performed before dereference- Function pointers are checked (
SMTC_LBM_IS_VALID_FN_PTR) before being called;smtc_lbt_get_obj()panics on out-of-bound instead of returning NULL - Coverity findings: uninitialised variables, integer overflow,
MIN/MAXmacros brackets,CRYPTO_MAXMESSAGE_SIZElimited to 255 in the LR11xx crypto engine