Re: Dropped data when push notifications come in with Bluetooth Classic
Re: Dropped data when push notifications come in with Bluetooth Classic
- Subject: Re: Dropped data when push notifications come in with Bluetooth Classic
- From: Matthias Ringwald <email@hidden>
- Date: Tue, 20 Jun 2017 18:01:24 +0200
Hi Tommy
I'm not sure how much we're allowed to talk about MFi - I would assume pretty
little to nothing.
Here's some very general ideas:
- you could analyse the Bluetooth communication on your device and check what
packets of the MFi EA you send and which you receive.
- on a pre iOS 10 device with a Jailbreak, you could use the Packet Logger
feature of the Bluetooth Companion extension from Cydia to check what's going on
- finally, you could use the official ATS testing tool to test the
communication as it probably points out missing packet and such. (public info:
http://www.fte.com/products/BPA100.aspx
<http://www.fte.com/products/BPA100.aspx>)
As this sounds a bit strange, I would also suggest to try with different iOS
device and/or version, maybe there's a pattern.
Good luck
Matthias
—
Dr. sc. Matthias Ringwald
BlueKitchen GmbH, Zurich
> On 19 Jun 2017, at 17:52, Tommy Le <email@hidden> wrote:
>
> 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
>
> <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
_______________________________________________
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