All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: Artem Rakhov <arakhov@chromium.org>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: [A2DP] Incoming connections do not succeed
Date: Mon, 28 Jul 2014 11:21:53 +0300	[thread overview]
Message-ID: <CABBYNZ+zRKzv4yTc8M2Fi0eN6gC921b9zaey5FKGVq_bJJueBg@mail.gmail.com> (raw)
In-Reply-To: <CAD81oNZL0qATu_z_TJT8psaMhpmV34w6xmA2+=OKerSE1NSvOw@mail.gmail.com>

Hi Artem,

On Sat, Jul 26, 2014 at 4:33 AM, Artem Rakhov <arakhov@chromium.org> wrote:
> 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.

This looks pretty strange as the remote seems to be disconnecting not
us, btw did you tried to mark the device as trusted? Regarding it
working with BlueZ 4, what kernel are you using with that and can you
try to compare what is the difference in the logs, perhaps the remote
does like the Configure Request for some reason.


-- 
Luiz Augusto von Dentz

  reply	other threads:[~2014-07-28  8:21 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-26  1:33 [A2DP] Incoming connections do not succeed Artem Rakhov
2014-07-28  8:21 ` Luiz Augusto von Dentz [this message]
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

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=CABBYNZ+zRKzv4yTc8M2Fi0eN6gC921b9zaey5FKGVq_bJJueBg@mail.gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=arakhov@chromium.org \
    --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.