2009-12-28 23:28:07

by Pete Zaitcev

[permalink] [raw]
Subject: How to snoop traffic

Dear All:

What is the preferred method to snoop the Bluetooth traffic?
E.g. my phone seems to pair with my computer fine, but then it
stops communicating, what now? I would like to debug the issue
myself from the bottom up.

Thanks,
-- Pete


2009-12-29 02:20:00

by Marcel Holtmann

[permalink] [raw]
Subject: Re: How to snoop traffic

Hi Pete,

> > > What is the preferred method to snoop the Bluetooth traffic?
>
> > just use hcidump -X -V. It will trace and decode the Bluetooth HCI
> > traffic for you.
>
> Thanks a lot. As it turned out, my distribution (Fedora) packaged
> it into a nondefault package (bluez-hcidump), so I missed it, sorry.
> I thought we might've moved to a libpcap-based capture while I wasn't
> looking, but fortunately not.

actually PCAP is not possible since we can't store packet direction in
PCAP format and that is needed for HCI traffic.

Regards

Marcel



2009-12-29 00:44:08

by Pete Zaitcev

[permalink] [raw]
Subject: Re: How to snoop traffic

On Mon, 28 Dec 2009 15:33:42 -0800
Marcel Holtmann <[email protected]> wrote:

> > What is the preferred method to snoop the Bluetooth traffic?

> just use hcidump -X -V. It will trace and decode the Bluetooth HCI
> traffic for you.

Thanks a lot. As it turned out, my distribution (Fedora) packaged
it into a nondefault package (bluez-hcidump), so I missed it, sorry.
I thought we might've moved to a libpcap-based capture while I wasn't
looking, but fortunately not.

-- Pete

2009-12-28 23:33:42

by Marcel Holtmann

[permalink] [raw]
Subject: Re: How to snoop traffic

Hi Pete,

> What is the preferred method to snoop the Bluetooth traffic?
> E.g. my phone seems to pair with my computer fine, but then it
> stops communicating, what now? I would like to debug the issue
> myself from the bottom up.

just use hcidump -X -V. It will trace and decode the Bluetooth HCI
traffic for you.

Regards

Marcel