All of lore.kernel.org
 help / color / mirror / Atom feed
* [A2DP] Incoming connections do not succeed
@ 2014-07-26  1:33 Artem Rakhov
  2014-07-28  8:21 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 25+ messages in thread
From: Artem Rakhov @ 2014-07-26  1:33 UTC (permalink / raw)
  To: linux-bluetooth

Hello,

I have a problem with A2DP incoming connections. I have a BT speaker
(Monster Clarity HD), which automatically reconnects on startup to the
last connected source. It works fine with BlueZ 4, but it never
reconnects successfully when using BlueZ 5.19

Here is btmon log:
< ACL Data TX: Handle 21 flags 0x00 dlen 16
               [hci0] 3471.224113
      L2CAP: Connection Response (0x03) ident 2 len 8
        Destination CID: 64
        Source CID: 108
        Result: Connection pending (0x0001)
        Status: Authorization pending (0x0002)
< ACL Data TX: Handle 21 flags 0x00 dlen 16
               [hci0] 3471.224313
      L2CAP: Connection Response (0x03) ident 2 len 8
        Destination CID: 64
        Source CID: 108
        Result: Connection successful (0x0000)
        Status: No further information available (0x0000)
< ACL Data TX: Handle 21 flags 0x00 dlen 12
               [hci0] 3471.224417
      L2CAP: Configure Request (0x04) ident 2 len 4
        Destination CID: 108
        Flags: 0x0000
> HCI Event: Number of Completed Packets (0x13) plen 5                                [hci0] 3471.226831
        Num handles: 1
        Handle: 21
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5                                [hci0] 3471.227794
        Num handles: 1
        Handle: 21
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5                                [hci0] 3471.228807
        Num handles: 1
        Handle: 21
        Count: 1
> ACL Data RX: Handle 21 flags 0x02 dlen 12                                           [hci0] 3471.256507
      L2CAP: Disconnection Request (0x06) ident 3 len 4
        Destination CID: 64
        Source CID: 108
< ACL Data TX: Handle 21 flags 0x00 dlen 12
               [hci0] 3471.256592
      L2CAP: Disconnection Response (0x07) ident 3 len 4
        Destination CID: 64
        Source CID: 108
> HCI Event: Number of Completed Packets (0x13) plen 5                                [hci0] 3471.258773
        Num handles: 1
        Handle: 21
        Count: 1
> HCI Event: Vendor (0xff) plen 7                                                     [hci0] 3471.549833
        82 00 01 00 01 15 00                             .......
> HCI Event: Disconnect Complete (0x05) plen 4                                        [hci0] 3471.550757
        Status: Success (0x00)
        Handle: 21
        Reason: Remote User Terminated Connection (0x13)
@ Device Disconnected: 10:B7:F6:01:31:ED (0) reason 3


As could be seen from the log, after the source sends L2CAP Configure
Request the speaker does not answer and disconnects (sends L2CAP
Disconnection Request).

Debugging avdtp.c showed that processing of incoming connections is
held in avdtp_confirm_cb() function. There, at some point after
successful authorization G_IO_ERR and G_IO_HUP events appear. And then
session_cb() function is called (as callback for these events), which
drops the connection.

Does anyone experience the same issue or have any ideas on how to fix it?

Thanks,
Artem

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2014-08-28 20:37 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-26  1:33 [A2DP] Incoming connections do not succeed Artem Rakhov
2014-07-28  8:21 ` Luiz Augusto von Dentz
2014-07-29  0:24   ` Artem Rakhov
2014-07-29  5:16     ` Artem Rakhov
2014-07-29  5:29       ` Marcel Holtmann
2014-08-08  7:32         ` Artem Rakhov
2014-08-10  7:32           ` Luiz Augusto von Dentz
2014-08-11  6:07             ` Michal Labedzki
2014-08-18  7:11             ` Artem Rakhov
2014-08-20 22:52               ` Artem Rakhov
2014-08-20 22:54               ` Artem Rakhov
2014-08-21  6:42                 ` Artem Rakhov
2014-08-21  8:38                   ` Luiz Augusto von Dentz
2014-08-21 13:33                     ` Marcel Holtmann
2014-08-21 13:53                       ` Luiz Augusto von Dentz
2014-08-21 14:28                         ` Marcel Holtmann
2014-08-21 19:16                           ` Artem Rakhov
2014-08-21 20:24                             ` Marcel Holtmann
2014-08-21 21:31                               ` Artem Rakhov
2014-08-27  1:11                                 ` Artem Rakhov
2014-08-27  2:08                                   ` Marcel Holtmann
2014-08-27  6:33                                     ` Artem Rakhov
2014-08-27 18:34                                       ` Luiz Augusto von Dentz
2014-08-28 11:19                                         ` Luiz Augusto von Dentz
2014-08-28 20:37                                           ` Marcel Holtmann

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.