linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] [DBUS] remote name patch
Date: Mon, 23 Jan 2006 18:08:35 +0100	[thread overview]
Message-ID: <1138036115.7327.14.camel@localhost> (raw)
In-Reply-To: <e1effdeb0601230833t25905a64he7ca62c7d1ab48cf@mail.gmail.com>

Hi Claudio,

> I has just read some parts of "Specification Change Request". What is
> the current status of the BlueZ Kernel? I figure out that there is a
> function to parse the extended inquiry result event, however in the
> code I have the 240 bytes are being ignored.

the code inside the kernel only keeps the inquiry cache up-to-date,
because you need this for the connection establishment.

> I prefer use just one signal instead of add a new signal to represent
> the extended inquiry response. My suggestion is unify the standard and
> the extended inquiry. If the user wants to know some response
> properties, we can add an extra signal field to indicate the
> type(Standard, with RSSI or EIR) and the remote name property(shorted,
> full, cached).
> 
> Regarding the shorted/full name, in my opinion applications generally
> will not want to distinguish the name type. The others UUIDs(service,
> manufacturer, ...) included in the EIR packet can be ignore for now.
> If required, we add extra fields in the inquiry cache to store these
> UUIDs and add an D-Bus services to retrieve these data later.
> 
> Inquiry Result signal format proposal:
> 
> /* type flags */
> #define STD_INQUIRY_RESPONSE   0x00010000
> #define RSSI_INQUIRY_RESPONSE  0x00010000  /* RSSI included*/
> #define EIR_INQUIRY_RESPONSE   0x01000000  /* */
> 
> /* name flags */
> #define SHORTED_NAME           0x00000001
> #define FULL_NAME              0x00000010
> #define CACHED_NAME            0x00000100
> 
> Signal arguments:
> UINT32: type (STD_INQUIRY_RESPONSE/RSSI_INQUIRY_RESPONSE/EIR_INQUIRY_RESPONSE
> | FLAGS
> String: BDADDR
> String: name /* "n/a", cached value, shorted or full name */
> UINT32: Device class
> INT32: RSSI
> 
> "n/a" in the name field will be applied to standard inquiry, where the
> remote name should be retrieved later or for EIR, when the local name
> length is zero.
> 
> What do you think?  Do you have another suggestion or comments?

Don't try to distinguish the different inquiry modes on the D-Bus
interface. All of them are only an implementation detail.

Regarding the name, we might simply say the hcid/bluetoothd always sends
a remote name signal if something changes. So it might get the short
name from the extended inquiry first and after that it receives the full
remote name. We can also always send the cached name and we update that
name on every service discovery, because then it is at zero cost.

So we have one device name. This maybe a cached, a remote or a shortened
name. The application doesn't really have to care and it gets updates as
soon as hcid/bluetoothd knows them.

Besides the device name, we should implement an alias name. This name is
associated with the BD_ADDR and can be changed by the user if he/she
doesn't like the device name. Implementing this alias through the D-Bus
interface makes it available for all applications and we can store the
aliases in /var/lib/bluetooth/<bdaddr>/aliases.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2006-01-23 17:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-20 18:37 [Bluez-devel] [DBUS] remote name patch Claudio Takahasi
2006-01-21  1:48 ` Marcel Holtmann
2006-01-23 16:33   ` Claudio Takahasi
2006-01-23 17:08     ` Marcel Holtmann [this message]
2006-01-23 18:54       ` Claudio Takahasi
2006-01-23 20:14         ` Marcel Holtmann
2006-01-26 14:09           ` Claudio Takahasi
2006-01-26 18:03             ` Marcel Holtmann
2006-02-09 13:55               ` Claudio Takahasi
2006-02-09 15:56                 ` Marcel Holtmann

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=1138036115.7327.14.camel@localhost \
    --to=marcel@holtmann.org \
    --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;
as well as URLs for NNTP newsgroup(s).