Re: SDP across multiple radios

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bluez-devel

[Index of Archives]     [Linux Bluetooth Devel]     [Linux USB Devel]     [Network Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux