Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp327609ybi; Fri, 7 Jun 2019 08:41:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwE0SFSNSNdKfmL8npt1Mpfyjy2TQT9n1uZvL1fIgKPMUJHoILIg0WhZR5wiCuxkHoiv9BD X-Received: by 2002:aa7:86c1:: with SMTP id h1mr44722552pfo.157.1559922103617; Fri, 07 Jun 2019 08:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559922103; cv=none; d=google.com; s=arc-20160816; b=hwi+qTfjJUjEusFrwL6cU/at6sWQQU4NoaRRHNKtN9g2z0Du7WpvCAeLCpzpVf4jwP 8RO2dXcCbkv3BRKTE+cIMfWWfpEhBWNaPLOK6bXuJpQp3hhuJAZKTgmLeATJGOiDbDIZ U7Luo7drrsGoQif4UYNvWCa/CjC/AF8Wa+IP6C6UpC5OKIdr/bo/1talukOb5auPxVbK SCVA9qp7hzbMCXg5JyiXkRdUq6XvANrEpTF1Y9RsQwHkzSUfBXluR4h5M3UjtuAiTnYU Yx1gKrV3S16emD1HnwSjZRHYPCRyOJgYfqk4dWwShMz2ZhKEgOeGXpel3jVXDfLdje6l Mk0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=SIynrcBU2opRbYQHu+rzQ51GzaMTNMtb96Ffxxpg3Lw=; b=vxidF2kEXmX+nrv+tCbOjXXVDTXqu4nQ5vg4F+69Osw5bBp7aTfO2HfWOETOk29j8I VGsx7PMuIuGfaIYZYVilNHqi7yvB2q+dcXSJYZ6gSFoGPjRU6pGO9C773ipe8ogEChPV NtqFeLYIVwu+5XHL0bFTo/54eAigOQSD9v59Xse8OtMo9mwuH4ztwcUmFvVp7Qc9r1sM yaIyqwZzo+nrH2W2EEqFL+OTfTrUt/Av6bQn93Q+fvNvudoij36D6fgSicdvb+A0rtmj aC44bkMCfyrBiMjrgIt6APHzP44H3pvnUpigzXWkMJBraftFp2rIKUkN/oi4110t5fYF 1iLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ilyM+cxh; 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 n18si2090388plp.215.2019.06.07.08.41.18; Fri, 07 Jun 2019 08:41:43 -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=ilyM+cxh; 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 S1729793AbfFGPXw (ORCPT + 99 others); Fri, 7 Jun 2019 11:23:52 -0400 Received: from mail-ot1-f52.google.com ([209.85.210.52]:45987 "EHLO mail-ot1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728287AbfFGPXw (ORCPT ); Fri, 7 Jun 2019 11:23:52 -0400 Received: by mail-ot1-f52.google.com with SMTP id n2so2168687otl.12 for ; Fri, 07 Jun 2019 08:23:51 -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:content-transfer-encoding; bh=SIynrcBU2opRbYQHu+rzQ51GzaMTNMtb96Ffxxpg3Lw=; b=ilyM+cxhfMfaScMm47P9h8nWu+alF4oQRItQveIKebuQO0ItdtIfRpgHDB7kfkSNpF A8TdymxqUdOsuNGi7KQGTlB/6MYYH0s7tgXK7sFQK+g84BsDONPwgJnr/46+T5Azk+DJ n8J58YuxA9MAjFc60sSSd5E6nSyLxZKfNE9GjsSPe2Or0asHD4VIKlm5IT0tIdwvh215 wxqhiZnZrd2yLdLJDUZrsLWK7olyCoJVwf64PSfDnjMT/ZzumxFWGd+echHs5JgyRUZ3 N6Xjj7Ebg/ZWUy2bjEbP4E7ErIsTAcx9Ot62TM/KcjN7elmNZsTjypT9RWud+mTttHec AiSQ== 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:content-transfer-encoding; bh=SIynrcBU2opRbYQHu+rzQ51GzaMTNMtb96Ffxxpg3Lw=; b=L5z4XSG5wxkwcMFvKxwEIXuhlRTffgrJllhSUJJKxsUz7/sdFL9I5KaDr5d8QIgX+q YDTGqkmfgcJcqZM/MwTiy6Z00MCc1aOhxkMF0azmC3r3uCgE+t5wMDqvAJ51bd94NNXs NiHDarxQEAWPcvpTlbnbKc5+yLp3oVsst4pnIqOtFesUP+y3DSOT5awOjKObE1Zl0a2z FMm3QJmNf1RZUsTEgh0I+SZS50DsYrUXNR+Wb1x+H07VH7Qqin+XlraTsH2CZReruFtV Nf6zMpTYg3X92E/fskj87U2IGNFl3huQ9iXGiK7fXzV7MFrqLP9NijFa8D3o+1igVtIF 2ybQ== X-Gm-Message-State: APjAAAUhOA0bbBl45SpZbdwJBddDqvIiDO39YaYUhJoFDQRH0npmDAQ7 ERp6rF/k2Jlm8L81EJESYcOYuTs6Qv/mkrl3YBeiCBaw X-Received: by 2002:aca:e44b:: with SMTP id b72mr4274363oih.108.1559921031223; Fri, 07 Jun 2019 08:23:51 -0700 (PDT) MIME-Version: 1.0 References: <20190518190618.m7rdkthvpz4agxd2@pali> <20190519122223.gabew7qfftihlbic@pali> <20190607130021.ntd3dfd6nzmuy3m3@pali> In-Reply-To: <20190607130021.ntd3dfd6nzmuy3m3@pali> From: Luiz Augusto von Dentz Date: Fri, 7 Jun 2019 18:23:41 +0300 Message-ID: Subject: Re: bluez A2DP socket reliability To: =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Pali, On Fri, Jun 7, 2019 at 4:00 PM Pali Roh=C3=A1r wrote= : > > On Sunday 19 May 2019 14:22:23 Pali Roh=C3=A1r wrote: > > On Sunday 19 May 2019 11:13:09 Luiz Augusto von Dentz wrote: > > > Hi Pali, > > > > > > On Sat, May 18, 2019 at 11:12 PM Pali Roh=C3=A1r wrote: > > > > > > > > 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 co= decs > > > > it would be probably better to configure L2CAP socket to unreliable > > > > mode. > > > > > > We don't use ERTM with AVDTP, both signaling and transport sockets ar= e > > > 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? > > Hi! Do you have any idea about OCF_WRITE_AUTOMATIC_FLUSH_TIMEOUT? It is > related to ERTM or not? The OCF usually describes an HCI command which may affect the entire ACL connection, ERTM is a L2CAP channel mode that includes retransmissions. The A2DP stream transport doesn't ERTM so no retransmissions shall take place. --=20 Luiz Augusto von Dentz