LoRaWAN中间件模块

ModuleDescriptionLocation
LoRaMAC layerimplements the Link Layer specificationMiddlewares\Third_Party\LoRaWAN\Mac
Region layerimplements the Regional Parameters specification as dependant interface for the LoRaMAC layer moduleMiddlewares\Third_Party\LoRaWAN\Mac\Region
LoRa cryptoimplements AES/CMAC algorithms and interface with SecureEngine elementMiddlewares\Third_Party\LoRaWAN\Crypto
LmHandlerimplements the LoRaMac Handler public interface, Certification specifications and FUOTA packagesMiddlewares\Third_Party\LoRaWAN\LmHandler
LoRa utilitiesimplements the common utility functionsMiddlewares\Third_Party\LoRaWAN\Utilities

LoRaWAN版本说明

链路层和区域参数Regional Parameters 已经由LoRa联盟定义。当前LoRaWAN栈包含两个不同版本
• LoRaWAN Link Layer 1.0.3 Specification + LoRaWAN 1.0.3 Regional Parameters Specification
• LoRaWAN Link Layer 1.0.4 Specification (TS001-1.0.4) + LoRaWAN 2-1.0.1 Regional Parameters Specification (RP002-1.0.1)

可以手动选择使用哪个版本。

LoRa框架

stm32wl-lora-stack.png

MAC 使用802.15.4模型来控制SubGHz_Phy。同时,MAC 接口和SubGHz_Phy驱动使用定时器功能来添加和移除定时任务。

LoRa API

LoRaMAC layer 使用 MCPS 服务用于数据的发送和接收。

LoRaMacStatus_t LoRaMacMcpsRequest (McpsReq_t* mcpsRequest, bool allowDelayedTx)

LoRaMAC layer 使用 MLME 服务来管理 LoRaWAN 网络。

LoRaMacStatus_t LoRaMacMlmeRequest (MlmeReq_t *mlmeRequest )

MIB 用于存储重要的运行信息,比如MIB_NETWORK_ACTIVATION, MIB_NET_ID。可以保持一些LoRaMAC层的配置信息,比如MIB_ADR, MIB_APP_KEY等。

Sets attributes of the LoRaMAC layer.

LoRaMacStatus_t LoRaMacMibSetRequestConfirm (MibRequestConfirm_t *mibSet)

Gets attributes of the LoRaMAC layer.

LoRaMacStatus_t LoRaMacMibGetRequestConfirm (MibRequestConfirm_t *mibGet )

 

作者:SteveChen  创建时间:2025-11-22 07:36
最后编辑:SteveChen  更新时间:2025-11-22 08:18
上一篇:
下一篇: