<?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>uart receiving date delay on Android 5+ using 51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20786/uart-receiving-date-delay-on-android-5-using-51822</link><description>Our BLE hardware is designed to send data at 50 Hz speed continuously using nrf51822.
It worked well with APP with Android 4.3 and some Android 5.0/6.0 ,we can receive data continuously and smoothly on APP. But on most of Android 5+ phone , we saw serious</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 26 Mar 2017 07:32:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20786/uart-receiving-date-delay-on-android-5-using-51822" /><item><title>RE: uart receiving date delay on Android 5+ using 51822</title><link>https://devzone.nordicsemi.com/thread/81181?ContentTypeID=1</link><pubDate>Sun, 26 Mar 2017 07:32:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:501d7112-33d7-46df-b575-720ed9c78697</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;I&amp;#39;m afraid your expectations simply don&amp;#39;t meet reality;) You can try to force the other part of link to lower connection interval to 20ms or below but there will probably be devices which will simply not follow...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart receiving date delay on Android 5+ using 51822</title><link>https://devzone.nordicsemi.com/thread/81180?ContentTypeID=1</link><pubDate>Sun, 26 Mar 2017 03:26:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c1a749a-eb28-461d-a05e-322b7c331a3a</guid><dc:creator>eric</dc:creator><description>&lt;p&gt;Thanks,endnode.&lt;/p&gt;
&lt;p&gt;we want to measure  electricle current change  on human body .So we designed the devices to send data in real time ,that&amp;#39;s why we want to send data as high  rate as we need. the devices will send data(1 bytes) to phone each 20ms(=50Hz).&lt;/p&gt;
&lt;p&gt;Some phone is oK ,no matter Andrioid 4.3 or 5+, some phone has serious dalay, for example ,Huawei Mate8 is ok ,but Huawei Mate9 can not .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart receiving date delay on Android 5+ using 51822</title><link>https://devzone.nordicsemi.com/thread/81179?ContentTypeID=1</link><pubDate>Sun, 26 Mar 2017 03:16:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:384ffc2e-456c-4873-83c1-fd3a953553b4</guid><dc:creator>eric</dc:creator><description>&lt;p&gt;thanks for your advice. we wil try this API  and see what happen.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart receiving date delay on Android 5+ using 51822</title><link>https://devzone.nordicsemi.com/thread/81178?ContentTypeID=1</link><pubDate>Sat, 25 Mar 2017 20:35:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad6d1e0e-b25b-4027-b30a-8b860cdce6e0</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Android 5.0+ also has an API for adjusting connection interval:&lt;a href="https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#requestConnectionPriority(int)"&gt;BluetoothGatt.requestConnectionPriority()&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart receiving date delay on Android 5+ using 51822</title><link>https://devzone.nordicsemi.com/thread/81177?ContentTypeID=1</link><pubDate>Sat, 25 Mar 2017 10:14:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa49df31-04a5-4150-a169-8213cd4f19da</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi, what GAP roles (Peripheral/Central) are you having on each side of the link? What connection interval is used? In case it&amp;#39;s more then 20ms (= 50Hz) do you negotiate faster? Do you have RF trace of what is happening in the air? Several early Kit Kat Android phones were able to go as low as 7.5ms connection interval while most of Android devices since 5.0 are using 48.5ms (when in GAP Central role). This would easily explain why your 50Hz expectations are too ambitious. The same for iOS: it uses connection interval 30ms when it is GAP Central so again normally you won&amp;#39;t achieve 50Hz.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m wondering what do you actually mean by 50Hz. If your samples are short (few bytes) then you can simply stamp them and stream over the PDUs independently on the connection interval. Until you achieve better throughput then 50x(sample size) then you can easily restore the data in the mobile without any loss of information. Sure, there will be always delay up to 1 connection interval (30~50ms).&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>