• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reinitiate CoreBluetooth BTLE Pairing Connection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reinitiate CoreBluetooth BTLE Pairing Connection


  • Subject: Re: Reinitiate CoreBluetooth BTLE Pairing Connection
  • From: Zachary Kaplan <email@hidden>
  • Date: Mon, 09 Nov 2015 11:33:22 -0800
  • X_v_e_cd: d095601bd43817a71cbc8630c76506f5
  • X_v_r_cd: 41a9c03b04f7ed07d909db8d5131d15f

This doesn't work. "Zachary's iPhone" and my peripheral service "Hoverboard" seem to be conflicting with each other.

My phone use to show up as "Zachary's iPhone" in my Bluetooth preferences pane on my Mac. I have my peripheral application running and "Zachary's iPhone" changed to "Hoverboard", which is the service name that I advertise in my peripheral. When I foreground my peripheral application on iOS, it changes back to "Zachary's iPhone" for a second or two, then back to "Hoverboard" again when the device is in the connected state. They both have the same address when I right click on it, only the text name of the service changes. 

I have tried removing the "Hoverboard" service from the Bluetooth preferences as well as removing my computer from my iOS bluetooth settings. My peripheral application is still able to create an encrypted connection without prompting to pair.

On Sun, Nov 8, 2015 at 9:51 PM, Craig Dooley <email@hidden> wrote:
Removing the device from Bluetooth Settings on iOS and the Bluetooth Preference Pane on OS X will cause the next connection to prompt the user for a pairing.

- Craig

> On Nov 8, 2015, at 4:34 PM, Zachary Kaplan <email@hidden> wrote:
>
> Hello,
>
> For some context, I am building BTLE central and peripheral applications using the CoreBluetooth framework. The central application runs on OS X, whilst the peripheral runs iOS. The peripheral advertises a service that has a characteristic which requires encryption. When connected, the remote central tries to subscribe to the characteristic, and then CoreBluetooth tries to pair with the peripheral to create a secure connection. The user is then prompted to accept or deny the pairing connection. On subsequent initializations of the peripheral application (closing and reopening the application), CoreBuetooth does not prompt the user to accept or deny the pairing connection on subsequent attempts. This is usually the desired behavior, but for testing purposes I would like to reinitiate the pairing connection. During development, this will allow me to test the application as if it were installed for the very first time. I have tried changing the UUID's and even removing the application all together; all without luck. I have also attempted to delete the Bluetooth property list file on OS X, also without luck. The only mechanism I have been able to utilize with success to reset the pairing connection, has been to completely wipe the iOS device, which is very time consuming. Does anybody know of a way I can force the iOS device to reinitiate the pairing connection as if this was the users first time installing the application and the OS X's first time discovering the service?
>
> Thanks,
>
> - Zachary Adam Kaplan
> _______________________________________________
> 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


 _______________________________________________
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

References: 
 >Reinitiate CoreBluetooth BTLE Pairing Connection (From: Zachary Kaplan <email@hidden>)
 >Re: Reinitiate CoreBluetooth BTLE Pairing Connection (From: Craig Dooley <email@hidden>)

  • Prev by Date: Re: Peripheral not being discovered in the background until I open the BlueTooth Settings page
  • Next by Date: Re: Peripheral not being discovered in the background until I open the BlueTooth Settings page
  • Previous by thread: Re: Reinitiate CoreBluetooth BTLE Pairing Connection
  • Next by thread: Peripheral not being discovered in the background until I open the BlueTooth Settings page
  • Index(es):
    • Date
    • Thread