最終更新:2022-08-18 (木) 06:55:39 (589d)
BLE/SMP/コマンド/Pairing Request
The initiator starts the Pairing Feature Exchange by sending a Pairing Request command to the responding device.
フィールド | Code | IO Capability | OOB data flag | AuthReq | Mamimum Encryption Key Size | Initiator Key Distribution | Responder Key Distribution |
バイト | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
値 | 0x01 |
IO Capability
OOB data flag?
Value Description 0x00 OOB Authentication data not present 0x01 OOB Authentication data from remote device present 0x02 to 0xFF Reserved for future use
AuthReq
- The AuthReq field is a bit field that indicates the requested security properties for the STK and LTK and GAP bonding information.
フィールド Bonding Flags MITM SC Keypress CT2 RFU ビット 2 1 1 1 1 2
Bonding_Flags
- The Bonding_Flags field is a 2-bit field that indicates the type of bonding being requested by the initiating device
b1b0 Bonding Type 00 No Bonding 01 Bonding 10 Reserved for future use 11 Reserved for future use
MITM
- The MITM field is a 1-bit flag that is set to one if the device is requesting MITM protection, otherwise it shall be set to 0.
SC
- The SC field is a 1 bit flag. If LE Secure Connections pairing is supported by the device, then the SC field shall be set to 1, otherwise it shall be set to 0.
- If both devices support LE Secure Connections pairing, then LE Secure Connections pairing shall be used, otherwise LE Legacy pairing shall be used.
keypress
- The keypress field is a 1-bit flag that is used only in the Passkey Entry? protocol and shall be ignored in other protocols.
CT2
- The CT2 field is a 1-bit flag that shall be set to 1 upon transmission to indicate support for the h7 function.
Maximum Encryption Key Size
- defines the maximum encryption key size in octets that the device can support.
- The maximum key size shall be in the range 7 to 16 octets.
Initiator Key Distribution / Generation
- indicates which keys the initiator is requesting to distribute / generate or use during the Transport Specific Key Distribution phase.
EncKey?
- In LE legacy pairing, EncKey? is a 1-bit field that is set to one to indicate that the device shall distribute LTK using the Encryption Information command followed by EDIV and Rand using the Central Identification command.
- In LE Secure Connections pairing, when SMP is running on the LE transport, then the EncKey? field shall be ignored. EDIV and Rand shall be set to zero and shall not be distributed.
- When SMP is running on the BR/EDR transport, the EncKey? field is set to one to indicate that the device would like to derive the LTK from the BR/EDR Link Key. When EncKey? is set to 1 by both devices in the initiator and responder Key Distribution / Generation fields, the procedures for calculating the LTK from the BR/EDR Link Key shall be used.
IdKey?
- IdKey? is a 1-bit field that is set to one to indicate that the device shall distribute IRK using the Identity Information command followed by its public device or static random address using Identity Address Information.
SignKey?
- SignKey? is a 1-bit field that is set to one to indicate that the device shall distribute CSRK using the Signing Information command.
LinkKey?
- LinkKey? is a 1-bit field. When SMP is running on the LE transport, the LinkKey? field is set to one to indicate that the device would like to derive the Link Key from the LTK. When LinkKey? is set to 1 by both devices in the initiator and responder Key Distribution / Generation fields, the procedures for calculating the BR/EDR link key from the LTK shall be used. Devices not supporting LE Secure Connections shall set this bit to zero and ignore it on reception. When SMP is running on the BR/EDR transport, the LinkKey? field is reserved for future use.