HCI命令

本文详细解释了蓝牙HCI命令,如Inquiry、InquiryCancel和LECreateConnection等在蓝牙设备配对、连接过程中的操作,以及Wireshark中用于监控这些操作的过滤器。重点展示了与设备管理和安全相关的命令执行情况。
摘要由CSDN通过智能技术生成

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

  • 3
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值