跳到正文
DEV Community· Xingliao Smart Home·· 5 小時前AI 評分38

智能門鎖遠端解鎖為何涉及三段連線,而非一段:為何會在門口失靈

Remote Unlock Is Three Links, Not One: Why a Smart Lock Fails at the Front Door

AI 導讀

智能門鎖的遠端解鎖要經過手機至雲端、雲端至橋接器、橋接器至門鎖三段連線,任何一段都可能出現故障。門鎖透過 BLE 省電休眠會增加指令延遲,而橋接器的位置及與門鎖之間的無線訊號亦會影響解鎖。離線密碼不依賴這三段連線,適合作為遠端解鎖以外的入門方式。

正文

The short answer: pressing "unlock" in an app does not talk to your lock. It talks to a server, the server talks to a bridge, and the bridge talks to a lock that spends most of its life asleep. Three hops, three different radios, three different failure modes. Almost every "my smart lock stopped responding" complaint is one of those hops, and people keep fixing the wrong one by buying a better Wi-Fi router.

The three hops

Hop one is your phone to the vendor cloud. This is the hop people actually test, because it is the only one with a visible spinner in the app. If your phone has mobile data, this hop is almost never the problem.

Hop two is the cloud to something inside your house. A battery-powered lock cannot keep a Wi-Fi radio awake and still last a year on four AA cells, so most locks speak Bluetooth Low Energy and rely on a bridge: a gateway plugged into a wall socket, a hub, or sometimes another always-on device acting as a proxy. The cloud pushes to the bridge over your home internet.

Hop three is the bridge to the lock, over BLE, through a door.

Only the third hop is actually about the lock, and it is the one nobody measures.

Why the lock is usually asleep

A BLE lock is not a listening device. To save power it sleeps and wakes on a schedule, and the schedule is a compromise the manufacturer made between battery life and responsiveness. Wake every second and the batteries die in a month. Wake every few seconds and you get a year of battery but a command can sit in the bridge waiting for the lock to come up.

That delay is normal behavior, not a defect. It is also why the same lock can feel instant when you are standing in front of it — your phone is talking directly to it over BLE, waking it with the proximity of the connection attempt — and sluggish when you are three kilometers away and the command has to queue.

If your remote unlock "sometimes takes ten seconds and sometimes never arrives," look at sleep interval and bridge placement before you look at anything else.

The bridge is a range problem wearing a network costume

BLE is 2.4 GHz. A front door is frequently the worst place in a house for 2.4 GHz: metal door leaf or metal security screen, a concrete or brick reveal, sometimes a foil-backed insulation layer. The bridge is usually plugged in wherever there was a free socket, which is rarely within a couple of meters of the lock and on the same side of that metal.

Practical consequences:

  • The bridge being "connected" in the app only proves hop two. It says nothing about whether the bridge can hear the lock.
  • Moving the bridge two meters can change everything. Moving the router two meters changes nothing.
  • Adding a second bridge often fixes it, which is a hint that it was always a radio problem.
  • A metal security door can cost you more link budget than two interior walls.

The honest test: stand outside with the door closed and have someone inside trigger a remote unlock. Time it. Then open the door and time it again. If the second one is consistently faster, you have a link-budget problem, not a lock problem.

Wi-Fi locks take the other side of the trade

A lock with its own Wi-Fi radio skips the bridge entirely, which removes a whole failure class: no bridge to place, no BLE range to fight, no proxy firmware to keep alive. The price is power. A Wi-Fi association is expensive, and a lock that maintains one is a lock you charge or re-battery far more often — or one that is mains-assisted, which puts you back into "does my door have power" territory.

There is no free version of this. Always-listening costs energy; sleeping costs latency. Which one you want depends on whether you care more about remote access or about changing batteries once a year.

Video locks change the question

Once a lock has a camera and a doorbell function, it is no longer just an actuator. It has to wake on a press, stream video, and still be able to throw a bolt. That is a lot for a battery device, and manufacturers solve it by splitting the work: a low-power sensor watches for the press, the main radio comes up for the stream, and the bolt motor is driven by a separate supply or a large capacitor buffer.

The practical upside is that you can see who you are unlocking for. The practical downside is that a device with a camera in it is a device with a much harder power budget, so "why does the battery drop fast in winter" is a question about energy, not about a defective cell.

The thing that actually works when you are away: offline codes

This is the part most buyers never get told. Nearly every lock in this class supports time-limited or one-time codes, and the good implementations generate them in the app without the lock needing to be online. The code is derived from a shared secret and the current time, the same way a two-factor code works. You can hand someone a code in a message while your lock is offline, your internet is down, and your bridge is unplugged, and it will still work at the keypad.

That makes offline codes the only remote-entry method that does not depend on hop one, two, or three. For a cleaner, an Airbnb guest, a dog walker, or a family member, it is strictly more reliable than remote unlock — and it leaves an audit trail of which code was used.

If you take one operational rule from this article: set your temporary codes before you need them, and keep remote unlock as a convenience rather than your plan.

Match the entry method to the failure mode

  • Fingerprint — fastest for residents, but a capacitive sensor reads a ridge pattern on skin. Very dry winter skin, worn ridges, water film, and cold all degrade it. Register the same finger two or three times from slightly different angles; it doubles your hit rate.
  • Face / palm — convenient and hands-free, but it is a powered optical system. Strong backlight at a glazed entrance and very low sun angles are the usual complaints. Check whether the model is structured-light or stereo, and whether it has an anti-spoofing check, before you trust a spec sheet.
  • PIN — the least glamorous and the most robust. Works with gloves, in the rain, in the dark, when your phone is dead. Shoulder-surfing is the main risk; a scrambling keypad or a dummy-digit habit mitigates it.
  • Mechanical key — the only method that does not care about firmware, radios, or batteries. Keep one outside the door, with someone you trust.

Design for the lockout, not the convenience

Two boundaries worth stating plainly.

First: never defeat the latch or the deadbolt throw to save battery. If a lock is straining, the fix is alignment, door prep, or a different backset — not a smaller motor duty cycle. A lock that reports "locked" while the bolt is only half-thrown is worse than no lock.

Second: keep an emergency entry path that does not need an app. That means a physical key held outside the door, and for battery models, knowing where the emergency contacts are so a flat power bank can get you in. Then actually test it once, on a day you are not locked out, because emergency contacts hidden behind a cover you have never opened are not a plan.

What to ask before you order

  1. Does it need a bridge, and is the bridge included or a separate SKU?
  2. What is the BLE wake interval, and is there a "fast response" mode with a stated battery-life cost?
  3. Are temporary codes generated offline, or does the lock need to be online to accept one?
  4. How many codes can be active at once, and can you name them per user?
  5. Is there an event log you can export, and does it distinguish code entry from remote unlock?
  6. What is the emergency power method, and where are the contacts?
  7. Does the door prep match your door — backset, door thickness, and whether it is a multi-point or a single latch?

If a supplier cannot answer number three in one sentence, they do not understand the product they are selling.

A lock is the one smart home device where the failure state is "you cannot get into your house." That is worth spending an extra ten minutes on before you choose.

I work on the manufacturing side of this category, so I am biased toward the questions that show up in returns and support tickets rather than the ones that show up in marketing. The remote-unlock complaints are almost always a bridge placement or a sleep-interval issue, and the fix is usually free.

If you are comparing locks or specifying one for a project, the range we build is here: smart door locks — including a video intercom lock with 3D face recognition, a 3D face and palm vein model, and a Bluetooth knob lock for interior or light-duty doors.

來源:DEV Community · dev.to