Pairing with a device that requires authentication using an "empty password"
Pairing with a device that requires authentication using an "empty password"
- Subject: Pairing with a device that requires authentication using an "empty password"
- From: Felix Schwarz <email@hidden>
- Date: Thu, 4 Sep 2008 23:13:27 +0200
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