• 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: Reconnecting with peripheral
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reconnecting with peripheral


  • Subject: Re: Reconnecting with peripheral
  • From: Etan Kissling <email@hidden>
  • Date: Sun, 16 Feb 2014 14:16:28 +0000
  • Thread-topic: Reconnecting with peripheral

Support options in general:

Pointing out the urgency of requirements is usually not a good idea when posting on this mailing list, as being impatient makes the request look unprofessional and not well-thought.
We are volunteers, discussing questions on this list based on the pleasure principle, and don’t get paid for helping out :-)

As a plus, if you write here without having any expectations, it is not possible to be disappointed.

If you need professional technical support, use the Apple DTS located here: https://developer.apple.com/support/technical/submit/
Support costs 50$ per ticket which is quite reasonable, as you get two tickets for free per year. (The 5-packs are a trap - you get cheaper by buying the 2-packs).


Regarding your problem:

As I understand from your multiple e-mails (no need to repeat them ;) I have rules that delay email conversations every time a new message is added to avoid spam), 
your setup consists of an iPhone + a custom accessory, and you want to create a notification on the iPhone when you press the button on the accessory. 
You want to use the Immediate Alert Level Profile in order to accomplish this (https://developer.bluetooth.org/TechnologyOverview/Pages/IAS.aspx)

In your request it looks as your iPhone is the central, and your accessory is the peripheral. Usually, the peripheral is the device that offers services that the central can access.

The Immediately Alert Level Profile adds a service on the peripheral side, allowing a central to write to an “Alert Level” characteristic to initiate an alert on the peripheral side.

What you try to accomplish is the opposite way - you want to add the “Alert Level” characteristic to your iPhone, not to your accessory.

To achieve this, you could swap the roles of central and peripheral, making your accessory connect to the iPhone. However, there are some caveats with this setup, as the 
iPhone periodically changes its Bluetooth address, making it hard to identify the iPhone across sessions. It’s still doable with pairing and encryption, but you seem to look for a simpler solution.

This leaves you with choosing a different profile (or come up with your own) to get a notification when the button is pressed. Such a profile could look like this:

If your iPhone is connected to the accessory all the time, you can add a custom service with a custom characteristic to your accessory’s GATT database.
Configure the characteristic in a way that allows sending Indications, then use the [-setNotifyValue:forCharacteristic:] method of CBPeripheral to enable the
indications. From there on, you will see [-didUpdateValueForCharacteristic] when you send an indication from your accessory.

If your iPhone is not connected to the accessory at all times, you will need to scan for the accessory in your app. While scanning, you can add a serviceUuid filter.
You could configure your accessory that it broadcasts a special serviceUuid while the button is pressed, so that your iPhone can react to that, and connect to
the accessory, at which point you are in the first scenario again.


Hoping this brings you further.

Good luck with your project.
Etan








On 16.02.2014, at 14:21, ponthota viswanath reddy <email@hidden> wrote:

Dear All,


    I need a requirement to find the phone from bluetooth Tag. For this requirement I did Hours of Hours R &D, I am setting notification yes for immediate alert level characteristic (UUID:2a06) didDiscoverCharecteristicforService method. After phone is connected to bluetooth. I am pressing button on bluetooth tag, But no reaction . Not entering into didUpdateValueForCharecteristic.  method. Is there any other way to find the phone from Bluetotoh tag. I tested the Bluetooth tag with existing apps in APP store. (smartNudge,stick&Finder), Everything is fine in their apps .

 How they gain. Why I am not gang not understanding to me.

Will you please give guidance to for this issue. This is Urgent requirement for me.


Thanks&Regards
Viswanath Reddy
9700800307



On Wed, Feb 5, 2014 at 8:37 AM, Viswanathreddy <email@hidden> wrote:
I need a requirement that keep a connection with peripheral tag from application,
I need one specific requirement is maintains the connection with
Peripheral tag with in the range and reconnecting to the peripheral if the peripheral went to out of range and come back into range. How it is possible with our core bluetooth framework.
I  was struck here .please help me.this is urgent requirement

Thanks
Viswanathreddy

Sent from my iPhone

_______________________________________________
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: 
 >Reconnecting with peripheral (From: Viswanathreddy <email@hidden>)
 >Re: Reconnecting with peripheral (From: ponthota viswanath reddy <email@hidden>)

  • Prev by Date: Re: Reconnecting with peripheral
  • Next by Date: Re: Device Info Characteristics with an OLS425 and Mac OS X
  • Previous by thread: Re: Reconnecting with peripheral
  • Next by thread: Re: Revisited: No call to didDiscoverServices, requiring reboot of iOS device
  • Index(es):
    • Date
    • Thread