wi100sh

【转】Bluetooth数据包捕获

原文网址:http://www.cnblogs.com/hzl6255/p/3887013.html

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

1. 前提

首先你要有一部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
<Wireshark Display Filter Reference
<Android4.3 Bluetooth 抓取hci log
<Bluetooth packet capture on Android 4.4>

分类:

技术点:

相关文章:

  • 2021-06-29
  • 2021-08-03
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2021-08-18
  • 2022-12-23
猜你喜欢
  • 2021-05-27
  • 2021-05-15
  • 2021-06-16
  • 2021-11-21
  • 2021-07-11
  • 2021-12-08
  • 2021-04-24
相关资源
相似解决方案