<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Android dropping packets</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14998/android-dropping-packets</link><description>I have created a nRF52 based peripheral device which is used to stream sensor data to a connected central device, usually an iPhone. I can stream data, reliably to the iPhone up to 104 packets per second with very little data loss, maybe 1 notification</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 25 Sep 2016 13:22:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14998/android-dropping-packets" /><item><title>RE: Android dropping packets</title><link>https://devzone.nordicsemi.com/thread/57234?ContentTypeID=1</link><pubDate>Sun, 25 Sep 2016 13:22:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d514ab4-a539-4843-8ff0-eac9d8320284</guid><dc:creator>Christopher</dc:creator><description>&lt;p&gt;By default, the smartphone choose the bigger BLE connection interval, unless you ask to get an higher bandwidth. On Android, you can &lt;a href="https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#requestConnectionPriority(int)"&gt;request a connection priority&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android dropping packets</title><link>https://devzone.nordicsemi.com/thread/57233?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2016 18:43:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7afb9d1f-5783-455b-8931-081db5442e2c</guid><dc:creator>Sensorion</dc:creator><description>&lt;p&gt;Thanks for the response.  The answer to this was in how Android determines the min and max connection rates.  The app we were using used the max connection rate as provided by the nRF52 chip&amp;#39;s firmware.  Changing this rate in Firmware to a lower rate solved the issue although it feels like a hack, and the issue should ultimately be handled in the andriod app code.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android dropping packets</title><link>https://devzone.nordicsemi.com/thread/57232?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2016 08:26:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17a401bd-e9e1-4cc5-b4db-54310bf1319e</guid><dc:creator>Christopher</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;64 packets per seconds is about 1 BLE packet each 16ms. How do you decodes the BLE packets ? IMO you are doing this in the main UI thread so you are not able to run faster than 16 ms (maybe I am wrong but this sounds like this is the refresh time of your device).&lt;/p&gt;
&lt;p&gt;Could you try to decode the BLE packets from another Thread ? Then you should use a buffer to display the data from the main thread.&lt;/p&gt;
&lt;p&gt;Hope this help.
Christopher&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>