When your phone “unlocks a door” over Bluetooth, there’s no gateway involved, it’s direct. Your phone and the lock’s BLE radio do a handshake (challenge – response – verification). The lock broadcasts a small “advertising” packet (basically shouting “I’m here, here’s my ID” a few times a second).
Your phone hears it. If it’s been paired/authorized before, they open a GATT connection, a lightweight client-server session where the lock exposes a few “characteristics.” Think; tiny labeled data slots; one might be “unlock_command”, another “battery_level”.
Your phone writes a signed token into the unlock characteristic. The lock’s firmware checks the signature against a stored key. If it matches, it fires the solenoid or motor. Range is a few meters, the whole exchange takes under a second. Your phone acts as both the initiator and the compute/identity layer.
That’s the entire trick of BLE; built for short bursts of low-stakes data between devices, at a fraction of the power cost of WiFi. A BLE peripheral (the lock, a sensor, a tag) can run for years on a coin cell precisely because it spends 99.9% of its life asleep, waking only to advertise or respond.
Where the gateway comes in?
A gateway exists for the case where there’s no phone to play that role. Picture 40 sensors bolted to machinery in a plant, or temperature tags on pallets in a warehouse. Nobody’s walking up to each one with a phone. The BLE gateway is a fixed (or mobile) device that does what your phone did. It listens for advertisements, opens connections, reads characteristics. Instead of doing it for one lock for one person, it can do it continuously for dozens, or hundreds, of BLE devices in range.
Structurally it’s a protocol bridge and an aggregator: BLE in one side (low power, short range, tiny data), IP network out the other side (routable, internet-facing). A gateway is usually mains-powered or has a much bigger battery. This dude is not trying to sip power the way the endpoint sensors are. It’s the one member of the network that’s allowed to be “expensive” in power terms. Everything else can be cheap. A BLE radio + coin cell sensor might cost a couple dollars and run 2-5 years unattended.


