hzl6255

1. 前提

这里介绍一种在Android上捕获蓝牙数据包的方法

首先你要有一部Android手机;然后你的Android系统版本要在4.4及以上

我没有做过Android开发,不清楚开发者们是如何抓蓝牙包的,不过我知道可以使用hcidump来抓取蓝牙数据包

2. 开启

在开发者选项中有一个功能
- [Enable Bluetooth HCI snoop log/启用蓝牙 HCI 信息收集日志]
开启它

3. 抓包

然后你可以进行各种蓝牙操作,结束后的抓包文件就在
/sdcard/btsnoop_hci.log

将它拷贝出来放在电脑上,就可以用Wireshark直接看了

可以使用比如bthci_acl, btl2cap, bthfp等过滤器来过滤数据包查看你所关心的协议

 

参考:
<Mozilla B2G/Bluetooth>
<Wireshark Bluetooth Wiki>
<Android4.3 Bluetooth 抓取hci log>
<Wireshark Display Filter Reference>
<Bluetooth packet capture on Android 4.4>

分类:

技术点:

相关文章:

  • 2021-10-20
  • 2022-03-07
  • 2022-12-23
  • 2021-08-08
  • 2021-03-31
  • 2021-05-16
  • 2021-10-31
猜你喜欢
  • 2021-04-29
  • 2022-12-23
  • 2021-05-19
  • 2021-09-16
  • 2022-01-17
  • 2021-12-27
  • 2021-04-09
相关资源
相似解决方案