Re: Is encrypted link supported in CoreBluetooth?
Re: Is encrypted link supported in CoreBluetooth?
- Subject: Re: Is encrypted link supported in CoreBluetooth?
- From: Joakim Linde <email@hidden>
- Date: Mon, 10 Sep 2012 14:59:55 -0700
Hi Jimmy,
See comments below.
Thanks,
Joakim
On Sep 10, 2012, at 2:21 PM, Jimmy Adler wrote:
> Hi Joakim,
>
> thanks for the reply.
>
> If I try to read one of the protected Characteristics on the sensor, the pairing is initiated, indicated by a UIAlertView that asks if it is ok to pair the device.
>
> How do I know from the application that the link has been encrypted, is there a way to tell the outcome of the pairing?
This is transparent to the app.
>
> Currently the pairing does not make any difference for me, I still cannot read the protected Characteristics. I did however notice that the UIAlertView that asks about paring states that
> "The sensor would like to pair with your iPhone"
> Is this the correct behavior?
Sound like it.
>
> As I understood it, the sensor was not allowed to do pairing, it should be the other way around, right? The iPhone pairing with the sensor?
The iPhone initiates pairing based on the error code from the Peripheral.
>
> Br,
>
> Jimmy
>
> On Sep 10, 2012, at 7:25 PM, Joakim Linde wrote:
>
>>
>> Hi Jimmy,
>>
>> The Peripheral may indicate to an iOS Central that an encrypted link is needed by responding with the error code Insufficient Authentication on a characteristic read or write from the Central. The iOS Central will then initiate pairing and encrypt the link.
>>
>> Thanks,
>> Joakim
>>
>> On Sep 10, 2012, at 5:43 AM, Jimmy Adler wrote:
>>
>>> The device I am communicating with requires an encrypted link to be setup in order for the device to allow access to most of its services, a Characteristic needs to be fed with a passkey in order for access to be granted and this has to be done over an encrypted link.
>>>
>>> How do I initiate such an encrypted link after connecting to the device using CoreBluetooth?
>>>
>>> I would assume it to be a function attached to CBPeripheral or CBCentralManager, but I cannot find any such functions there, unless it is an option of some sort that I have missed.
>>>
>>> Is it possible at all?
>>>
>>> Br,
>>>
>>> Jimmy Adler
>>
>
_______________________________________________
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