Link Layer总共有7个状态,这7个状态串起了整个Link layer的运作。
1 | #define BLE_LL_STATE_STANDBY (0) |
stateDiagram [*] --> STANDBY : reset STANDBY --> ADV STANDBY --> SCANNING STANDBY --> SYNC ADV --> STANDBY ADV --> SYNC ADV --> CONNECTION SCANNING --> STANDBY SCANNING --> INITIATING SCANNING --> SYNC INITIATING --> CONNECTION INITIATING --> STANDBY CONNECTION --> STANDBY CONNECTION --> DTM CONNECTION --> SYNC DTM --> STANDBY SYNC --> STANDBY