Package lorawan provides structures and tools to read and write LoRaWAN 1.0 and 1.1 frames from and to a slice of bytes.
The following structures are implemented (+ fields):
PHYPayload (MHDR | MACPayload | MIC)
MACPayload (FHDR | FPort | FRMPayload)
FHDR (DevAddr | FCtrl | FCnt | FOpts)
The Following message types (MType) are implemented:
The following MAC commands (and their optional payloads) are implemented:
airtime
functions for calculating TX time-on-airband
ISM band configuration from the LoRaWAN Regional Parameters specificationbackend
Structs matching the LoRaWAN Backend Interface specification objectbackend/joinserver
LoRaWAN Backend Interface join-server interface implementation (http.Handler
)applayer/clocksync
Application Layer Clock Synchronization over LoRaWANapplayer/multicastsetup
Application Layer Remote Multicast Setup over LoRaWANapplayer/fragmentation
Fragmented Data Block Transport over LoRaWANapplayer/firmwaremanagement
Firmware Management Protocol over LoRaWANgps
functions to handle Time <> GPS Epoch time conversionSee https://godoc.org/github.com/brocaar/lorawan. There is also an examples section with usage examples. When using this package, knowledge about the LoRaWAN specification is needed. You can download the LoRaWAN specification here: https://lora-alliance.org/lorawan-for-developers
For questions, feedback or support, please refer to the ChirpStack Community Forum: https://forum.chirpstack.io.
This package is distributed under the MIT license which can be found in LICENSE
.
LoRaWAN is a trademark of the LoRa Alliance Inc. (https://www.lora-alliance.org/).