public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] SDP across multiple radios
@ 2008-03-27  6:32 Pooyan McSporran
  2008-03-27 15:00 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Pooyan McSporran @ 2008-03-27  6:32 UTC (permalink / raw)
  To: BlueZ development

If I've got a system with more than one bluetooth adapter (eg, it has
hci0, hci1, and hc2), and I then wish to publish a service, I
currently use AddServiceRecordFromXML.  This works, but it appears
that there is no way to specify which adapter that service applies to.

For example, if I have three adapters, can I make it so that I
advertise a given service only on two of the radios but not the third?
 (I want to be able to control which radios are offering which
services to clients.)

I'm testing this by making one call to the dbus
AddServiceRecordFromXML API (as mentioned above), and then querying
the results using "sdptool browse <bdaddr>" from another computer, but
I see the same service on each of the three bdaddrs.

I note the the command line equivalent "sdptool add ..." also has no
way to specify radios.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] SDP across multiple radios
  2008-03-27  6:32 [Bluez-devel] SDP across multiple radios Pooyan McSporran
@ 2008-03-27 15:00 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2008-03-27 15:00 UTC (permalink / raw)
  To: BlueZ development

Hi Pooyan,

> If I've got a system with more than one bluetooth adapter (eg, it has
> hci0, hci1, and hc2), and I then wish to publish a service, I
> currently use AddServiceRecordFromXML.  This works, but it appears
> that there is no way to specify which adapter that service applies to.
>
> For example, if I have three adapters, can I make it so that I
> advertise a given service only on two of the radios but not the third?
> (I want to be able to control which radios are offering which
> services to clients.)
>
> I'm testing this by making one call to the dbus
> AddServiceRecordFromXML API (as mentioned above), and then querying
> the results using "sdptool browse <bdaddr>" from another computer, but
> I see the same service on each of the three bdaddrs.

that is a limitation of the current D-Bus API. We fixed that with the  
new API that got introduced with bluez-utils-3.29. There you can  
register records on a per adapter basis.

> I note the the command line equivalent "sdptool add ..." also has no
> way to specify radios.

It actually has the -i hciX switch.

Regards

Marcel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2008-03-27 15:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-27  6:32 [Bluez-devel] SDP across multiple radios Pooyan McSporran
2008-03-27 15:00 ` Marcel Holtmann

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