Skip to content

v4.9.3

Latest

Choose a tag to compare

@lbm-team lbm-team released this 09 Nov 09:32

[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_VERSION selects 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.c for the example BSP
  • SX126x: PA power configuration tables in the example BSP (sx126x_pa_pwr_cfg.h)
  • Makefile: CSMA compilation flag
  • CMake: LBM_CMAKE_CONFIG_AUTO and RAL_DRIVER_DIRECT_DISPATCH options
  • Relay Tx: number_of_miss_wor_ack_to_switch_in_nosync_mode can now be configured by the user

Changed

  • Repository reorganization: sources moved under lbm/
    • lbm/lbm_lib: LoRa Basics Modem core, API and HAL
    • lbm/radio_planner
    • lbm/smtc_radio_interface: RAL, RALF and radio drivers
    • lbm/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_RAC selects the use of modem_radio)
  • Cleaned and simplified CMake architecture
  • Class B beacon DPLL: BEACON_PLL_PHASE_GAIN_MUL/DIV set 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_cut could 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_management variable was less than or equal to 96 bytes (context added)
  • Fixed missing check of SMTC_MULTICAST definition (Class B or C only)
  • smtc_modem_get_suspend_radio_communications() can no longer be called in test mode
  • Porting guide: CONTEXT_SECURE_ELEMENT needs 484 bytes
  • ALC SYNC and FUOTA package versions set to 2
  • Issue #141 Missing semicolons when SMTC_TRACE is 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 before ral_set_sleep(), FLRC packet length error reported
  • MAC commands answer size table: LINK_CHECK_ANS replaced by LINK_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() rejects fragCounter == 0 (row index underflow); frag_index bounds checked before use; frag_req_cmd_size table initialisation; unicast DataFragment refused on multicast-only sessions; fmp_test() duplicated declaration
  • Remote Multicast Setup: MC_GROUP_STATUS_REQ answer buffer bound check
  • Multi Package Access: MULTI_PACK_BUFFER_REQ read past the payload
  • Certification: TX_PERIODICITY_CHANGE_REQ and EchoPlayReq size 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/MAX macros brackets, CRYPTO_MAXMESSAGE_SIZE limited to 255 in the LR11xx crypto engine