BLE

8 Posts

Matter Onboarding: Why It Is Not "Just Another Wireless Protocol"

11 minute

Matter field issues often sound very vague at first: the device supports Matter but cannot be added; it has already been added but the app still cannot find it; some devices in the same home connect instantly while others keep dropping. Once you break it apart, the bottleneck is often not in the same layer at all. Some devices never get past the BLE (Bluetooth Low Energy) onboarding entry. Some have already obtained Wi-Fi or Thread join material but still have not entered the target IP network. Some already have IPv6 addresses but have not been brought into the target Fabric. Others are already in the Fabric but fail later at runtime discovery, session establishment, or specific Cluster access.

Read More

BLE Mesh: Why It Is Not "Many BLE Devices Connected to Each Other"

14 minute

The easiest way to misunderstand BLE Mesh is to say: if many BLE devices are connected to each other, then it is a Mesh. That mistake is common because people already know BLE advertising, scanning, connections, and GATT service discovery, so it is tempting to think of Mesh as “just a BLE network with more connections.”

The real issue is that BLE Mesh is not about adding more Central/Peripheral connections, nor is it about making one node maintain many GATT sessions. It is more like a new networking style built on top of BLE air interfaces, where the system is redesigned around multi-node forwarding, address distribution, publish/subscribe behavior, and low-power reception.

Read More

BLE Advertising Analysis

10 minute

Problems such as “I cannot scan the device,” “the name appears only sometimes,” and “my filters seem to do nothing” are often not caused by having too many advertising fields. The real problem is that the observed object was never layered correctly in the first place. The advertising stage is usually where three things get mixed together:

  • The over-the-air Advertising PDU (Protocol Data Unit)
  • The AD Structure inside AdvData / ScanRspData
  • The actual stages of “discoverable,” “connectable,” and “ready for application data”

If those layers are not separated, packet captures, advertising layout, and scan results all get harder to interpret.

Read More

BLE Architecture Overview

10 minute

BLE problems often come from mixing phases, roles, and permissions into one bucket: being visible in a scan is not the same as being connected; being connected is not the same as being encrypted or ready for application data; and a successful mobile API callback does not mean every layer on the air interface and in the stack completed as expected.

If those boundaries are not separated early, later reading of GAP (Generic Access Profile), GATT (Generic Attribute Profile), ATT (Attribute Protocol), SMP (Security Manager Protocol), and Link Layer quickly collapses into one vague phrase: “the Bluetooth connection flow.”

Read More

BLE Link Layer / PHY

8 minute

The easiest place to misread BLE is the air interface: what looks like a GATT or business-logic problem often comes from connection events, retransmission, hopping, or link quality.

This article focuses on four things: how a connection starts from advertising, how connection events run, how ACK and retransmission affect the link, and why hopping and DLE (Data Length Extension) raise throughput and stability together.

Build the Smallest Useful Mental Model

From the top down, GAP describes what should happen, while Link Layer / PHY actually executes how packets are sent, when they are sent, on which channel, and whether they are retransmitted.

Read More

BLE GATT/ATT Protocol Analysis

12 minute

A successful connection does not automatically make the data plane clear. Many GATT problems are not caused by packets being lost. They are caused by not knowing what object is being accessed in the first place: Handle, UUID, Characteristic Value, and CCCD often get mixed together in logs.

This article focuses on the BLE 4.2 and later scenarios that matter most in development, integration, and packet analysis. Advertising and connection setup, pairing and bonding, security levels, and PHY/Data Length Extension are not expanded unless they directly affect GATT behavior.

Read More

BLE SMP Secure Pairing

24 minute

Many BLE field logs create a false impression: the device is already connected, so security should also already be done. That is not true. Permission errors, pairing failures, or pairing again after reconnecting usually mean that “connection exists” and “trust relationship established” have been mixed into one thing.

This article does not expand on Legacy Pairing, BR/EDR security mechanisms, or vendor SDK wrapper differences. It focuses only on the most common pairing, bonding, encryption, and privacy path.

Read More

BLE GAP Protocol Analysis

20 minute

BLE problems often first show up as “cannot connect” or “behaves unreliably.” If you trace one layer back, the root cause is usually still in GAP (Generic Access Profile): was the device actually discovered, did the connection really get established as expected, and did the connection parameters push latency or power in the wrong direction?

This article follows Bluetooth Core Specification 4.2 and covers only Legacy Advertising, the basic scan/connect flow, address types, and security levels. It does not expand into later features such as Extended Advertising, 2M PHY (2M Physical Layer), or Coded PHY.

Read More