Re: Pairing with a device that requires authentication using an "empty password"
Re: Pairing with a device that requires authentication using an "empty password"
- Subject: Re: Pairing with a device that requires authentication using an "empty password"
- From: Felix Schwarz <email@hidden>
- Date: Fri, 5 Sep 2008 10:29:10 +0200
- Resent-date: Fri, 5 Sep 2008 10:30:46 +0200
- Resent-from: Felix Schwarz <email@hidden>
- Resent-message-id: <20080905083049.07045134210F@mail>
- Resent-to: email@hidden
My question relates purely to the Bluetooth APIs of Mac OS X Tiger/
Leopard, not the iPhone.
Best regards,
Felix Schwarz
What OS X you work on, Iphone? What do you use as software tool, SDK?
P.Cardinot
Le 4 sept. 08 à 23:13, Felix Schwarz <felix.schwarz@iospirit-
gmbh.de> a écrit :
Hello everybody,
I'm currently writing an OS X driver for a new Bluetooth device. I
do, however, have problems to get a baseband connection to the
device through all of
- [IOBluetoothDevice
openConnection:withPageTime:authenticationRequired:]
returns 4 via the delegate connectionComplete:status:, even when
pageTimeout is (4 * kDefaultPageTimeout))
- [IOBluetoothDevice openConnection:]
returns 4 via the delegate connectionComplete:status:
- [IOBluetoothDevice requestAuthentication]
returns 2
In PacketLogger, I can see page timeouts for
Write_Authentication_Enable as well as Create_Connection.
On the other hand - [IOBluetoothDevice getServices] returns the
device information (but then I'm aware that that info may be from
the cache of the BT stack from previous successful pairings => see
below).
After a few tries, I can pair the device successfully when going
through the OS X Bluetooth Assistant, selecting "All" and "Empty
password". I'd like to be able to directly pair with that device,
though, using IOBluetoothInquiry and IOBluetoothDevice.
I tried IOBluetoothPairingController as a middle way, but it
doesn't seem to allow me to set that an "empty password" be sent
instead of prompting the user. Instead, it will prompt the user for
a password.
Is there any API I've missed that allows me to pair directly with a
device that requires authentication with an "empty password"?
Also, what does "empty password" mean in technical terms? I
couldn't find any info on this in the Bluetooth specs.
Thanks for any insight and help you can provide. I can't wait to
get support for that device into the hands of OS X users.
Best regards,
Felix Schwarz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden