Linux bluetooth development
 help / color / mirror / Atom feed
* [RFC] Add new method to DBus API: DiscoverServiceByUUID
@ 2015-05-28 20:44 Jakub Pawlowski
  2015-05-28 21:32 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 10+ messages in thread
From: Jakub Pawlowski @ 2015-05-28 20:44 UTC (permalink / raw)
  To: BlueZ development

Currently, calling org.bluez.Device1.Connect() on a new, never
connected before device, would cause automatic discovery of all
services.

This is bad in some cases, because discovering all available services
might take a long time. Additionally some devices, i.e. iPhone have
built-in 0.5s delay between each "Find Information Response" packet,
which make discovery even longer.


I would like to propose following change:

1. Calling org.bluez.Device1.Connect() would work just like now,
except no "Find Information Request" would be issued (that means no
call to "device_browse_gatt").

2. Add two new methods: org.bluez.Device1.DiscoverServices(), and
org.bluez.Device1.DiscoverServiceByUUID(uuid). First one would just
call device_browse_gatt and make "Find Information Request" , the
second one would issue "Find By Type Value Request" to find just one
service.

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

end of thread, other threads:[~2015-06-09 10:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-28 20:44 [RFC] Add new method to DBus API: DiscoverServiceByUUID Jakub Pawlowski
2015-05-28 21:32 ` Luiz Augusto von Dentz
2015-05-28 22:25   ` Jakub Pawlowski
2015-05-29  8:35     ` Luiz Augusto von Dentz
2015-05-31  2:55     ` Johan Hedberg
2015-06-01 17:25       ` Jakub Pawlowski
2015-06-01 18:22         ` Luiz Augusto von Dentz
2015-06-01 21:42           ` Arman Uguray
2015-06-02 14:51             ` Luiz Augusto von Dentz
2015-06-09 10:48               ` Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox