"Go" Bluetooth packet capture

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.