Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1062269ybj; Thu, 7 May 2020 13:59:11 -0700 (PDT) X-Google-Smtp-Source: APiQypI7LPz3Y/QgdgXKiy0yExzt7SK8905p6tYUaPLAUG2GbZ5bgLKzlZ7hphOarCH+iz+3FJ5g X-Received: by 2002:a05:6402:2214:: with SMTP id cq20mr14294965edb.320.1588885151285; Thu, 07 May 2020 13:59:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588885151; cv=none; d=google.com; s=arc-20160816; b=tAgsDx01Lw5xBI55tAjmjbmxln0uEIzty29SvwNiJF7F5AT/0Un2N0nJ+2zKwINDPf e8897a2LnTTDz9FsCMAd9hScmQRpq4gznlQln3JvcoxyI7rhYonVE3c5cM7Xhfyf7HfU IbX8xapHFF85KXGYfoQhgcqAovoSfOlv4APH3+bfAJZAsnphngBWKktsvWCudKcaMMZN uKcC40AjRmSPFFyPFjeMKvFe1SGVzJgxa9XoFztfiL7VNfwMtVF0Kta1a43od+cuZv3D 6tPm4Db/laz9vBy+vw1V1tU07baTvfidQoGdVFp0C/NGmq5yP7R+RRHCAX15fY7zIKhX jjZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=x2ZAVTUfkbRM2mB15HE5Zm8oQHtVVkvfNmIkvWyuSQ0=; b=xy2BgZ2a2aRfXkaCwZQWDAzxRZgZPnSM8qm4wDTzRKRH7uvByqoqHixnEQEsL1dYvl CdDjKXmWOjvXfGIDi/5RXG1TNCA7mcFduJEgPWEHjs+uZRPt7lP96lAI7U0PJyQk0CoM 3FJuE2BXYlWJrE0S0VvwwHHOxGZfSsNiKhvTE4T7nl1EP0kH4k6wfRwsLAImzuI2hEpq 4J6Bt5rYPELkBC2rDR/OFU9BvMzGVfOaj37okR3fOvFf5w5JBbv59Sjtlc3SHvTrqUXa 70om3nRSlQB/R3Xp02Y5d4ECVoFHThLj1Fa6a9QR9is/jQJVmsQwpa0X7C+g3dtJJ4zY 0E2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BDiC+6y8; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 27si3930050ejx.245.2020.05.07.13.58.33; Thu, 07 May 2020 13:59:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BDiC+6y8; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726320AbgEGU6a (ORCPT + 99 others); Thu, 7 May 2020 16:58:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726268AbgEGU6a (ORCPT ); Thu, 7 May 2020 16:58:30 -0400 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 054CDC05BD43 for ; Thu, 7 May 2020 13:58:30 -0700 (PDT) Received: by mail-oi1-x233.google.com with SMTP id a2so6291336oia.11 for ; Thu, 07 May 2020 13:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x2ZAVTUfkbRM2mB15HE5Zm8oQHtVVkvfNmIkvWyuSQ0=; b=BDiC+6y8ma+QGgdaL+EJshvnlI/Kco7JOsVdl4GR8IPzXke4JA8pn2UwBVdZ3yYdSO ZGea8SP6u3FdWDwzdFicMpisI9Ua2ZRmGi4TldLNGktu7BMWjVOOzJeDuLIWVKGxQhE2 hkdgdX5/clOOQHt2hRB+XGAKSM8Q42W0zQ1yH9mvLM1Y8Voa4De5j+nemAmhcztcNGPT yuChjZRbAgB20vDhFH1dBXYr0eoH1IIg9M4hsrv881ObxPN6JMrtkXYv6QJL3ICw5Ww8 8HA56KuNhbOGURS+KfmvodfKTyNbCCpy/AoNvwTIZY6MAU6+R7B8bzehhTwOMTqR83K7 6Ouw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x2ZAVTUfkbRM2mB15HE5Zm8oQHtVVkvfNmIkvWyuSQ0=; b=jqo2iVgtQqqMXyoqBTVoZIxI1VUCzbILwV+w87jpRbaXAGsnHfMP6PfS6yUfYxDaXh EGAsBgAG+btgJBdCE+31zimqmnXDboDCxclvX9v+exyPYWZatTqOumcZOejsT8k20KBt yPfdaWPo00lMBcgXO7qBPzZVBX/NrjOA2IlWABJnYhRd71WhttU4/0MK+k1XUFiNpRPa /yQ5wwxQcdtOF/0pySDbUp/H5nFdYOD8u1FZX5Ryv0NgVtRPem50MbexPwhjCOd2QRUf 988RhujQ5Mgva9e1h+GTtiIRVJe+on91W+XkqwEU/r3oSgNrSW1PislMzGod3eX60S5u Pw6w== X-Gm-Message-State: AGi0Pubb0/5M8uNTqQ3snXWgtdN51tBNcQ/eqFzcpOrN/KHH1fy6hCh4 ssCOBArpe2cvxRDKRaADvrzZ5t5i26fvvnR3wYE= X-Received: by 2002:aca:b155:: with SMTP id a82mr8359219oif.110.1588885109311; Thu, 07 May 2020 13:58:29 -0700 (PDT) MIME-Version: 1.0 References: <7c4e6f59-d2ef-36c0-46df-0195fad40e7e@gmail.com> <76911d0f-dd24-5536-586a-a8e9bc7ad786@gmail.com> In-Reply-To: From: Luiz Augusto von Dentz Date: Thu, 7 May 2020 13:58:17 -0700 Message-ID: Subject: Re: avrcp: Cannot connect Sennheiser Momentum True Wireless 2 To: Andrey Semashev Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Andrey, On Thu, May 7, 2020 at 1:29 PM Luiz Augusto von Dentz wrote: > > Hi Andrey, > > On Wed, May 6, 2020 at 10:32 AM Andrey Semashev > wrote: > > > > On 2020-05-06 19:56, Andrey Semashev wrote: > > > Hello! > > > > > > I have a problem connecting Sennheiser Momentum True Wireless 2 > > > headphones over Bluetooth. The headphones say "Connected" and then > > > reboot immediately after. After reboot the headphones say "Power on" and > > > try connecting again, and fail the same way, and so on. > > > > > > From the Bluetooth packet dump it looks like the problem happens after > > > bluetoothd sends AVRCP ListPlayerApplicationSettingAttributes message to > > > the headphones. The headphones send Not Implemented response and then > > > reboot. Both in the request and the response Wireshark shows warnings > > > about encoding issues. > > > > > > I'm attaching a packet dump captured from one of the connection > > > attempts. The ListPlayerApplicationSettingAttributes message is in > > > packet 262 and the response is in packet 264. > > > > > > This is on Kubuntu 20.04. I tried bluez 5.53 from Kubuntu and revision > > > 3146b7a0785758be2d4e894d44e99d29c0db983e from git master - the behavior > > > is the same. > > > > > > I've also verified that the headphones do work on Windows 10. On that > > > system, ListPlayerApplicationSettingAttributes is not present in the > > > packet exchange. I can provide the packet dump from Windows, if needed. > > > > > > I hope this is the right place to report problems like this one. If not > > > - sorry, and please point me to the right place. > > > > > > Thank you. > > > > I'll add that I can connect the headphones if I disable AVRCP by adding > > --noplugin=avrcp to bluetoothd command line. > > Weird the ListPlayerApplicationSettingAttributes should only really be > used when the remote device claims to be have target role but I doubt > the headsets would be implementing that so perhaps we are not > detecting this properly, do you have the HCI traces in btsnoop format? > You can collect that with use of btmon. Looks like the device is setting the bit for Category 1: Player/Recorder which is why we are sending player related command, other stacks might not do that because they are not dual-role, cannot act as controllers, even if Player Application Settings is optional for category 1 it still means that we could perhaps list them. It looks like we are not parsing properly the ctype since it appears that it returns AVC_CTYPE_NOT_IMPLEMENTED instead of AVC_CTYPE_REJECTED, is that perhaps causing a crash on bluetoothd? > > -- > Luiz Augusto von Dentz -- Luiz Augusto von Dentz