On Feb 9, 2007, at 2:34 PM, Luigi Castelli wrote:
1 - I have read online that Apple doesn't really
recommend to use inquiries to search for Bluetooth
devices, however - if I don't want any GUI or window
to pop-up - it seems inquiries are the only method...
or am I overlooking something? Is there a better way
to do it?
I've never heard Apple say it was not recommended. However, It only works on 10.4 and forward.
Apple also recommends against always running an inquiry (i.e. starting a new one when the last one stops), and from my own results, I've noticed that when I abruptly lose a baseband connection, most likely there's an inquiry going on.
2 - (It is probably related to 1) My compiler (X-Code)
says that pretty much all functions called from
IOBluetoothUserLib.h are deprecated. My driver finds
Bluetooth devices anyway, however things don't run as
smooth and are not as stable as I would like.
(sometimes devices are not found right away and I have
to perform more inquiries, some other times
IOBluetoothUserLib.h functions return errors and are
not able to open the needed channels, etc...) I am
wondering if there's a better solution to do what I am
doing.
I don't know about deprecated functions -- what warnings are you getting exactly?
The inquiry process is a bit slow and inconsistent. Usually I can find all devices in range within 20-45 seconds, but sometimes names weren't always getting resolved for up to a minute. We get the same results on Windows, so I'm guessing it's just a bluetooth thing.
Joe K.