Understanding my available resources

"Heston James" <[email protected]>
Newsgroups gmane.linux.bluez.devel
Message-ID <[email protected]>
Good morning all,

I'm new to the list, whilst I have been working with bluez for a little
while now I have a few questions I'm itching to ask so thought it was about
time that I subscribed and made some noise :-)

I'm looking for some help in understanding what 'resources' (if that's the
right term) I have available to me. I'll try and list my questions below in
the hope that you'll understand what I'm asking.

1) As I understand it, A bluetooth dongle has 7 available ACL connections,
is that correct?
2) These available ACL connections are consumed by most tasks such as
Inquiry Scans, SDP Enquiries, RFCOMM connections and suchlike, is that
right?
3) Can I, using the dbus API see how many ACL connections are currently
being consumed on the adapter? If not through the dbus API can I do it
through the lower level API?

The reason I ask is that I believe I can build more effective applications
on top of bluez if I can understand what resources are available to me. For
instance, I have noticed that when performing a Periodic Enquiry on an
adapter, if I use that same adapter to do an SDP Enquiry on a remote device
then it seems to halt my periodic enquiry, is that normal behaviour? or
perhaps just wrong coding on my part?

Also, as another example, when I try and perform a couple of SDP enquiries
through an adapter on a couple of remote devices concurrently then usualy
one or both enquiries will fail with something like a 'devcie or resource
busy' exception.

If both of those cases are true then I feel it would be beneficial for me to
be able to manage my resources more effectively and ensure my application
doesn't SDP on an adapter which is performing an enquiry, or put some type
of locking on my SDP enquiry calls so I'm never performing more than 1 at a
time.

I look forward to getting your thoughts on this guys, whilst a fairly
competent bluez developer this little conundrum has always escaped me. I'm
really intreagued to understand what resources are available on a dongle and
exactly how particular processes such as Enquiries and SDP's consume them.

Many thanks,

Heston

p.s. Excellent work on the stack guys, really excelent!

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.