Original URL: http://www.cnblogs.com/hzl6255/p/3887013.html
Here's a way to capture Bluetooth packets on Android
1. Prerequisites
First of all, you have to have an Android phone
Then your Android system version will be at 4.4 and above
I have not done Android development, I do not know how the developers grasp the Bluetooth package
But I know I can use Hcidump to crawl Bluetooth packets.
This method is not described here (follow-up may be possible to understand)
2. Turn on function
There is a feature in the developer options
-[Enable Bluetooth HCI snoop log/enabling bluetooth® HCI information collection log]
Turn it on.
3. Grab Bag
Then you can do a variety of Bluetooth operations, after the end of the capture package file is in
/sdcard/btsnoop_hci.log
Copy it out and put it on the computer, you can see it directly with Wireshark.
You can use filters such as Bthci_acl, Btl2cap, BTHFP, and so on to filter the packets to see the protocols you care about.
Reference:
<mozilla b2g/bluetooth>
<wireshark Bluetooth wiki>
<wireshark Display Filter reference>
<android4.3 Bluetooth Crawl HCI log>
<bluetooth packet capture on Android 4.4>
"Go" Bluetooth packet capture