That's in interesting suggestions, Joakim. I'll see if I can work it into this re-work of my BLE code. I do have a block-based wrapper around CB, it may not be too hard to set it up on a different queue. -- Rick On Jul 23, 2013, at 18:12 , Joakim Fernstad <jfernstad@stratos.com> wrote:
The general advice I can give is to run the BLE code on a different thread (separate dispatch_queue_t queue). Some UI elements (scroll/table views etc) will starve out the BLE communication. That's probably not what's happening to you, looking at your output it seems the stack crashed and restarted, but since I put it on a separate queue I get less packet loss and the stack feels more robust in general. (I push quite a lot of data over the link. )
Joakim
-----Original Message----- From: bluetooth-dev-bounces+jfernstad=stratos.com@lists.apple.com [mailto:bluetooth-dev-bounces+jfernstad=stratos.com@lists.apple.com] On Behalf Of Rick Mann Sent: Tuesday, July 23, 2013 5:31 PM To: bluetooth-dev@lists.apple.com Bluetooth Subject: CB is very unreliable
I've had to re-do some of the UI around our BLE interaction. Mostly, the code I'm using to call CoreBluetooth is the same, just when I call it has changed.
But I'm seeing a lot of unreliable behavior. For example, I started scanning, then after that, this happened:
2013-07-23 17:26:36.761 [9458:907] CoreBluetooth[WARNING] <CBConcreteCentralManager: 0x1f07e340> is not powered on 2013-07-23 17:26:36.896 [9458:907] <CameraBrowser.m:113>: centralManagerDidUpdateState: 5 2013-07-23 17:26:37.535 [9458:3c07] CoreBluetooth[ERROR] XPC connection interrupted, resetting 2013-07-23 17:26:37.537 [9458:907] <CameraBrowser.m:113>: centralManagerDidUpdateState: 1 2013-07-23 17:26:37.654 [9458:907] <CameraBrowser.m:113>: centralManagerDidUpdateState: 4 2013-07-23 17:26:45.389 [9458:907] <CameraBrowser.m:113>: centralManagerDidUpdateState: 5
It seems like I have to keep all sorts of parallel state (in this case, I have to keep the state that I want to be scanning, so that if CB powers up, I can actually start scanning again).
This is getting extremely frustrating.
-- Rick
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/jfernstad%40stratos.co...
This email sent to jfernstad@stratos.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/rmann%40latencyzero.co...
This email sent to rmann@latencyzero.com
-- Rick _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Rick Mann