Scenario: A smart agriculture deployment covers 500 soil moisture sensors across a 10 km x 10 km farm. One gateway is positioned at the farm center. Some sensors are at the farm perimeter (7 km from gateway). The network uses EU868 and must achieve 99% packet delivery reliability.
Given: - Gateway TX power: 27 dBm (500 mW, maximum allowed EU) - Gateway antenna gain: 6 dBi (omnidirectional, 6m height) - Sensor TX power: 14 dBm (25 mW, typical module) - Sensor antenna gain: 2 dBi (PCB antenna) - Frequency: 868 MHz - Environment: Rural agricultural (moderate foliage) - Required link margin: 10 dB (for fading, rain attenuation)
Step 1: Calculate free-space path loss at maximum distance
Using the Friis formula: \[FSPL = 20 \log_{10}(d) + 20 \log_{10}(f) + 32.45\]
For 7 km at 868 MHz:
FSPL = 20 x log10(7) + 20 x log10(868) + 32.45
FSPL = 16.9 + 58.8 + 32.45 = 108.15 dB
Step 2: Add environmental losses
Rural environment factor: +8 dB (vegetation, terrain)
Seasonal variation: +3 dB (wet foliage in rainy season)
Total path loss = 108.15 + 8 + 3 = 119.15 dB
Step 3: Calculate uplink link budget (sensor to gateway)
Transmit power (sensor): +14 dBm
Sensor antenna gain: +2 dBi
Path loss: -119.15 dB
Gateway antenna gain: +6 dBi
----------------------------------------
Received signal at gateway: -97.15 dBm
Step 4: Determine required spreading factor
Compare received signal to LoRa sensitivity at each SF:
| SF7 |
-123 dBm |
25.85 dB |
Excellent |
| SF8 |
-126 dBm |
28.85 dB |
Excellent |
| SF9 |
-129 dBm |
31.85 dB |
Excellent |
| SF10 |
-132 dBm |
34.85 dB |
Excellent |
With -97.15 dBm received signal, even SF7 provides 25.85 dB margin.
Required margin: 10 dB
Excess margin: 25.85 - 10 = 15.85 dB
Step 5: ADR recommendation
ADR analysis for 7 km sensors:
- Current link margin with SF7: 25.85 dB (15.85 dB excess)
- Recommendation: SF7 is optimal (maximum throughput)
- Capacity: 878 messages/hour under 1% duty cycle
For sensors closer to gateway (e.g., 1 km):
- FSPL at 1 km: 91.3 dB
- Received signal: -69.3 dBm
- Link margin with SF7: 53.7 dB (43.7 dB excess!)
- ADR could reduce TX power to save battery
Result: All 500 sensors can operate at SF7 with comfortable margin. The ADR algorithm will: 1. Confirm SF7 for perimeter sensors (25+ dB margin) 2. Potentially reduce TX power for sensors closer to gateway (energy savings) 3. Only increase SF if packet loss detected (interference, temporary obstruction)
Key Insight: Start with SF7 and let ADR optimize. Many deployments over-provision spreading factor “to be safe,” wasting 90% of potential throughput and battery life. The link budget calculation proves SF7 works at 7 km in rural conditions with 16 dB margin to spare.