Scenario: You’re deploying Wi-Fi-based occupancy sensors across a 3-story office building. Calculate link budgets to determine AP placement and validate coverage.
Building Specifications:
- Dimensions: 50m × 30m × 12m (3 floors, 4m per floor)
- Construction: Concrete floors (15 dB loss), drywall partitions (5 dB loss)
- Layout: Open-plan offices with 2-3 drywall partitions per path
- Sensor specs: ESP32 with Wi-Fi (2.4 GHz), RX sensitivity -85 dBm, TX power +17 dBm
AP Specifications:
- Model: Enterprise Wi-Fi 6 (802.11ax)
- TX power: +20 dBm (100 mW, regulatory limit)
- Antenna gain: 5 dBi (omnidirectional)
- Placement: Ceiling-mounted (4m high)
- RX sensitivity: -90 dBm
Required Margin:
- Fade margin: 10 dB (accounts for people moving, furniture, multipath fading)
- Interference margin: 3 dB (2.4 GHz band congestion)
- Total required margin: 13 dB
Scenario 1: Same-Floor Corner Sensor
Path Description:
- AP at ceiling center (25m, 15m from walls)
- Sensor in corner office (diagonal corner)
- Distance: √(25² + 15²) = 29.15 meters
- Obstacles: 2 drywall partitions (5 dB each)
Link Budget Calculation:
Downlink (AP → Sensor):
TX Power (AP): +20 dBm
TX Antenna Gain: +5 dBi
EIRP: +25 dBm
Free-Space Path Loss (FSPL):
FSPL = 20log₁₀(0.02915) + 20log₁₀(2400) + 32.45 [d in km, f in MHz]
= -30.7 + 67.6 + 32.45
= 69.35 dB
Additional Losses:
Drywall (2 walls): -10 dB
Cable loss: -0.5 dB
Total Loss: -79.85 dB
RX Antenna Gain: +2 dBi (sensor)
RX Power: 25 - 79.85 + 2 = -52.85 dBm
RX Sensitivity: -85 dBm
Link Margin: -52.85 - (-85) = 32.15 dB
Required Margin: -13 dB
Excess Margin: 32.15 - 13 = **19.15 dB** ✓ EXCELLENT
Verdict: Same-floor corner has good headroom (19 dB excess). Can tolerate moderate fading.
Link budget formula: \(\text{Margin} = P_{\text{TX}} + G_{\text{TX}} - \text{FSPL} - L_{\text{walls}} + G_{\text{RX}} - S_{\text{RX}}\) where all values in dB. Worked example: +20 dBm TX + 5 dBi gain - 69.35 dB FSPL - 10 dB walls - 0.5 dB cable + 2 dBi RX - (-85 dBm) sensitivity = 32 dB margin. With 13 dB required (fade + interference), excess = 32 - 13 = 19 dB.
Scenario 2: Floor Above (Directly Above AP)
Path Description:
- Sensor directly above AP (one floor up)
- Distance: 4 meters vertical
- Obstacles: 1 concrete floor (15 dB loss)
Link Budget Calculation:
TX Power (AP): +20 dBm
TX Antenna Gain: +5 dBi
EIRP: +25 dBm
FSPL (4 meters):
FSPL = 20log₁₀(0.004) + 20log₁₀(2400) + 32.45 [d in km, f in MHz]
= -47.96 + 67.6 + 32.45
= 52.09 dB
Additional Losses:
Concrete floor: -15 dB
Total Loss: -67.09 dB
RX Antenna Gain: +2 dBi
RX Power: 25 - 67.09 + 2 = -40.09 dBm
Link Margin: -40.09 - (-85) = 44.91 dB
Excess Margin: 44.91 - 13 = **31.91 dB** ✓ EXCELLENT
Verdict: Floor above (best case, directly overhead) has 32 dB excess margin. Very healthy.
Scenario 3: Floor Above + Corner (Worst Case)
Path Description:
- Sensor in corner of floor above
- Distance: √(25² + 15² + 4²) = 29.41 meters (3D diagonal)
- Obstacles: 1 concrete floor (15 dB), 2 drywall partitions (10 dB)
Link Budget Calculation:
TX Power (AP): +20 dBm
TX Antenna Gain: +5 dBi
EIRP: +25 dBm
FSPL (29.41 meters):
FSPL = 20log₁₀(0.02941) + 20log₁₀(2400) + 32.45 [d in km, f in MHz]
= -30.63 + 67.6 + 32.45
= 69.42 dB
Additional Losses:
Concrete floor: -15 dB
Drywall (2 walls): -10 dB
Total Loss: -94.42 dB
RX Antenna Gain: +2 dBi
RX Power: 25 - 94.42 + 2 = -67.42 dBm
Link Margin: -67.42 - (-85) = 17.58 dB
Excess Margin: 17.58 - 13 = **4.58 dB** ⚠️ MARGINAL
Verdict: Floor above + corner is marginal with only 4.6 dB excess. Reliability concerns in production.
Scenario 4: Two Floors Below (Marginal Case)
Path Description:
- Sensor two floors below AP
- Distance: 8 meters vertical + 10m horizontal offset = √(8² + 10²) = 12.8 meters
- Obstacles: 2 concrete floors (30 dB), 1 drywall partition (5 dB)
Link Budget Calculation:
TX Power (AP): +20 dBm
TX Antenna Gain: +5 dBi
EIRP: +25 dBm
FSPL (12.8 meters):
FSPL = 20log₁₀(0.0128) + 20log₁₀(2400) + 32.45 [d in km, f in MHz]
= -37.86 + 67.6 + 32.45
= 62.19 dB
Additional Losses:
Concrete floors (2): -30 dB
Drywall: -5 dB
Total Loss: -97.19 dB
RX Antenna Gain: +2 dBi
RX Power: 25 - 97.19 + 2 = -70.19 dBm
Link Margin: -70.19 - (-85) = 14.81 dB
Excess Margin: 14.81 - 13 = **1.81 dB** ⚠️ MARGINAL
Verdict: Two floors down is marginal with under 2 dB excess. High risk of dropouts during fades.
Summary Table:
| Same floor, corner |
29m |
2 walls + cable |
-53 dBm |
32 dB |
19 dB |
Excellent |
| One floor up, center |
4m |
1 floor |
-40 dBm |
45 dB |
32 dB |
Excellent |
| One floor up, corner |
29m |
1 floor + 2 walls |
-67 dBm |
18 dB |
5 dB |
Marginal |
| Two floors down |
13m |
2 floors + 1 wall |
-70 dBm |
15 dB |
2 dB |
Marginal |
Design Recommendations:
1. AP Placement Strategy:
- 1 AP per floor minimum (two-floor penetration is marginal)
- AP spacing: 40-50m on same floor (ensures 20+ dB margin in corners)
- Ceiling-mount critical (reduces drywall penetration losses)
2. Coverage for 3-story building (50m × 30m per floor):
Floor area: 50m × 30m = 1,500 m²
AP coverage radius: 25m (with 10+ dB margin)
Coverage area per AP: π × 25² = 1,963 m²
APs per floor: 1,500 / 1,963 ≈ 1 AP (centrally placed)
Total APs: 3 floors × 1 AP = **3 APs minimum**
3. Enhanced Design (for redundancy):
- 2 APs per floor (one at each end)
- Provides seamless roaming (sensors never drop below -50 dBm)
- Failover if one AP dies (self-healing coverage)
- Total: 6 APs
Cost Comparison:
| Minimum (3 APs) |
3 |
3 × $250 = $750 |
Marginal at cross-floor edges, 2-5 dB excess |
| Standard (4 APs) |
4 |
4 × $250 = $1,000 |
Good, 15+ dB excess everywhere |
| Redundant (6 APs) |
6 |
6 × $250 = $1,500 |
Excellent, 25+ dB excess + failover |
Recommendation: 4 APs (1-2 per floor) balances cost and reliability. 3-AP design is cutting it too close (only 6 dB margin in worst case).
Key Insight: Concrete floors are the dominant loss factor (15 dB each). Directly above an AP is fine (32 dB excess), but floor + corner path drops to only 5 dB excess – insufficient for production. Two floors drops to under 2 dB. Always design for at least 10 dB excess margin after fade + interference budgets. The $250 cost difference between 3 and 4 APs is trivial compared to troubleshooting intermittent connectivity issues.