Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp19611405ybl; Sat, 4 Jan 2020 05:18:36 -0800 (PST) X-Google-Smtp-Source: APXvYqy72faXn2kj0gAk6/spiFT3zp1B3rY2tNFial3gkFrxkXBxrrp1QlvbYrWdXAjNJZhnsdwu X-Received: by 2002:aca:3cd7:: with SMTP id j206mr5227657oia.142.1578143916441; Sat, 04 Jan 2020 05:18:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578143916; cv=none; d=google.com; s=arc-20160816; b=mFaGBFd0WJEMcswH1TZN8efRseXGQPzJh9HTK5dkASYTYl+h9OBbrCl7Q7fBDRURvl UQMOWpSeHd1NOU2VKXsA3keivZVscOJ0Pni6oe3sadbz0OSTTlUo7Fw+JSGVZxI76G9O dr4ceZXZ1rHtepnHv0VtFNcJi0dQYzq961NoHvzzOACMFmIssCLfY++VB6kuEr9uxJ/T +u5Pr34cL5pylDEvV+WfLak85hoQqCBICRvgIJ0YW7WhdZJseUny5R9BSEpaV24yI+GK dcx52IPH1xAotFBPhDUW+R3vsDLRsIErnNT1VtvnqFr5S7XOEDPRlJ4E8kfOlSKX9YZB xAtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=al8pd8ExtQq9t6BystREaSUFF8BJYov7Zjf4FfVocFQ=; b=U3+ZEFsXXtpnlXfNNmbM3CuAe8Xtdul1K4+DaW6XIrlqlgFlkKWSu28ULwaw7nI0W6 n8DjFhR5xG18s4zAQoh8PDdNk4RY3TAN5SfQG1Y+LDklK1/5KU3d6vcPhOCZ0yaQhS8K XaDzu34gzan8GngBu0hgAuop27eOqVj4aX4ZZrVGYN9IcBeAdA/cnMvDn9mDbmX0gpaz cdXgf1k3ma/EztV+ocU+RVhdS3QGeIHrwBTUDWENYrfWxaX3A6QhpyUAoKNvAHrXYlbm JuvryApBZC/BwXwKHpEPLQcvrJ7mLUFhpXeano0j2JK5Usqegrd7PgmQEC8p+IgrffWp recQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a1gEjlBq; 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 p83si29516453oih.198.2020.01.04.05.18.12; Sat, 04 Jan 2020 05:18:36 -0800 (PST) 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=a1gEjlBq; 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 S1725883AbgADNSJ (ORCPT + 99 others); Sat, 4 Jan 2020 08:18:09 -0500 Received: from mail-pg1-f172.google.com ([209.85.215.172]:35275 "EHLO mail-pg1-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbgADNSJ (ORCPT ); Sat, 4 Jan 2020 08:18:09 -0500 Received: by mail-pg1-f172.google.com with SMTP id l24so24694488pgk.2 for ; Sat, 04 Jan 2020 05:18:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=al8pd8ExtQq9t6BystREaSUFF8BJYov7Zjf4FfVocFQ=; b=a1gEjlBqe5gteXR8HA3GxDKP6K7FKbqB8zsBuBp3NKQu8RTrOzn1jVcFANQfi+39qo IdCM4eWJ+PgucD4OKj2dCYxkMOTVDQsJDf6vOLJQw2iHjLV/fdmiIaIOBNw71Y9TR5k5 4qI8o+kztTW7Qz7ej8bDtnV9eLYH2xm3urSAJt9Fyef5CRcAS4iAD9aDJV2wbxJyNP/J mli5hqcVPhPEFFKBIjwAACHSgin8/bcTQ1yTIZfCKP7yAeTCnXvEzqQxL2YmXJxOCEEC mBjoGX+RvW0By4Ng5hYpJSxTU6JoneGWBefh/yzZoXGRy271iVKtj6F0DVS/SX8kbGz5 Y/pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=al8pd8ExtQq9t6BystREaSUFF8BJYov7Zjf4FfVocFQ=; b=ATETXT3Qh5kESBOll3fnfpPk2I4AIEZ8L/Tm+nEgSOhC2ooPuDdt9RQGqExio09P7t QPVxve8QMTs9TF9lev6hGC3acefhUrJ5BaBxa684o/6vOIKzd7d0NFa3RCaQG4ZB+D7L IOJ0uz9iKCRkMJuhkhlP3Z5jv3JI83c4aAf2c5zAula2JbY1HaK382IcUN1L7j60siNN H57BbMabKRQdWLy1cNxLDpFJRMepX3jU9VCEjJtaIcIS99IOBPD1/y4caEPQXyakwBNN 0UpmhJlETlrhZuScLG5qjIWp+DHymHxjQFYgWFCF/K+ow8zaOB17mf4EdrKk4IjCldnT p5Uw== X-Gm-Message-State: APjAAAWiQGKdD/UndS1RY/EIzE2N2eGVwQBEPmYXiAeQd9nwGcZ4A/P7 diTRF1qRuNYcgknUHyWZhrpcLj4Wa/epdg== X-Received: by 2002:a63:5920:: with SMTP id n32mr100005205pgb.443.1578143888653; Sat, 04 Jan 2020 05:18:08 -0800 (PST) Received: from djofarre-mobl1.ger.corp.intel.com ([134.134.139.76]) by smtp.gmail.com with ESMTPSA id u127sm73211406pfc.95.2020.01.04.05.18.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Jan 2020 05:18:07 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: deprecated tools: rfcomm, can we un-deprecate it? From: Johan Hedberg In-Reply-To: Date: Sat, 4 Jan 2020 14:18:03 +0100 Cc: BlueZ devel list , Marcel Holtmann Content-Transfer-Encoding: quoted-printable Message-Id: <7192C77E-BFF5-4507-A004-3684EDE489AC@gmail.com> References: <0aad7250-65f9-3e4c-e5ca-434139a9ae64@message-id.googlemail.com> <2203E98B-B581-4C14-94DF-164D7E036234@holtmann.org> To: Stefan Seyfried X-Mailer: Apple Mail (2.3608.40.2.2.4) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Stefan, On 4. Jan 2020, at 13.45, Stefan Seyfried = wrote: >> This would be for creating a "rfcomm service" for other devices to >> connect to, right? (The equivalent of "rfcomm listen...") >>=20 >> But how would I connect e.g. to my serial module (I got this for = trying >> it by myself instead of relying on bugreporters results...), so = what's >> the dbus equivalent of "rfcomm connect hci0 "? >=20 > OK, now I found https://github.com/tonyespy/bluez5-spp-example which > explains how to do this. >=20 > I'd still think an example in the bluez documentation would be useful, > because=E2=80=A6 Doesn=E2=80=99t test/test-profile give a pretty good overview of both = server- and client-role usage of the Profile D-Bus API? The main = difference to the RFCOMM ioctls is that instead of a TTY you get a file = descriptor (which I guess you could convert to a TTY using a pty). For = client, another difference is that it=E2=80=99s a two-step process, i.e. = first you register the client role profile and then you call e.g. = ConnectProfile (which test-profile doesn=E2=80=99t cover). Johan