HCI 命令
bthci_cmd.opcode == 0x0401 Bluetooth HCI Command - Inquiry
bthci_evt.code == 0x0f
bthci_evt.code == 0x2f Extended Inquiry Result (EIR)
bthci_cmd.opcode == 0x0402 Inquiry Cancel
bthci_evt.code == 0x0e Inquiry Cancel
bthci_evt.code == 0x3e LE Extended Advertising Report | LE Enhanced Connection Complete | LE Read Remote Features Complete
bthci_cmd.opcode == 0x2011 Sent LE Add Device To White List
bthci_cmd.opcode == 0x0c12 Delete Stored Link Key
bthci_cmd.opcode == 0x2043 LE Extended Create Connection
bthci_cmd.opcode == 0x2016 LE Read Remote Features
btsmp.opcode == 0x01 Pairing Request
btsmp.opcode == 0x02 Pairing Response
btsmp.opcode == 0x0c Sent | Rcvd Pairing Public Key
btsmp.opcode == 0x03 Rcvd Pairing Confirm
btsmp.opcode == 0x04 Sent Pairing Confirm
btsmp.opcode == 0x0d Sent | Rcvd Pairing DHKey Check
bthci_cmd.opcode == 0x2019 LE Start Encryption (0x2019)
btsmp.opcode == 0x08 Sent | Rcvd Identity Information
btsmp.opcode == 0x09 Sent | Rcvd Identity Address Information
bthci_cmd.opcode == 0x202d LE Set Address Resolution Enable
bthci_cmd.opcode == 0x2027 LE Add Device to Resolving List
bthci_cmd.opcode == 0x2012 LE Remove Device From White List
bthci_cmd.opcode == 0x204e LE Set Privacy Mode
bthci_cmd.opcode == 0x0405 Create Connection
bthci_evt.code == 0x03 Event Connect Complete
bthci_evt.code == 0x05 Event Disconnect Complete
bthci_cmd.opcode == 0x200e LE Create Connection Cancel
wireshark HCI过滤:
bthci_cmd.opcode == 0x2042 || bthci_cmd.opcode == 0x0c05 || bthci_cmd.opcode.ogf == 0x08 || bthci_cmd.opcode == 0x0405 || bthci_evt.code == 0x03 || bthci_evt.code == 0x05 || bthci_cmd.opcode == 0x2043 || bthci_evt.code == 0x0e || bthci_evt.code == 0x0f || bthci_evt.code == 0x0c || (bthci_evt.code == 0x3e && bthci_evt.bd_addr == 4c:99:92:0a:13:7a) || btsmp || bthci_evt.code == 0x2f || bthci_cmd.opcode == 0x0401 || bthci_cmd.opcode == 0x0402 || bthci_cmd.opcode == 0x0c05|| bthci_cmd.opcode == 0x0c12 || bthci_cmd.opcode == 0x2011