Re: [Bluez-devel] [PATCH] implement RFCOMM Connect and Disconnect methods

Matthew Garrett
2006-08-17T11:41:16Z

On Thu, Aug 17, 2006 at 03:04:18PM +0200, Marcel Holtmann wrote:

> I haven't payed much attention to the RFCOMM parts of our D-Bus API
> since I declared it as experimental and it might still change. However
> one thing is that we wanna use strings. They are more flexible and if
> you use languages like Python they can come in handy.
>
> In this case for example you might use "spp" (service name) or
> "0x10000" (record handle) to connect to a specific RFCOMM channel.

I'm not entirely clear on what a service name represents. Is it a
specific service, or is it the profile implemented by that service? What
string should represent non-standard services? As an example, my phone
has a service called "Nokia OBEX PC Suite Services". If I want to use
that via the DBus interface, I'll presumably need to use the record
handle anyway?

> The SDP caching is still something that needs a lot of thinking before
> we will finally solve it. It is not as easy as people thing and always
> requesting a SDP record first is not a good idea either. However a lot
> of this depends on how broken the SDP records of the remote devices are.

I agree that always requesting the SDP record first is less than ideal,
but I'd argue that it's better to have suboptimal functionality than no
functionality :)

Thanks,