I am seeing a very strange issue and I am hoping someone can help.
The very first time an iPhone sees a Peripheral, the UUID is returned as "null".
This has been discussed before (it is a new feature of iOS6) and is not directly the problem, because supposedly you should be able to connect anyway and all subsequent connections you make will show a valid UUID.
However, during this initial connection, I find that the iPhone decides to disconnect the connection immediately after the connection has been established. When I see an "unwanted" disconnect I immediately try to reconnect again from within the "didDisconnect" method. The result is that I end up with a never ending sequence of connect, disconnect, connect, disconnect....
The only way to fix this is to I to exit the app, re-power the peripheral, and restart the app. From now on and forever after this particular iPhone+Peripheral connection works wonderfully.
So to summarize, it is the very first connection that is giving this headache.
Has anyone else seen this, and what is correct way to address this issue?
Anders
Send Bluetooth-dev mailing list submissions to email@hidden
To subscribe or unsubscribe via the World Wide Web, visit https://lists.apple.com/mailman/listinfo/bluetooth-dev or, via email, send a message with subject or body 'help' to email@hidden
You can reach the person managing the list at email@hidden
When replying, please edit your Subject line so it is more specific than "Re: Contents of Bluetooth-dev digest..." Today's Topics:
1. Peripheral load limit within background application (Arvydas Sidorenko)
From: Arvydas Sidorenko <email@hidden>
Subject: Peripheral load limit within background application
Date: December 1, 2012 5:48:01 PM PST
To: email@hidden
Application communicates with a bluetooth accessory while running in the background. I am wondering is there a limit how much the peripheral can interrupt the phone? Can the application be rejected if peripheral gives too much load for the phone reducing battery life?
_______________________________________________ Bluetooth-dev mailing list email@hidden https://lists.apple.com/mailman/listinfo/bluetooth-dev
========================== Anders Grunnet-Jepsen, Ph.D. CTO ThinkOptics, Inc. 5568 Del Oro Dr. San Jose Ca 95124 +1 765-88-WAVIT [765-889-2848] (Office) +1 408 823 0930 fax: 408 431 Wavit ==========================
|