Airplane mode breaks CoreBluetooth
Airplane mode breaks CoreBluetooth
- Subject: Airplane mode breaks CoreBluetooth
- From: email@hidden
- Date: Tue, 09 Jul 2013 21:00:03 -0700
Not sure if anyone has seen the following issue (I did a quick search and didn't see anyone else reporting anything similar).
I have found that when CoreBluetooth is globally powered off (via airplane mode) while data is being sent/received from a CBCharacteristic, the Bluetooth stack, for a particular peripheral, can get in a broken state. Once in the broken state and the CoreBluetooth is powered back on, the peripheral that was previously sending/receiving will not be able to discover services or characteristics until the iOS device is power-cycled.
Steps to Reproduce:
1. Connect to a BLE peripheral.
2. Discover the BLE peripheral services and characteristics for the desired service.
3. Continuously write values to a particular characteristic while also receiving updated values from the same characteristic.
4. Background app (while it continues doing step 3) and goto the iOS settings and turn Airplane Mode on.
5. Turn Airplane mode off and allow peripheral to be connected again.
6. Once connected try to discover services for the peripheral.
7. The delegate "didDiscoverServices" will never get called.
Nothing I can do seems to recover the peripheral. The only thing that works is a power-cycle of the iOS device.
_______________________________________________
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