官方核心文档
3 ADVERTISING STATE
[[Core_v5.4.pdf#page=2945&selection=12,0,12,19|Core_v5.4, page 2,945]]
广播流程
非定向广播流程图
3.1 UNDIRECTED ADVERTISING
[[Core_v5.4.pdf#page=2945&selection=13,0,15,22|Core_v5.4, page 2,945]]
Host A | LL A | LL B | Host B | ||
---|---|---|---|---|---|
<----- | LE Set Advertising Parameters | ||||
Command Complete | -----> | ||||
<----- | LE Read Advertising Physical Channel Tx Power | ||||
Command Complete | -----> | ||||
<----- | LE Set Advertising Data | ||||
Command Complete | -----> | ||||
<----- | LE Set Scan Response Data | ||||
Command Complete | -----> | ||||
<----- | LE Set Advertising Enable ( Enable ) | ||||
Command Complete | -----> | ||||
<-- Advert -- | |||||
<-- Advert -- | |||||
<-- Advert -- | |||||
<----- | LE Set Advertising Enable ( Disable ) | ||||
Command Complete | -----> |
- Host A: A 主机
- LL A: A 链路层
- Host B: B 主机
- LL B: B 链路层
扫描流程
被动扫描
4.1 PASSIVE SCANNING
[[Core_v5.4.pdf#page=2959&selection=13,0,15,16|Core_v5.4, page 2,959]]
Host A | LL A | LL B | Host B | ||
---|---|---|---|---|---|
LE Set Scan Parameters | -----> | ||||
<----- | Command Complete | ||||
LE Set Scan Enable | -----> | ||||
<----- | Command Compelte | ||||
<-- Advert -- | |||||
<----- | LE Advertising Report | ||||
- | |||||
- | |||||
- | |||||
<-- Advert -- | |||||
<----- | LE Advertising Report | ||||
LE Set Scan Enable ( disable ) | -----> | ||||
<----- | Command Complete |
主动扫描
4.2 ACTIVE SCANNING
[[Core_v5.4.pdf#page=2960&selection=12,0,14,15|Core_v5.4, page 2,960]]
Host A | LL A | LL B | Host B | ||
---|---|---|---|---|---|
LE Set Scan Parameters | -----> | ||||
<----- | Command Complete | ||||
LE Set Scan Enable ( Enable ) | -----> | ||||
<----- | Command Complete | ||||
<-- Advert -- | |||||
-- SCAN_REQ --> | |||||
<-- SCAN_RSP -- | |||||
<----- | LE Advertising Report | ||||
<-- Advert -- | |||||
-- SCAN_REQ -->× | |||||
<----- | LE Advertising Report | ||||
LE Set Scan Enable ( Disable ) | -----> |