Linux bluetooth development
 help / color / mirror / Atom feed
From: Denis KENZIOR <denis.kenzior@trolltech.com>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] DBus SDP API
Date: Thu, 23 Nov 2006 15:52:16 +1000	[thread overview]
Message-ID: <200611231552.16972.denis.kenzior@trolltech.com> (raw)
In-Reply-To: <1164260134.4847.12.camel@localhost>

On Thursday 23 November 2006 15:35, Marcel Holtmann wrote:
> Hi Denis,
>
> > Have you given any more thought as to how the RFCOMM channels are managed
> > by the DBus Service API?  The same goes for L2CAP.  From what I
> > understand the current implementation depends on clients to know what is
> > available...
>
> yes. That is where the "name" parameter in the XML record is for. You
> can simply override it with your own values. However this must be
> application or service specific.

So hcid will never be responsible for allocating rfcomm channels?  I'm not 
sure that's a good idea, since everybody will implement it themselves (and 
probably get it wrong anyway)

>
> > Will there be a lower-level SDP registration framework for the local
> > device? E.g. to be able to manually register records in binary/XML format
> > without creating a service agent?
>
> It is there at the moment by using the Bluetooth library. However I have
> no idea if it will stay there. I don't see any real use case except for
> debugging and with your enhancement to service-agent.c even that case is
> not really existent anymore.

I see two advantages to doing this.  The main use case would be to deprecate 
some aspects of sdptool and all the hairy code in there that does the 
registration.  Move all of it to XML/Binary files.  The second would be the 
completeness of the DBUS API. 

>
> > Most importantly, do you have plans for local versions of
> >                 array{uint32} GetRemoteServiceHandles(string address,
> > string match)
> >
> > and
> >
> >                 array{byte} GetRemoteServiceRecord(string address, uint32
> > handle)
> >
> > ?
>
> I thought about that multiple times. Every time I convinced myself to
> implement it, I failed to find the use case for it.

Well I can see several useful things you can do:
- If hcid doesn't manage RFCOMM channels, how will an application know 
dynamically what channel is available?  Such an operation will never be 
atomic (another argument for doing it in hcid), but  at least you can do 
selection semi-intelligently.

- I can see a GNOME / KDE app that displays all services running on the local 
device, and use the UUIDs to identify exactly what type of service it is 
(e.g. for icons) without having to rely on Text descriptions from the DBus 
Service API.  

Regards,
-Denis

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2006-11-23  5:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-23  5:26 [Bluez-devel] DBus SDP API Denis KENZIOR
2006-11-23  5:35 ` Marcel Holtmann
2006-11-23  5:52   ` Denis KENZIOR [this message]
2006-11-23  5:58     ` Marcel Holtmann
2006-11-23  6:33       ` Denis KENZIOR
2006-11-23  6:51         ` 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=200611231552.16972.denis.kenzior@trolltech.com \
    --to=denis.kenzior@trolltech.com \
    --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