liminfo

LoRaWAN Reference

Free reference guide: LoRaWAN Reference

25 results

About LoRaWAN Reference

The LoRaWAN Reference is a searchable quick-reference guide for the LoRaWAN protocol covering device classes (Class A for battery-powered sensors with lowest power, Class B with beacon-synchronized scheduled receive windows, Class C for always-on mains-powered devices), multicast group messaging, and the complete OTAA (Over-The-Air Activation) and ABP (Activation By Personalization) join procedures including DevEUI, AppEUI/JoinEUI, AppKey, DevAddr, and session key derivation.

Frequency and power management topics include ISM band plans for all major regions (EU868, US915, KR920, AS923, AU915), channel plans with specific frequencies and data rates, spreading factor tradeoffs (SF7 for short range/fast vs. SF12 for long range/slow), data rate indices (DR0-DR5), TX power settings, ADR (Adaptive Data Rate) for automatic optimization, duty cycle regulations, and link budget calculations for range estimation with receiver sensitivity values.

Security and infrastructure sections cover AES-128 payload encryption, NwkSKey and AppSKey session keys, MIC (Message Integrity Code) verification, frame counter replay protection, gateway architecture with SX1301/SX1302 concentrators, packet forwarder protocols (Semtech UDP and BasicStation), network server functions (ChirpStack, TTN), MAC commands (LinkCheck, LinkADR, DevStatus), and TDOA-based geolocation. All lookups run entirely in your browser.

Key Features

  • LoRaWAN device classes explained: Class A (lowest power, uplink-triggered RX), Class B (beacon-synchronized ping slots), Class C (always-on RX), and multicast
  • Complete OTAA and ABP activation procedures with DevEUI, AppEUI/JoinEUI, AppKey, JoinRequest/JoinAccept, and Rejoin (LoRaWAN 1.1)
  • ISM band frequency plans for EU868, US915, KR920, AS923, and AU915 with channel frequencies and data rates
  • Spreading factor (SF7-SF12) tradeoffs, data rate indices (DR0-DR5), TX power settings, and link budget calculations
  • ADR (Adaptive Data Rate) for automatic SF/TX optimization and duty cycle regulation compliance
  • AES-128 encryption, NwkSKey/AppSKey session keys, MIC integrity verification, and frame counter replay protection
  • Gateway architecture (SX1301/SX1302), packet forwarder (UDP/BasicStation), network server (ChirpStack, TTN), and MAC commands
  • 100% browser-based with category filtering and dark mode — no account, no download, completely free

Frequently Asked Questions

What is the difference between LoRaWAN Class A, Class B, and Class C?

Class A is the default, lowest-power mode: the device transmits an uplink, then opens two short receive windows (RX1 after 1 second, RX2 after 2 seconds). Downlinks can only be sent during these windows. Class B adds beacon-synchronized scheduled receive slots (ping slots), allowing the server to send downlinks at predictable times -- useful for actuator control. Class C keeps the receive window open whenever not transmitting, giving the lowest downlink latency but highest power consumption -- suitable for mains-powered devices like streetlights.

What is the difference between OTAA and ABP activation?

OTAA (Over-The-Air Activation) is the recommended method. The device uses DevEUI (unique device ID), AppEUI/JoinEUI (application ID), and AppKey (root key) to perform a JoinRequest/JoinAccept handshake with the network server, which dynamically derives session keys (NwkSKey, AppSKey) and assigns a DevAddr. ABP (Activation By Personalization) pre-provisions DevAddr, NwkSKey, and AppSKey directly on the device, skipping the join procedure. ABP is simpler but less secure because keys never rotate, and frame counter resets after power loss can cause packet rejection.

What ISM frequency bands does LoRaWAN use by region?

LoRaWAN uses license-free ISM bands that vary by region: EU868 (868 MHz, Europe), US915 (915 MHz, North America), KR920 (920 MHz, South Korea), AS923 (923 MHz, Asia-Pacific), and AU915 (915 MHz, Australia). Each region has specific channel plans, data rate ranges, TX power limits, and duty cycle regulations. For example, KR920 uses channels at 922.1, 922.3, and 922.5 MHz with data rates from DR0 (SF12/125kHz, 250 bps) to DR5 (SF7/125kHz, 5470 bps).

How do spreading factors affect LoRaWAN range and data rate?

Spreading Factor (SF) ranges from SF7 to SF12. Lower SF (SF7) gives faster transmission, shorter range, and lower power consumption. Higher SF (SF12) gives slower transmission, longer range, and higher power consumption. Each SF increase roughly doubles the airtime and range. SF12 achieves receiver sensitivity of -137 dBm, enabling multi-kilometer range, while SF7 achieves -123 dBm for shorter distances but 5470 bps throughput. ADR (Adaptive Data Rate) automatically selects the optimal SF based on link quality.

How does LoRaWAN security work with AES-128?

LoRaWAN uses two session keys: NwkSKey (Network Session Key) for MAC command encryption and MIC (Message Integrity Code) calculation, and AppSKey (Application Session Key) for payload encryption. Encryption uses AES-128 in CTR mode: the device generates A_i blocks from direction, DevAddr, frame counter, and block number, then encrypts them with AppSKey to produce an S_i keystream XORed with the plaintext. MIC is a 4-byte AES-128 CMAC calculated with NwkSKey. Frame counters (FCntUp, FCntDown) prevent replay attacks.

What is ADR and how does it optimize LoRaWAN networks?

ADR (Adaptive Data Rate) is a mechanism where the network server automatically adjusts the device's spreading factor (SF) and TX power based on received signal quality. When ADR is enabled, the server analyzes uplink SNR/RSSI over multiple packets, then sends a LinkADRReq MAC command to change the data rate and TX power. This optimizes both battery life (by using the lowest necessary SF and TX power) and network capacity (by reducing airtime). ADR should be enabled for stationary devices but disabled for mobile ones.

What components make up a LoRaWAN gateway?

A LoRaWAN gateway consists of: 1) A concentrator chip (Semtech SX1301 or SX1302) that can simultaneously receive on 8+ channels with different spreading factors. 2) GPS module for Class B beacon timing synchronization. 3) Backhaul connection (Ethernet, 4G/LTE, or Wi-Fi) to forward packets to the network server. 4) Packet forwarder software -- either the legacy Semtech UDP Packet Forwarder (PUSH_DATA, PULL_RESP, TX_ACK messages) or the newer WebSocket-based BasicStation protocol. The network server (e.g., ChirpStack, TTN) handles device authentication, deduplication, ADR, and application routing.

Is this LoRaWAN reference free to use?

Yes, the LoRaWAN Reference is completely free with no usage limits, no account registration, and no software download required. All lookups run locally in your browser, so no data is ever transmitted to any server. It is part of liminfo.com's collection of free online IoT, embedded systems, and networking tools.