Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp19584761ybl; Sat, 4 Jan 2020 04:46:21 -0800 (PST) X-Google-Smtp-Source: APXvYqx9z7ZKA5L0U9d3O5dyKyMrfJlQnVjt2zMAx+psHMeGAImK1y33KEFGZMkxyAjjSkvkKcCD X-Received: by 2002:a05:6830:1615:: with SMTP id g21mr108731215otr.49.1578141981655; Sat, 04 Jan 2020 04:46:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578141981; cv=none; d=google.com; s=arc-20160816; b=ZOWoqmj39ZOimxHEIp11jSV+8Rr0ap2zrZW/GiTdl5I20X4ImuEjvIZDaYJ0ae8jfq RmlmzB2oGBBBE5ZHt2YERm+IS7u+PQxomNuRIdKX1Fwqmp+IGnjcudQwMJ7qSWzkfVcZ uAiobm9OYrz3RTHmAkdGQA3GicIw6SiXCcMgtpceBR4bHoDtOrxTad/5jg7VRL1kDDmL KJ0wMkHXadzGAnu43VmqZko0zYBbDqncaNK4ycWQ2AB5XkQ3zRF0hxFoUKvWFHIbAWyP EjGzKD75o6/eaPvW3ccVJhvWgKpGMoEsJ1O4vTUT3Ykda0qqWDALZfL4+NUDK7IVPsgR o1Jg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:references:cc:to:from:subject:dkim-signature; bh=fe9MGgNbnNAc5QZVvJe2Ts8ghrNUQNxTK87IhR1DoCc=; b=jVUkgJgi7Ch7Mq6sHkj5L7KqzJ3WHLDLb/0DZngpetKdhEEfQ8CYiuMt5W0jD1lRdD Y6aLrzTu7fF4PS/aUnGTvF3ROu3k5wtvl6q8+8N355pD0zgdrzrrA5IF4JoOu52oo794 Z61j/xuFGsQjg8VF6MhrcyXmz9uq3OP7YiZucG5+AYqWsyhGyf6Brzk5e0yMrZt1HAIj AmX4RfYNPtsE3KdQEFI3st21xcsoSKX6J2+jAbq0eqPYz0xTahnGfVkb8npTxKgQ4nsF 0+xhisgSnX3q3AJq0uDyq5e19rqkQo0TswhNxgF+A97+0am9RNmwzrNU6KqHza6fUSMz YnTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=W79VxUx6; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si32541728oto.204.2020.01.04.04.45.54; Sat, 04 Jan 2020 04:46:21 -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=@googlemail.com header.s=20161025 header.b=W79VxUx6; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725928AbgADMpv (ORCPT + 99 others); Sat, 4 Jan 2020 07:45:51 -0500 Received: from mail-wm1-f47.google.com ([209.85.128.47]:54327 "EHLO mail-wm1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbgADMpv (ORCPT ); Sat, 4 Jan 2020 07:45:51 -0500 Received: by mail-wm1-f47.google.com with SMTP id b19so10511330wmj.4 for ; Sat, 04 Jan 2020 04:45:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=subject:from:to:cc:references:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fe9MGgNbnNAc5QZVvJe2Ts8ghrNUQNxTK87IhR1DoCc=; b=W79VxUx6a4qlqdU8ULdc8PK1wGDBdl7HIyfMIkxo7IhGwDEoLph69vEg6E8l/17UmN oAYg9H7pu9CNby4hitK64q3/kLuh1MU1h2nmtNwZFYCp1fNMjtN9cXmowAB1V4ag4uhz 9BM3msk3Q6U3nqc22/DjzVgzEluP1f/0X6I+ifonW0Es7OgCXb5aSGbr4CvIhSQS9DBn iP+pz2z+wDSVDDNC+zDBPBxjb1o3Yu2z3fMCtbqtAMkW69O7J4WtOK+tNWRUMWaTpnfN uu6kra4efMaOsrQQhRWdCoarE2EQW/UMXelGYNe1za8XAcEZ+mjGA/5jQAGJVqrybpYA dcdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=fe9MGgNbnNAc5QZVvJe2Ts8ghrNUQNxTK87IhR1DoCc=; b=pdo9Uz5CnTg4pYNwjsBCknl4aVX3zgDE3JBARbwA2mWxDJc1d8+w42K0y3Ucf9FfoX 9Lh0O0mME4q7eVHQyfc/fz6laqZTv0AaPDFFBIMbjCjDSyzumVVHG2vThQ5Xjl0rihA0 WmmGQv9ApdCM6/zWdxoq+xouFq93ulLxvJCbzkBYjhZV4wN288Lw7I8Ux+rZ2+W+hXNt 3OxbXNtPX/dXJe1Jnsl+4PjvQvRhEmwOnhtaeguUXO/pWWXqzOkM57rKaf3bWlGROL+X Rb9FsqBfZZPV7XuDz74rPkyb4AmBpbWzuwi7pG2iji72ySsSWIV7MvzKEik7jLCz48S/ 6PVQ== X-Gm-Message-State: APjAAAVuqBnO7INkrw9TC85ZHd90lhcKb3P+ugYdSbevcT6dUwRKTM/s zw+lDTzf/fCzTnePOTPoXvsf7uRA X-Received: by 2002:a1c:4907:: with SMTP id w7mr24238448wma.106.1578141949164; Sat, 04 Jan 2020 04:45:49 -0800 (PST) Received: from [192.168.200.12] (p4FD25D76.dip0.t-ipconnect.de. [79.210.93.118]) by smtp.gmail.com with ESMTPSA id g23sm15482812wmk.14.2020.01.04.04.45.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 04 Jan 2020 04:45:48 -0800 (PST) Subject: Re: deprecated tools: rfcomm, can we un-deprecate it? From: Stefan Seyfried To: BlueZ devel list Cc: Marcel Holtmann References: <0aad7250-65f9-3e4c-e5ca-434139a9ae64@message-id.googlemail.com> <2203E98B-B581-4C14-94DF-164D7E036234@holtmann.org> Autocrypt: addr=stefan.seyfried@googlemail.com; prefer-encrypt=mutual; keydata= mQGiBDqoB5ARBACZn/K+5V0uoo0Wr9cI9hw5vPioOmIbPv30x47j/w/XNECPSzos078v9Fr2 Mlz0MG9Gnpl9S1o0OIh//K5xxj2/LRLO2nL9/nqlnwmJ6W5qrjjn6Ch3mxz5mxMeRMRMY1cZ EkSj7GH3ZLviZlzrnpuJd12HWsXhAwVxUyQnvsvNzwCgpIO6EfQT33o9illpG/AxIk2Uu0cD /A4cgKbm5VZW5DPTlLe8P92eEgj5cN51SUXHXYgWBI0Fx+QwSYm6ON0U03B4oR5zDWMHkJfZ WgXROdwY/NqouBoV7lXvHsyInPzExNixe+1vcrhDJ3ow6nlCW77aCFp22iwumC4ouzFtOMXK kih0WPrxPKq27Hw9fq9EaR2oV2tUBACN6ZC+G7J21ruG9slJ+bFcY5cW7M5Um6Czk08T+vtd 7fAg+fEUcGCtIdVdHrXBut07K9y6iy5IuqwAV5fJsE+JQO+f+X1pymdRgdWHGEoMMdEW4k3W IGjrmmMUtpqzr30h4WFgA4+0nR3jpmcGCWBSa4selQecyyOlM7rcmKyQNrQkU3RlZmFuIFNl eWZyaWVkIDxzZWlmZUBvcGVuc3VzZS5vcmc+iGAEExECACAFAkx9Sb0CGyMGCwkIBwMCBBUC CAMEFgIDAQIeAQIXgAAKCRAx00vNNldAmFZuAJ9xLbFShKeTTDgfwMUmO37qw07npACgmLIK fbArokRryKixiliTvxAgFHG5AQ0EOqgHkhAEALGQaS9Hj25lKGsaTOMKMBBvjklv6brH8JdF WTA9dr37spc+PFFyc9686bcT+5nkbpjq3ndXUzGdGzfe0YwOlQh4fWXZT/oTXosIBqDWPShE ntDU8BX9JVqBBZwJ/ey+QF5tgYrICjCzp8S/mL6sqw8En4/AS84lulAoNJMJsUcDAAMFA/4p ik7hBklqJzYC7uNWZDL9dkYwIsUXM64kGenUhpgguLZvhuVeUeHU2iIsdTcNBbeBwvXgLnEu vVSdf4wtDwR7SjUYebymbGc/JLkXjqGntaWUr+wfHmAm3oXV2X+WFzZQJ+o8N5dJyBEUbrVX YvBD7wErgEuJAL+q/i28U9u7OYhGBBgRAgAGBQI6qAeSAAoJEDHTS802V0CYBL8An1gF2k4s UaMjAtoX/ixcOhAv44i4AJ9Yi+OgvhS8CbUp+XkI5Q352XU+BQ== Message-ID: Date: Sat, 4 Jan 2020 13:45:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi all, Am 31.12.19 um 18:35 schrieb Stefan Seyfried: > Hi Marcel, > > thanks for the response. > > Am 26.12.19 um 21:40 schrieb Marcel Holtmann: > >>> So is there a way to set up a rfcomm device via bluetoothctl? I could >>> not find one, but maybe I did not look hard enough? >>> >>> If not, could we please un-deprecate rfcomm, because having everyone out >>> there reinvent the functionality in crazy ways probably is not a good idea. >>> >>> Or should I just continue to build the package with --enable-deprecated? >>> But that will ship tools with known unfixed security issues (hcidump). >> >> have a look at doc/profile-api.txt. > > This would be for creating a "rfcomm service" for other devices to > connect to, right? (The equivalent of "rfcomm listen...") > > 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 "? OK, now I found https://github.com/tonyespy/bluez5-spp-example which explains how to do this. I'd still think an example in the bluez documentation would be useful, because... > the knowledge on how to handle this seems > non-existent: all the various bluetooth codebases checked (e.g. blueman, > pybluez) just re-implement the code in tools/rfcomm.c's cmd_connect > (socket, bind, connect, ioctl RFCOMMCREATEDEV, ...). Best regards, Stefan -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman