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
[...]
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html