From: Manuel Naranjo <manuel@aircable.net>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Moving towards a new API for BlueZ 4.0
Date: Fri, 14 Mar 2008 11:44:30 -0200 [thread overview]
Message-ID: <47DA813E.7060503@aircable.net> (raw)
In-Reply-To: <9D26A74C-6B7C-48A7-BFA1-A5128475F01B@holtmann.org>
Marcel,
> With Bluetooth 2.1 and Extended Inquiry this problem
> goes away anyway since the name will be part of the Inquiry Result. In
> case of Bluetooth 2.0 or before, you can always cancel the inquiry
> when you found the device you are looking for. The name resolving will
> happen in the order of closest device first. So from the UI
> perspective you will always have a good experience since users are
> normally interested in the devices around them. So the only drawback
> is a Bluetooth 1.1 or before host controller. They are quite rare
> these days and thus we decided to ignore that problem. Once you
> connect to a remote device we will automatically fetch the name. Also
> the name is always cached and only retrieved when we have no
> information about that device.
>
Mhh this makes some sense but... Bluetooth 2.1 isn't out there yet
right? And it will also require a bluetooth 2.1 dongle too right?
What if I don't want a GUI, I just want to make a non interactive
application that needs to track devices that passes near me? Wouldn't I
loose time in resolving names?
> Also the DeviceFound has the Bluetooth address as first parameter.
> This allows a simple D-Bus filter rule to find them quickly and then
> for example cancel the discovery process. This helps a lot in the case
> you are looking for a specific device.
>
How does this work? In the past if name wasn't know you will firstly get
a DeviceFound call back, and then a DeviceNameUpdated call back. How
will this work in the future? Will I get one callback as soon as the
device is found, and another one once the name is resolved, or just one
with name resolved.
> You might have also seen that we stripped the whole API a lot.
Indeed, it looks quite easier now.
> We removed the support for functions that seems to be useful when we
> designed the current API (about two years ago), but were never used
> within bluez-gnome or the Maemo UI. The goal of the API is to provide
> methods that are needed to implement a good Bluetooth experience for
> without having a bloated and rich API.
>
What if we don't want to target GUI devices? Suppose you have a device
in the door that tracks who comes by, and then opens the door depending
on the bluetooth address, each time a new not know device is discovered
it will make my discovery slower. In the case it only gives one
callback, if you get a callback as soon as the bt address is known.
Is there any chance I can implement resolveName as a property for Adapter?
Cheers,
Manuel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2008-03-14 13:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-13 20:32 [Bluez-devel] Moving towards a new API for BlueZ 4.0 Marcel Holtmann
2008-03-14 10:23 ` Manuel Naranjo
2008-03-14 12:23 ` Marcel Holtmann
2008-03-14 13:44 ` Manuel Naranjo [this message]
2008-03-14 14:00 ` Marcel Holtmann
2008-03-14 14:15 ` Manuel Naranjo
2008-03-14 14:20 ` Robert Rawlins
2008-03-19 23:04 ` David Stockwell
2008-03-20 13:50 ` Marcel Holtmann
2008-03-20 14:49 ` Johan Hedberg
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=47DA813E.7060503@aircable.net \
--to=manuel@aircable.net \
--cc=bluez-devel@lists.sourceforge.net \
/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