From: Brian Gix <bgix@codeaurora.org>
To: BlueZ development <linux-bluetooth@vger.kernel.org>
Subject: [RFC] LE based Remote Name Request
Date: Fri, 18 Nov 2011 11:39:46 -0800 [thread overview]
Message-ID: <4EC6B482.1070106@codeaurora.org> (raw)
LE does not have a Remote Name Request like BR/EDR has. It does have
the ability to fairly efficiently request the remote device name,
however, which we should implement. Currently the only support we offer
for obtaining the remote device name is to pluck it out of the
Advertising packets (Formatted identically to EIR) which works for most
devices, but as with BR/EDR, there is no requirement that devices
include their name in their advertising data.
The Device Name characteristic is Mandatory, and may only exist once for
a device. If it is less than 20 bytes may therefore be read with a
single ReadByType GATT command (uuid16: 0x2a00) over the full 1-0xFFFF
range. It must also be readable without security, so can be done without
first going through SMP.
We may not want to featurize this particular functionality at all, since
all of the components to obtain this info is already available: We just
need to set up an ATT socket in BlueZ, and make the request. However,
when we talk about Scanning for devices, and automatically forwarding
the Remote Name via a MGMT evevnt, the precedence is there to supply it
from the kernel. And if we were to go down that path, we would also
want to simultaneously offer access to the equally Mandatory and
Unsecured "Appearance" Characteristic (uuid16: 0x2a01) which is LE's
sort-of equivilent to the BR/EDR Class-Of-Device.
So: What are the feelings about doing Remote Name (And Appearance)
discovery in the kernel, probably as part of the LE Discovery mechanism?
I favor putting it in the kernel, due to the equivalent functionality
available to BR/EDR there.
Also, there is no coincidence that I offer this RFC at the same time as
I bring up the Write Signed Command functionality from earlier today.
Both concern usages of GATT (or at least ATT) in a way not currently
supported. It is also a case where ideally, we would use a low-latency
connect-read-disconnect methodology.
--
Brian Gix
bgix@codeaurora.org
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
next reply other threads:[~2011-11-18 19:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-18 19:39 Brian Gix [this message]
2011-11-18 22:08 ` [RFC] LE based Remote Name Request Vinicius Costa Gomes
2011-11-18 22:30 ` Chen Ganir
2011-11-18 22:30 ` Claudio Takahasi
2011-11-18 23:39 ` Brian Gix
2011-11-19 5:28 ` Chen Ganir
2011-11-19 16:21 ` Brian Gix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EC6B482.1070106@codeaurora.org \
--to=bgix@codeaurora.org \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).