Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4091211yba; Sun, 19 May 2019 10:27:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2hwe3ZS8lQrbsrPg5R6mogQkFU7vNDuRsa6tK0S/EUw9bJo5nlpznqwU5KWBOZT9t6x3x X-Received: by 2002:a63:1045:: with SMTP id 5mr26469504pgq.55.1558286846511; Sun, 19 May 2019 10:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558286846; cv=none; d=google.com; s=arc-20160816; b=tvt04gMr48NzdbAuLvqOJ3a/PRmth5spM8TL/gWO9n+yP0u8ZwJ+9sgMZDKrcVFJQ7 SZPaop6CnL77mzu2gBnLFzIIvFJJVDmfVzsaEWjwFFHZrSxYwIpKZDT5wF37tIA//DDx plrJG2gD+/jN7gtdTv22Ln6z6ksoDsj7v+ga/WDifura7uLrxpaGMPOvOTal+NrhDaFy Ks6KFzJDSDxZMKnFtsQFBV9fYeWZx156tr+reO+Y+YKtpEUYN/sUb4rxI/OyMD6GgNRN oXbCyoRisoGrl+oGDsGRZIw6Pzn6fedrUT792R01fA9roghrpfdUzUpA0hg0jB+J96kw 1WHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dajtjx1bIYBztQ1hWsrwS/0EkeXde1hMQIoUagVApVg=; b=mqd3nQ9jG/5hnx2ipyveycb8pL7MJ928OeGW0EKQRP7qw/OAQsV9eU9BZVNkhTokyY qw/bxtcQcyZQGq3fDDR+ehJRCIBfkZBw6zN1QpuzNYEoPq8sJ/F+ru68wBwe2ArWA3Ne rM0qaqVW5zpZyAG6e49FVbfzw7KYbTh2bjO9PFdJTVIsgf2Y+vs0AOqr3mmn6Fnxn0NA wEj0KBhrjikIdepuS0rhM+VNBb/5sehr8k8tdNe3b4iFCnvnh4QijVZIYa/aaGZDbFuT 9PflSVpvTvKFQzCx1wv7WF2/VR8Wbu0MhMZ4Lme+senvLhTVRCQlq+LAKTAIzcj4BX49 P8KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fTcWtVR+; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id b32si15863866pla.294.2019.05.19.10.26.57; Sun, 19 May 2019 10:27:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fTcWtVR+; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 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 S1726440AbfESRVf (ORCPT + 99 others); Sun, 19 May 2019 13:21:35 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36437 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbfESRVe (ORCPT ); Sun, 19 May 2019 13:21:34 -0400 Received: by mail-wr1-f66.google.com with SMTP id s17so11991557wru.3 for ; Sun, 19 May 2019 10:21:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dajtjx1bIYBztQ1hWsrwS/0EkeXde1hMQIoUagVApVg=; b=fTcWtVR+y023EN+8sekNwBWQyaRv4mrhNnrWipibq0BBiHUgeF4lO7JSvCrxwe9e6+ It1iLvfUeA3MmOAOH8doCAu9vMIVsbnZNTdRnxPVTZ9K8E7E15/dCLqf1oUroIJK0rvc fCCqyC6+j3H9lhtM8W0iHtAif4iJeRpkNvMqeJaDdKa2DZko7uyWKjBGgJc8IpiTcKtG Saf21BQBIbBEIDoOwCdULqoJ+3ipoSpx/jqB+oeFB7uMwEkTfycdfRykl50hwhQxSL0n mMXbvdNEOPIwuMCX3YPAlM529f79A1BVtFbT6dI9eeB3KtR7G36MAR3RT9t3ZTp+KIhC 7DoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=dajtjx1bIYBztQ1hWsrwS/0EkeXde1hMQIoUagVApVg=; b=MdDhWzOr7o7cb1nvVKA7/LAGNeAEEdd04CJ5yMO2zkhhjDOQ7xolSjbJ3pvr/Z7bT9 LE9kLjB0Z/nxMgRqCEwGu+B9whoGwu0409Py5qal6DtZWJU3+XsQWNO2uJQr8Nv2pNbX 5EsNNzYgmbJgRkhDQtgWLI0Ml0GJTSmQj0idF8SHJTy8xgkEIPqtU+tJP7djFIbNd47N PNPMkDmKjIOWjuOIScsGZmq6DqhiUaNRTwON8H8H6bNNOA4MZ/VUDjBuzLV7KJI3DeDX mxWBSWxeFQ5TAtlSTlOebjgN0CUVEYzpGeqQXZkEBTZ6PfB2vra2byrZMAuH7Et6gFLW F3JA== X-Gm-Message-State: APjAAAUDpyTLMsSdN1BZRhsBM4jUst5pSeBCAC1OdE8OaTC5/7k2wqaM iHOij0LyrIhzawNBosQNteYUEnTT X-Received: by 2002:adf:8bc5:: with SMTP id w5mr26994489wra.226.1558268546086; Sun, 19 May 2019 05:22:26 -0700 (PDT) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id a11sm14415720wrx.31.2019.05.19.05.22.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 19 May 2019 05:22:24 -0700 (PDT) Date: Sun, 19 May 2019 14:22:23 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org Subject: Re: bluez A2DP socket reliability Message-ID: <20190519122223.gabew7qfftihlbic@pali> References: <20190518190618.m7rdkthvpz4agxd2@pali> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zwj77sbdf2qyf2xw" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --zwj77sbdf2qyf2xw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sunday 19 May 2019 11:13:09 Luiz Augusto von Dentz wrote: > Hi Pali, >=20 > On Sat, May 18, 2019 at 11:12 PM Pali Roh=C3=A1r w= rote: > > > > Hello! How is L2CAP layer of bluetooth socket used for A2DP audio > > transfer configured in bluez? It is reliable with big/infinite > > retransmit count? Or in best-effort manner and some packets may be > > dropped? And it is possible to change between these two modes for > > application which uses bluez DBUS API? I'm asking because some A2DP > > audio codecs are designed to deal with packet loss and for those codecs > > it would be probably better to configure L2CAP socket to unreliable > > mode. >=20 > We don't use ERTM with AVDTP, both signaling and transport sockets are > using basic mode which don't support retransmissions, there the > concept of flush timeout which iirc we don't currently it. On bluez.org site there is no information how to use bluez sockets and the only documentation/tutorial which I found on internet was this: https://people.csail.mit.edu/albert/bluez-intro/x559.html I do not know how up-to-date it is, but seems that by default bluez L2CAP sockets are reliable and to change them to unreliable mode it is needed to issue OGF_HOST_CTL / OCF_WRITE_AUTOMATIC_FLUSH_TIMEOUT (0x28) request. As default is zero =3D infinity =3D reliable connection. I do not understand low level bluetooth details, but is ERTM related to OCF_WRITE_AUTOMATIC_FLUSH_TIMEOUT? So what are default settings for L2CAP socket used by AVDTP/A2DP profiles which are transferred to user application via DBUS? --=20 Pali Roh=C3=A1r pali.rohar@gmail.com --zwj77sbdf2qyf2xw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQS4VrIQdKium2krgIWL8Mk9A+RDUgUCXOFKfgAKCRCL8Mk9A+RD UoBjAKC1smAIEZGph1QYqs3XbAP8O/8ZLwCfXlLXh/S1hwlNL6Y8ovmSos1X92w= =UUH9 -----END PGP SIGNATURE----- --zwj77sbdf2qyf2xw--