Skip to content

Commit 371f183

Browse files
added one more sequence diagram
1 parent 1f52e42 commit 371f183

File tree

1 file changed

+31
-6
lines changed

1 file changed

+31
-6
lines changed

features/FEATURE_BLE/ble/SecurityManager.h

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@
8989
* /----------- Device 1 --------------\ *------ BLE link ------* /-------------- Device 2 -------------\
9090
*
9191
* App EventHandler SecurityManager SecurityManager EventHandler App
92-
* | | | | | |
92+
* | | | | | |
9393
* |---------------------------> requestPairing() | | |
94-
* | | |------[pairing start]------>| | |
95-
* | | | |----------------> pairingRequest() ->|
96-
* | | | acceptPairing() <------------------------- |
97-
* | | |<---[pairing complete]----->| | |
94+
* | | |------[pairing start]------>| | |
95+
* | | | |----------------> pairingRequest() ->|
96+
* | | | acceptPairing() <------------------------ |
97+
* | | |<---[pairing complete]----->| | |
9898
* |<- pairingResult() <---------------| |----------------> pairingResult() -->|
99-
* | | | | | |
99+
* | | | | | |
100100
*
101101
* @note the requestPairing() call isn't required to trigger pairing. Pairing will also be triggered
102102
* if you request encryption and authentication and no bonding information is available. The sequence will
@@ -115,6 +115,31 @@
115115
* | | | | | |
116116
*
117117
* @note if bonding information is not available, pairing will be triggered
118+
*
119+
*
120+
* Sequence diagram for Secure Connections passkey entry pairing with one device having a display only
121+
* and other a keyboard
122+
*
123+
* /----------- Device 1 (keyboard) ---\ *------ BLE link ------* /-------------- Device 2 (display) ---\
124+
*
125+
* App EventHandler SecurityManager SecurityManager EventHandler App
126+
* | | | | | |
127+
* |---------------------------> requestPairing() | | |
128+
* | | |------[pairing start]------>| | |
129+
* | | | |----------------> pairingRequest() ->|
130+
* | | | acceptPairing() <------------------------ |
131+
* | | |<---[secure con. pairing]-->| | |
132+
* |<- passkeyRequest() <--------------| |----------------> passkeyDisplay() ->|
133+
* | | | | | |
134+
*
135+
* user reads the passkey on Device 2 and inputs it in Device 1
136+
*
137+
* | | | | | |
138+
* |-------------------------->passkeyEntered() | | |
139+
* | | |<---[pairing complete]----->| | |
140+
* |<- pairingResult() <---------------| |----------------> pairingResult() -->|
141+
* | | | | | |
142+
*
118143
*/
119144

120145
class SecurityManager {

0 commit comments

Comments
 (0)