Linux-Bluetooth Archive on lore.kernel.org
 help / Atom feed
* Directed advertisements from the command line
@ 2019-02-02 14:59 Youssif Saeed
  2019-02-02 15:53 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Youssif Saeed @ 2019-02-02 14:59 UTC (permalink / raw)
  To: linux-bluetooth

Hi

Is there a tool/utility/option for enabling directed advertising?
Currently, it seems that the only options available through
bluetoothctl is undirected advertising. I can see that there is a
"type" field in the advertising section, but from browsing through the
source, it looks like the only supported options are "peripheral" and
"broadcast" (This can be seen in bluez/client/main.c). Is there an
option or another utility that enables this feature?

I am using BlueZ 5.50 on an Ubuntu machine running Linux 4.15.0-43 generic.

Thanks
Youssif

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Directed advertisements from the command line
  2019-02-02 14:59 Directed advertisements from the command line Youssif Saeed
@ 2019-02-02 15:53 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2019-02-02 15:53 UTC (permalink / raw)
  To: Youssif Saeed; +Cc: linux-bluetooth

Hi Yussif,

On Sat, Feb 02, 2019, Youssif Saeed wrote:
> Is there a tool/utility/option for enabling directed advertising?
> Currently, it seems that the only options available through
> bluetoothctl is undirected advertising. I can see that there is a
> "type" field in the advertising section, but from browsing through the
> source, it looks like the only supported options are "peripheral" and
> "broadcast" (This can be seen in bluez/client/main.c). Is there an
> option or another utility that enables this feature?

If I remember right, you can force the kernel to do directed advertising
by enabling the "advertising" mgmt setting (e.g. "btmgmt advertising on"),
and then issuing a connect on an L2CAP socket to your wanted destination
address. This was originally designed for testing purposes, so I'm not
sure how practical it's for anything else.

Johan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-02 14:59 Directed advertisements from the command line Youssif Saeed
2019-02-02 15:53 ` Johan Hedberg

Linux-Bluetooth Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-bluetooth/0 linux-bluetooth/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-bluetooth linux-bluetooth/ https://lore.kernel.org/linux-bluetooth \
		linux-bluetooth@vger.kernel.org linux-bluetooth@archiver.kernel.org
	public-inbox-index linux-bluetooth


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-bluetooth


AGPL code for this site: git clone https://public-inbox.org/ public-inbox