<?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>Slow transfer rate when sending Notifications to Android (Samsung Galaxy S8)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41203/slow-transfer-rate-when-sending-notifications-to-android-samsung-galaxy-s8</link><description>Hi guys, 
 We&amp;#39;ve written a small test on-top of our internal Bluetooth library (glorified wrapper sat on-top of SDK 15.2.0 SD140 6.1.1) on the nRF52840 to send dummy bulk data via notification on a single characteristic. 
 When we run this test on iOS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Dec 2018 16:18:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41203/slow-transfer-rate-when-sending-notifications-to-android-samsung-galaxy-s8" /><item><title>RE: Slow transfer rate when sending Notifications to Android (Samsung Galaxy S8)</title><link>https://devzone.nordicsemi.com/thread/160626?ContentTypeID=1</link><pubDate>Thu, 06 Dec 2018 16:18:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da9564aa-7535-44f9-ba4f-0c58fe81e985</guid><dc:creator>Scribble</dc:creator><description>&lt;p&gt;Thanks, this solved the issue, we went from ~2KB/s to ~12KB/s and then after forcing BLE5 to our S8 to ~20KB/s&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow transfer rate when sending Notifications to Android (Samsung Galaxy S8)</title><link>https://devzone.nordicsemi.com/thread/160599?ContentTypeID=1</link><pubDate>Thu, 06 Dec 2018 14:13:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98623a59-bbd8-4ccb-8fea-fcf1808460c5</guid><dc:creator>Sigurd</dc:creator><description>[quote user="alistair_rpd"]what the best approach is to determine the most appropriate value for&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH? i.e. what are the factors in selecting a value?&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;The&amp;nbsp;suggested intervals and windows chapter in the SDS have some information about this. See this &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.sds/dita/softdevices/s130/multilink_scheduling/suggested_intervals_windows_s132.html?cp=2_3_2_0_14_9"&gt;link&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow transfer rate when sending Notifications to Android (Samsung Galaxy S8)</title><link>https://devzone.nordicsemi.com/thread/160548?ContentTypeID=1</link><pubDate>Thu, 06 Dec 2018 11:00:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cfa4650-f507-423e-ba45-618f2a20727a</guid><dc:creator>Scribble</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;This looks like it may have improved things, I&amp;#39;m no longer seeing missed connection intervals. I&amp;#39;ll profile it later today to confirm, in the meantime can I ask what the best approach is to determine the most appropriate value for&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH? i.e. what are the factors in selecting a value?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Many thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow transfer rate when sending Notifications to Android (Samsung Galaxy S8)</title><link>https://devzone.nordicsemi.com/thread/160403?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 14:02:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8903f214-32ca-41ab-9a13-bbcf84b442e2</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="alistair_rpd"]I&amp;#39;ll try the sniffer later on in the week, is there any easy way to confirm packets per interval without using the sniffer?[/quote]
&lt;p&gt;&amp;nbsp;After one or more&amp;nbsp;notifications are sent, you will get an event&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.0/structble__gatts__evt__hvn__tx__complete__t.html?cp=2_3_2_1_0_2_4_4_20"&gt;BLE_GATTS_EVT_HVN_TX_COMPLETE &lt;/a&gt;with count field showing&amp;nbsp;&amp;quot;Number of notification transmissions completed.&amp;quot;. But you could get several of these events within the same connection interval, so you would need to e.g. use the app_timer and add some logic to see how often you get these events, and then calculate the numbers of packets that is transmitted within the connection interval. Personally, I use the sniffer for this kind of debugging.&lt;/p&gt;
[quote user="alistair_rpd"]NRF_SDH_BLE_GAP_EVENT_LENGTH 6[/quote]
&lt;p&gt;&amp;nbsp;Try to increase this value. Set it to e.g. 320.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow transfer rate when sending Notifications to Android (Samsung Galaxy S8)</title><link>https://devzone.nordicsemi.com/thread/160239?ContentTypeID=1</link><pubDate>Tue, 04 Dec 2018 15:08:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3776324-ceb3-4a40-83aa-fbfa90ba431d</guid><dc:creator>Scribble</dc:creator><description>&lt;p&gt;Thanks Sigurd,&lt;br /&gt;&lt;br /&gt;I&amp;#39;ll try the sniffer later on in the week, is there any easy way to confirm packets per interval without using the sniffer?&lt;br /&gt;&lt;br /&gt;NRF_SDH_BLE_GAP_DATA_LENGTH 27&lt;br /&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH 6&lt;/p&gt;
&lt;p&gt;NRF_SDH_BLE_GATT_MAX_MTU_SIZE 23&lt;/p&gt;
&lt;p&gt;I am limiting the MTU size on purpose as I&amp;#39;m trying to ensure it&amp;#39;s not a factor in this test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow transfer rate when sending Notifications to Android (Samsung Galaxy S8)</title><link>https://devzone.nordicsemi.com/thread/160198?ContentTypeID=1</link><pubDate>Tue, 04 Dec 2018 12:45:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d35858c5-45cc-401d-8035-0224f0d3648e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How many packets per connection interval are you seeing?&lt;/p&gt;
&lt;p&gt;What is the value of&amp;nbsp;NRF_SDH_BLE_GAP_DATA_LENGTH,&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH and&amp;nbsp;NRF_SDH_BLE_GATT_MAX_MTU_SIZE in sdk_config.h ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you want to see exactly what is happening on-air, I would recommend the &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer"&gt;nRFSniffer(v2)&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>