From: "Daniel T. Cobra" <dcobra@videam.com.br>
To: linux-bluetooth@vger.kernel.org
Subject: Re: Long delay to (re)connect a bluetooth mouse
Date: Tue, 22 Dec 2009 10:02:29 -0200 [thread overview]
Message-ID: <4B30B555.5000202@videam.com.br> (raw)
In-Reply-To: <1261185699.4b2c2aa37a9c4@www.fastmail.com.br>
Hi everybody:
Following Marcel's hint, I used hcidump while the Bluetooth mouse was
reconnecting and got the results below (here I pasted the dump just up
to the point where the connection is established).
Could somebody take a quick look and say why there is a 4 second delay
between the last two lines? Is bluez receiving the mouse name during
that time? If that's what's causing the delay, is there a configuration
option to disable requesting the name of a device whose name is already
known because it was previously connected and is now just coming out of
sleep mode?
I downloaded and looked into bluez source code, but it would take me
weeks to begin to understand it. If anyone can give me a hint, I'd
really appreciate it.
Regards,
Daniel
HCI sniffer - Bluetooth packet analyzer ver 1.42
device: hci0 snap_len: 1028 filter: 0xffffffff
1261183973.054875 > HCI Event: Connect Request (0x04) plen 10
1261183973.054911 < HCI Command: Accept Connection Request (0x01|0x0009)
plen 7
1261183973.062868 > HCI Event: Command Status (0x0f) plen
4
1261183973.255871 > HCI Event: Role Change (0x12) plen
8
1261183973.349870 > HCI Event: Connect Complete (0x03) plen
11
1261183973.349892 < HCI Command: Read Remote Supported Features
(0x01|0x001b) plen
2
1261183973.351861 > HCI Event: Page Scan Repetition Mode Change (0x20)
plen 7
1261183973.351870 > ACL data: handle 42 flags 0x02 dlen
12
L2CAP(s): Connect req: psm 17 scid
0x0060
1261183973.351932 < ACL data: handle 42 flags 0x02 dlen
16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0060 result 1 status
0
Connection pending - No futher information
available
1261183973.351937 < ACL data: handle 42 flags 0x02 dlen
10
L2CAP(s): Info req: type
2
1261183973.358863 > HCI Event: Number of Completed Packets (0x13) plen
5
1261183973.361860 > HCI Event: Number of Completed Packets (0x13) plen
5
1261183973.363865 > HCI Event: Command Status (0x0f) plen
4
1261183973.363881 < HCI Command: Remote Name Request (0x01|0x0019) plen 10
1261183973.373864 > HCI Event: Read Remote Supported Features (0x0b) plen 11
1261183973.375857 > HCI Event: Command Status (0x0f) plen
4
1261183973.443867 > HCI Event: Remote Name Req Complete (0x07) plen
255
1261183977.351019 < ACL data: handle 42 flags 0x02 dlen
16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0060 result 0 status
0
Connection successful
[...]
next prev parent reply other threads:[~2009-12-22 12:02 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-15 19:43 Long delay to (re)connect a bluetooth mouse dcobra
2009-12-17 15:17 ` Daniel T. Cobra
2009-12-18 17:43 ` Daniel T. Cobra
2009-12-18 22:04 ` Marcel Holtmann
2009-12-18 22:49 ` dcobra
2009-12-18 22:58 ` Marcel Holtmann
2009-12-19 1:21 ` dcobra
2009-12-22 12:02 ` Daniel T. Cobra [this message]
2009-12-22 12:09 ` Daniel T. Cobra
[not found] ` <53ea87da0912222033y530c83dci41bb6d9b99ece6c@mail.gmail.com>
2009-12-23 11:01 ` Daniel T. Cobra
2009-12-23 15:19 ` Daniel T. Cobra
[not found] ` <4B32336C.8080806@videam.com.br>
[not found] ` <53ea87da0912230727q617dce1axe5053cd32d03bbf5@mail.gmail.com>
2009-12-23 15:38 ` Daniel T. Cobra
2009-12-23 15:48 ` Stefan Seyfried
2009-12-23 16:00 ` venu
2009-12-23 17:53 ` Daniel T. Cobra
2009-12-29 15:01 ` Stefan Seyfried
2010-01-04 18:48 ` Daniel T. Cobra
2010-01-05 10:51 ` Stefan Seyfried
2010-02-03 11:44 ` Daniel T. Cobra
2010-02-03 13:58 ` Stefan Seyfried
2010-02-03 14:12 ` Marcel Holtmann
2010-02-03 14:34 ` Daniel T. Cobra
2010-02-03 14:37 ` Marcel Holtmann
2010-02-03 17:13 ` Daniel T. Cobra
2010-02-03 18:04 ` Iain Hibbert
2010-02-04 16:19 ` Daniel T. Cobra
2010-02-04 18:13 ` Iain Hibbert
2010-02-05 11:24 ` Daniel T. Cobra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B30B555.5000202@videam.com.br \
--to=dcobra@videam.com.br \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.