Dropped data when push notifications come in with Bluetooth Classic
Dropped data when push notifications come in with Bluetooth Classic
- Subject: Dropped data when push notifications come in with Bluetooth Classic
- From: Tommy Le <email@hidden>
- Date: Mon, 19 Jun 2017 11:52:02 -0400
Hi,
My iOS application interfaces with a bluetooth classic device. Im using the
External Accessories framework to read accelerometer and gyroscope data
from the bluetooth device. The frequency of the data stream is about 200
Hz. However when the iOS device receives a push notification (ex an
iMessage) there is some data loss. Any ideas why this is happening and what
is causing the data loss?
An interesting observation that I made: With the Xcode debugger I put a
breakpoint in my code while data is streaming from the bluetooth device to
pause execution of my application. When I resume execution 5 seconds later,
I still receive the data that was being streamed while the app was
suspended! Is this because iOS buffers the data and waits for my app to
come back to life before calling the stream handleEvent delegate?
Here is how I am communicating with the bluetooth device:
https://developer.apple.com/library/content/featuredarticles
/ExternalAccessoryPT/Articles/Connecting.html
_______________________________________________
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