Blog 2026-06-13
Who this is for: Embedded engineers, product managers, and IoT solution architects evaluating WiFi module choices for smart locks and related connected devices.
Core Issue: Smart locks need long standby time, secure remote access, and dependable wake behavior near doors where RF conditions are often poor.
Key Conclusions: This case study demonstrates that for smart locks, WiFi module selection must be driven by three interdependent metrics: deep-sleep current (<5 μA), wake-to-connect latency (<2 s), and reconnect reliability across diverse consumer routers. The selected Realtek RTL8720DN module achieved measurable improvements over the legacy BCM43362 across all three dimensions. The engineering approach — profiling router-specific DTIM behavior, implementing ARP-based keepalive during light sleep, and voltage-gated OTA chunking — is directly reusable for any battery-powered WiFi IoT device operating behind RF-attenuating enclosures. Detailed before/after metrics are in the Implementation Results section below.
A Tier-1 smart lock manufacturer approached us with a specific problem: their existing WiFi-enabled lock consumed 45 μA in deep sleep but required 320 mA peaks during OTA firmware updates, causing battery voltage to sag below the microcontroller’s brownout threshold. Field data from 2,100 deployed units showed 23% of support tickets related to “lock offline” events, with 68% of those traced to the WiFi module failing to reconnect after the lock entered low-power sleep mode.
The product required Wi-Fi connectivity for remote unlock, activity logging, and over-the-air credential updates. The constraint was non-negotiable: no hardware revision to the mainboard, existing 2.4 GHz dipole antenna in a metal-alloy door housing, and a 1,800 mAh battery budget (4× AA alkaline) that had to sustain 10 unlock operations plus 2 OTA connection windows per day for 18 months without replacement.
The project goal was to identify a WiFi module whose standby current, wake latency, and reconnect reliability could meet the 18-month battery target while maintaining >99% connection success rate through a metal door with -75 dBm RSSI at the worst installation point.
Challenge 1 — Battery vs. Connection Duty Cycle: The lock needed to stay connected (associated with the home AP) for remote unlock commands, but the WiFi module’s DTIM listen interval consumed 1-2 mA even in power-save mode. On a 1,800 mAh budget with 22% reserved for the motor and microcontroller, the WiFi subsystem had only 1,040 mAh to cover 18 months. Every extra millisecond of awake time translated directly into lost battery life. The target: keep average current below 120 μA per 24-hour period while maintaining 10 unlock transactions.
Challenge 2 — RF Environment Behind a Metal Door: Typical smart lock installations place the module behind a zinc-alloy or stainless-steel door face, which attenuates 2.4 GHz signals by 6-12 dB. In our field survey of 82 installed units, the average RSSI at the AP was -74 dBm, with 17% of units operating at -85 dBm or worse. At -85 dBm, the module’s packet retry rate exceeded 18% on 802.11n HT20, causing reconnect sequences that drew peak current for 4-8 seconds — a cycle that could repeat 5-6 times per hour in marginal coverage areas.
Challenge 3 — Consumer Router Compatibility: Smart locks are installed in homes with routers ranging from ISP-issued gateways to high-end mesh systems. In our lab testing across 14 consumer router models, we found three specific failure patterns: (1) TP-Link and D-Link routers with short DTIM intervals (1-3) caused the lock to wake too frequently, burning standby budget; (2) Eero and Google Wifi mesh systems used band steering that kicked the 2.4 GHz-only lock off the 5 GHz band after association, triggering a full reconnect; (3) some routers with WPA3 transition mode rejected the lock’s WPA2-only connection attempt after firmware reconnected from sleep, requiring a stored-credential retry mechanism.
| Failure Mode | Root Cause | Mitigation | Module Selection Implication |
|---|---|---|---|
| Battery depleted in 8 months (target: 18) | DTIM interval mismatch: lock woke every 100 ms on some routers | Added router-profile table in firmware; adjust listen interval per AP beacon | Module must support variable DTIM listen interval in firmware — not all 802.11n modules expose this control |
| Lock shows “offline” after 2+ days idle | Module entered deep sleep but lost DHCP lease; wake reconnect timed out | Store DHCP lease; use ARP keepalive via host every 60 s in light sleep | Module needs ARP-offload or host-controlled keepalive during light sleep; deep-sleep-only modules cannot support this |
| OTA update fails mid-download | Battery voltage sag below 3.0 V during 320 mA TX peak | Current-limit OTA to 2 KB chunks with voltage check between chunks | Module TX peak current directly sets brownout risk — RTL8720DN’s 180 mA peak vs BCM43362’s 260 mA was a deciding factor |
| Consumer calls support: “lock worked for a week, then stopped” | Router channel change forced module deauth; reconnect logic had no retry backoff | Implement exponential backoff with link-quality recheck before reconnect | Module must allow fast re-association (sub-2 s) after deauth — modules with 4-8 s reconnect sequences trigger user complaints |
We evaluated three candidate modules across different power profiles: the Espressif ESP32-C6 (802.11ax, 5 μA deep sleep, ~210 mA TX), the Realtek RTL8720DN (802.11n, 3.5 μA deep sleep, ~180 mA TX with BLE coexistence), and a legacy Broadcom BCM43362 (802.11n, 12 μA deep sleep, ~260 mA TX).
The ESP32-C6 was eliminated early despite its excellent standby current — the host MCU on the existing mainboard was an ARM Cortex-M4, and adding a RISC-V co-processor for the WiFi stack would require a full firmware rewrite and recertification. The Broadcom module was already in use and the primary source of the “offline” complaints: its reconnect sequence after deep sleep took 4-8 seconds, during which the lock appeared unresponsive to the cloud backend.
The RTL8720DN was selected because it matched three critical criteria: (1) 3.5 μA deep sleep current with wake-on-pin support fit within the battery budget, (2) the module’s DTIM-based sleep scheduling allowed the lock to stay associated with the AP while drawing only 1.2 mA in light sleep, and (3) it supported an 802.11n 1×1 configuration via SDIO 2.0 that was pin-compatible with the existing mainboard’s SDIO host controller, requiring no PCB respin. The BLE 5.0 coexistence was a bonus — it enabled in-field proximity unlock without additional hardware.
Validation results confirmed the choice: wake-to-cloud-ack latency dropped from 8.5 s (average with the BCM43362) to 1.2 s (average with the RTL8720DN), and the estimated battery life at 10 unlocks + 2 OTA windows per day increased from 9 months to 18 months based on current-draw profiling across a 72-hour test cycle.
The specification profile below was measured with the RTL8720DN module inside a metal door strike plate 12 m from the AP with RSSI -88 dBm. Values reflect measured power consumption with 60-minute report interval and event-triggered wake, not continuous-connection datasheet current numbers.
| Parameter | Specification |
|---|---|
| Frequency Band | 2.4 GHz (with BLE 5.0 coexistence) |
| WiFi Standard | 802.11n, 1×1 |
| Deep Sleep Current | 3.5 μA (wake-on-pin) |
| Light Sleep (DTIM=3, Associated) | 1.2 mA |
| TX Peak Current (802.11n HT20) | 180 mA at +16 dBm |
| Max Data Rate | 72 Mbps (HT20), 150 Mbps (HT40) |
| Wake-to-Cloud-Ack Latency | 1.2 s average (measured) |
| Interface | SDIO 2.0 (pin-compatible with existing mainboard) |
| Operating Temp | -20 C to +70 C |
The implementation was validated on 2,100 deployed units over 6 months. The primary metric was actual battery replacement rate vs. the projected 18-month target, and the secondary metric was the “lock offline” ticket volume from customer support. The RTL8720DN-equipped locks showed zero battery-related replacements within the observation window (compared to 12% annual replacement rate with the BCM43362), and the “offline” ticket rate dropped from 23% of all tickets to 2.4%.
The strongest evidence is not a single speed number. It is the combination of battery life under real TWT accuracy (months), door lock command delivery rate at -88 dBm RSSI, and wakeup latency from deep sleep — measured with the module inside a metal door strike plate at 12 m range, not on a desk next to the AP.
| Metric | Before (BCM43362) | After (RTL8720DN) |
|---|---|---|
| Average Current per 24 h (10 unlocks + 2 OTA windows) | 340 μA (estimated battery: 9 months) | 82 μA (estimated battery: 18 months) |
| Wake-to-Cloud-Ack Latency (p95) | 8.5 s | 1.2 s (router-profile DTIM adjustment) |
| Reconnect Success after Deep Sleep (14 router models) | 73% (failed on 4 models) | 100% (pass on all 14 models) |
| Deep Sleep to Active State Transition | 4-8 s (BCM43362 reconnect sequence) | 1.8-2.2 s (RTL8720DN with stored DHCP lease) |
These results are specific to the smart lock low power deployment scenario with 3 field sites and the described door strike plate RF attenuation profile. Installations with different door frame materials (wood vs. metal fire-rated), distances, or AP models will see different battery life numbers, but the evaluation methodology — measuring TWT accuracy, sleep current, and deep-to-active wake latency — transfers to any battery-powered lock design.
Based on this project’s findings, use the following smart-lock-specific checklist as the release gate:
The evaluation methodology — TWT accuracy measurement, sleep current with real AP beacon timing, and deep-to-active wake latency — transfers to adjacent products that share the same core constraints: battery power, limited antenna space, and intermittent user interaction. The following scenarios adjust the residential smart lock parameters (1,800 mAh 4×AA, 10 unlocks/day, metal-door 6-12 dB attenuation) to match each deployment class.
Most likely the home router changed its channel or rebooted for a firmware update. The WiFi module may have re-associated with the AP, but the cloud backend didn’t update the lock’s online status. The fix is to implement a periodic keepalive heartbeat from the lock to the cloud (every 60 minutes in light sleep) and an ARP-based keepalive to maintain the AP’s ARP cache entry. This ensures the cloud backend always reflects the real connection state.
Yes, significantly. A router with DTIM=1 forces the WiFi module to wake every 100 ms (10 beacons per second). At 1.2 mA in light sleep, that’s 10x more wake events than DTIM=3 (wake every 300 ms). Over 18 months, the difference is 200-400 mAh — roughly 30-50% of the total battery budget. Setting the router to DTIM=3 is the single most effective battery optimization for WiFi smart locks.
2.4 GHz only. A zinc-alloy or stainless steel door face attenuates 5 GHz by 12-18 dB vs. 6-12 dB on 2.4 GHz. At -85 dBm on 5 GHz, the packet retry rate exceeds 20% and the module burns through the battery budget by retransmitting. Some locks claim dual-band support, but for battery-powered through-metal-door installations, 2.4 GHz with a tuned antenna is the only reliable choice.
Mesh systems like Eero and Google Wifi actively band-steer clients between bands. A 2.4 GHz-only lock gets kicked off the mesh when the system decides it should connect to a 5 GHz node (which it can’t). This triggers a full reconnect cycle that drains battery and causes 30-120 s of offline time. The mitigation is to configure a dedicated IoT SSID on the mesh’s 2.4 GHz radio only — or use a dedicated Wi-Fi bridge near the lock.