Low Power Wide Area Networks (LPWAN): LoRaWAN and NB-IoT
In the previous lesson on IoT Connectivity Basics, we explored how devices talk to each other. However, when we need to connect thousands of sensors across a city or a farm without changing batteries for years, standard Wi-Fi or Bluetooth won't cut it. This is where Low Power Wide Area Networks (LPWAN) come into play.
What is LPWAN?
LPWAN is a type of wireless wide area network technology designed specifically for interconnecting devices with low-bandwidth requirements, focusing on long-range and power efficiency. Unlike your smartphone which needs daily charging, an LPWAN device can run on a single battery for over 10 years.
The LPWAN Hierarchy
[ High Bandwidth ] -> 5G, Wi-Fi 6 (Short Range, High Power)
[ Medium Bandwidth ] -> LTE-M (Medium Range, Medium Power)
[ Low Bandwidth ] -> LPWAN: LoRaWAN, NB-IoT (Long Range, Ultra-Low Power)
1. LoRaWAN (Long Range Wide Area Network)
LoRaWAN is a media access control (MAC) layer protocol built on top of the LoRa physical layer. It operates in the unlicensed spectrum (ISM bands like 868 MHz in Europe or 915 MHz in the US).
Key Characteristics of LoRaWAN
- Long Range: Up to 5km in urban areas and 15km in rural settings.
- Low Power: Devices stay in sleep mode most of the time, consuming micro-amps.
- Private Networks: You can set up your own LoRaWAN gateway without a telecom provider.
- Low Cost: No monthly subscription fees for data if you own the infrastructure.
LoRaWAN Architecture Diagram
[ End Nodes ] ----(LoRa)----> [ Gateways ] ----(IP/Ethernet)----> [ Network Server ] ----> [ App Server ]
(Sensors) (Receivers) (Management) (Data Visualization)
2. NB-IoT (Narrowband Internet of Things)
NB-IoT is a standards-based low power wide area technology developed by 3GPP. It operates in the licensed spectrum, meaning it uses existing cellular infrastructure (LTE/4G towers).
Key Characteristics of NB-IoT
- Reliability: Since it operates in licensed bands, there is less interference compared to LoRaWAN.
- Better Penetration: Excellent indoor and underground coverage (perfect for smart meters in basements).
- Carrier Managed: You rely on telecom providers (like T-Mobile or Vodafone) and pay a subscription fee.
- Higher Throughput: Can handle slightly more data compared to LoRaWAN.
LoRaWAN vs. NB-IoT: Which one to choose?
Choosing between these two depends on your project requirements. Here is a quick comparison:
- Spectrum: LoRaWAN is Unlicensed; NB-IoT is Licensed.
- Battery Life: LoRaWAN is generally better for very infrequent updates.
- Deployment: Use LoRaWAN for remote farms or private factories. Use NB-IoT for city-wide deployments where cellular coverage is already present.
- Latency: NB-IoT offers lower latency than LoRaWAN.
Real-World Use Cases
Smart Agriculture (LoRaWAN)
A farmer wants to monitor soil moisture across 500 acres. Since there is no cellular coverage in the remote fields, the farmer installs one LoRaWAN gateway on the farmhouse roof and connects hundreds of battery-powered sensors. The data travels 10km to the gateway without any monthly data charges.
Smart City Parking (NB-IoT)
A city council installs sensors under the asphalt in parking lots to detect car presence. Because the sensors are buried and surrounded by buildings, NB-IoT is chosen for its superior signal penetration and the fact that the city is already covered by a 4G/LTE network.
Common Mistakes in LPWAN Deployment
- Payload Size: Trying to send large images or high-frequency audio. LPWAN is for small packets (bytes, not megabytes).
- Duty Cycle Violations: In LoRaWAN, you cannot transmit 100% of the time. You must follow legal "airtime" limits (usually 1%).
- Ignoring Gateway Placement: Placing a LoRaWAN gateway behind a thick concrete wall significantly reduces its 15km range to a few hundred meters.
- Over-polling: Programming a device to send data every 10 seconds will kill a "10-year battery" in three months.
Interview Notes for IoT Engineers
- Question: What is the difference between LoRa and LoRaWAN?
- Answer: LoRa is the physical layer (the radio modulation), while LoRaWAN is the communication protocol and system architecture that sits on top of LoRa.
- Question: Why is NB-IoT preferred for underground applications?
- Answer: NB-IoT uses a higher power density and repeated transmissions to ensure the signal reaches difficult locations like basements or manholes.
- Question: What is the "Star of Stars" topology?
- Answer: It is the architecture used by LoRaWAN where end-devices talk to multiple gateways, which then forward data to a central network server.
Summary
LPWAN technologies have revolutionized the IoT landscape by solving the "Power vs. Range" dilemma. LoRaWAN is the king of private, low-cost, long-range deployments in remote areas. NB-IoT is the professional, licensed choice for reliable, urban, and deep-indoor applications. Understanding the trade-offs between these two is essential for any IoT architect.
In the next lesson, Topic 8: IoT Protocols: MQTT and CoAP, we will look at how the data actually gets formatted and sent to the cloud once the connection is established.