Wireless Notes
Learn LoRa and LoRaWAN with chirp spread spectrum, 10-15 km range, LPWAN architecture, gateway server cloud, spreading factor, and applications in agriculture smart city meters for engineering students.
Introduction to LoRa Technology
LoRa stands for Long Range, and it is a physical layer modulation technique developed by Semtech Corporation. It enables extremely long-range wireless communication β typically 10 to 15 kilometers in rural environments β while consuming remarkably little power. Think of it this way: a small sensor running on a coin-cell battery can transmit data to a gateway several kilometers away and keep doing this for 5 to 10 years without needing a battery replacement.
The key insight behind LoRa is that many IoT applications do not need high data rates. A soil moisture sensor only needs to send a few bytes every 30 minutes. A water meter reports a reading once per hour. For these applications, sacrificing speed for range and power efficiency is an excellent trade-off. LoRa delivers data rates of just 0.3 to 50 kbps, but in return, it offers kilometer-scale range on microwatts of power.
LoRa belongs to the LPWAN (Low Power Wide Area Network) family of technologies, sitting alongside NB-IoT and Sigfox. What makes LoRa particularly attractive is that it operates in unlicensed ISM bands, meaning you can deploy your own private network without paying spectrum fees to telecom operators.
How Chirp Spread Spectrum (CSS) Works
The magic behind LoRa's range lies in its modulation technique called Chirp Spread Spectrum. Unlike conventional modulation where a symbol is transmitted at a fixed frequency, CSS encodes data using frequency sweeps called "chirps." An up-chirp sweeps from a low frequency to a high frequency, and a down-chirp does the opposite.
Here is why this matters for range: spread spectrum signals can be decoded even when they arrive below the noise floor. The receiver correlates the incoming signal against expected chirp patterns, effectively "pulling" the data out of the noise. This gives LoRa approximately 20 dB of link budget advantage over conventional FSK modulation at the same data rate.
Spreading Factor (SF): LoRa uses spreading factors from SF7 to SF12. A higher spreading factor means each symbol takes longer to transmit (slower data rate) but can be decoded at weaker signal levels (longer range). SF7 gives maximum speed (~11 kbps) at shorter range, while SF12 provides maximum range but at only ~290 bps. The network automatically assigns spreading factors based on link quality β devices close to the gateway use SF7, distant ones use SF12.
| Spreading Factor | Data Rate (approx.) | Range (relative) | Time on Air |
|---|---|---|---|
| SF7 | 11 kbps | Shortest | Fastest |
| SF8 | 6.25 kbps | Short | Fast |
| SF9 | 3.5 kbps | Medium | Moderate |
| SF10 | 2 kbps | Long | Slow |
| SF11 | 1 kbps | Longer | Slower |
| SF12 | 290 bps | Longest | Slowest |
ποΈ LoRaWAN Architecture
While LoRa is the physical layer (radio modulation), LoRaWAN is the network protocol that runs on top of it. LoRaWAN defines how devices join the network, how messages are routed, how security is handled, and how devices are managed at scale.
Key architectural points:
- Gateways are transparent bridges β they simply forward all received packets to the network server. A single gateway can serve thousands of end devices.
- Multiple gateways can receive the same packet (spatial diversity), and the network server deduplicates them. This improves reliability without requiring retransmissions.
- End devices do not associate with a specific gateway. They broadcast, and any gateway in range picks up the message.
LoRaWAN Device Classes
LoRaWAN defines three device classes that trade latency for power consumption:
| Class | Behavior | Latency | Power | Use Case |
|---|---|---|---|---|
| Class A | Opens two short receive windows after each uplink | High (waits for next uplink) | Lowest | Sensors, meters |
| Class B | Scheduled receive windows using beacons | Medium (predictable slots) | Medium | Actuators needing periodic commands |
| Class C | Continuously listening (except when transmitting) | Low (near real-time) | Highest | Mains-powered actuators, streetlights |
Most battery-powered IoT devices use Class A because it minimizes radio-on time. The device sleeps most of the time and only briefly listens for downlink messages after it transmits.
π Applications
| Application | Data Sent | Frequency |
|---|---|---|
| Smart agriculture (soil moisture) | 10 bytes | Every 30 min |
| Water/gas meters | 20 bytes | Daily/hourly |
| Parking sensors | 5 bytes | On event |
| Asset tracking | GPS coordinates | Every 5-15 min |
| Air quality monitoring | 30 bytes | Every 10 min |
| Flood detection | Alert | On event |
| Smart waste bins | Fill level | Every few hours |
| Livestock tracking | Location + health | Periodic |
Practical example: Consider a smart agriculture deployment. A farmer installs 50 soil moisture sensors across 100 acres. Each sensor has a LoRa radio module and runs on two AA batteries. Every 30 minutes, each sensor wakes up, reads the soil moisture level, packages it into a 10-byte payload, transmits it to a gateway mounted on a barn 3 km away, and goes back to sleep. The gateway forwards all readings to a cloud server, which triggers irrigation valves when moisture drops below a threshold. The entire system costs under $500 in hardware and the batteries last 5+ years.
βοΈ LoRa vs NB-IoT vs Sigfox
| Parameter | LoRa | NB-IoT | Sigfox |
|---|---|---|---|
| Spectrum | Unlicensed | Licensed (telecom) | Unlicensed |
| Range | 10-15 km | 10-15 km | 30-50 km |
| Speed | 0.3-50 kbps | 200 kbps | 100 bps |
| Power | Ultra-low | Low | Ultra-low |
| Cost (module) | $3-5 | $5-10 | $2-3 |
| Network | Private or public | Telecom operated | Sigfox operated |
| Bidirectional | Yes | Yes | Limited |
| QoS | Best effort | Guaranteed | Best effort |
| Best for | Private IoT networks | Telecom IoT | Simple monitoring |
When to choose LoRa: You want to own and control your network, you need coverage in areas without cellular infrastructure, or you want to avoid monthly subscription fees. LoRa is ideal for campus deployments, agricultural land, and industrial sites.
When to choose NB-IoT: You need guaranteed quality of service, your devices are in areas with good cellular coverage, and you prefer to pay a per-device subscription rather than managing your own infrastructure.
Security in LoRaWAN
LoRaWAN implements end-to-end encryption using AES-128. Two separate session keys protect different aspects:
- Network Session Key (NwkSKey): Encrypts the network-layer header and ensures message integrity between the device and network server.
- Application Session Key (AppSKey): Encrypts the application payload end-to-end, meaning even the network operator cannot read your data.
Device activation can happen via OTAA (Over-The-Air Activation) where keys are negotiated dynamically, or ABP (Activation By Personalization) where keys are pre-programmed. OTAA is strongly recommended for production deployments because it provides better security through session key rotation.
Duty Cycle Regulations
Because LoRa uses unlicensed spectrum, regulators impose duty cycle limits to ensure fair sharing. In Europe, devices in the 868 MHz band are limited to 1% duty cycle β meaning a device can only transmit for 36 seconds per hour. This constraint naturally fits IoT applications that send small, infrequent messages, but it must be carefully considered during system design. If your sensor needs to report more frequently, you may need to use shorter packets or multiple sub-bands.
π Summary
LoRa delivers long range (10-15 km), ultra-low power consumption (5-10 year battery life), and minimal cost (under $5 per module) β making it the ideal physical layer for IoT sensors that send small, infrequent data. LoRaWAN adds the network protocol layer with device management, security (AES-128 encryption), and three device classes for different latency needs. The technology is growing rapidly in smart agriculture, utilities metering, smart cities, and industrial monitoring worldwide. Its ability to operate on unlicensed spectrum with private network deployment gives organizations full control over their IoT infrastructure without recurring telecom fees.
Exam Focus
Revise definitions, diagrams, examples, and short-answer points for LoRa and LoRaWAN Long Range IoT Communication.
Interview Use
Prepare one clear explanation, one practical example, and one common mistake for this Wireless Communications topic.
Search Terms
wireless-communications, wireless communications, wireless, communications, network, technologies, lora, and
Related Wireless Communications Topics