<?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>Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54045/low-transfer-rate-between-nrf52840-dk-ble-and-nrf-connect-android-app</link><description>Hi, 
 I&amp;#39;m trying to transfer data between an nRF52840-DK and an Android phone which has nRF Connect installed on it and I can only reach about 40kbps (that is kilo bytes per second) where I need about 68kbps. 
 Here is what I do: 
 1. on the Android phone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Dec 2019 15:09:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54045/low-transfer-rate-between-nrf52840-dk-ble-and-nrf-connect-android-app" /><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/223388?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 15:09:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58ea266b-8103-42aa-938c-16765b0a5993</guid><dc:creator>Sigurd</dc:creator><description>[quote userid="16704" url="~/f/nordic-q-a/54045/low-transfer-rate-between-nrf52840-dk-ble-and-nrf-connect-android-app/223281"] I only seem to have the problem with Samsung Phones[/quote]
&lt;p&gt;Did you manage to capture a sniffer trace of the problem ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/223321?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 12:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a58f7d88-c763-4f2a-9371-06dfbc110991</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;It&amp;#39;s hard to give you a good help here.. I worked with old android phones with BLE 4.1 and got about 7 kbytes/sec, that was enough for my task. Maybe you could ask&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/matt_2d00_lionembedded"&gt;matt-lionembedded&lt;/a&gt;&amp;nbsp;about his results.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/223296?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 11:40:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64053377-73df-463d-8eee-142c3c8137ad</guid><dc:creator>Or</dc:creator><description>&lt;p&gt;What is the transfer rate you manage to achieve ?&lt;br /&gt;Is it against an android phone ?&lt;br /&gt;What GATT settings do you use in the android app ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/223290?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 11:13:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:974e2c22-1d53-4a75-baa8-8a8af995dfec</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;For&amp;nbsp;stream transfers I usually send an asynchronous ACK packet for every 16 input packets, that is also serves as keepalive. Yes, it should be write-without-response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/223281?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 10:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15ad987f-36ce-498b-b265-53958768e881</guid><dc:creator>Or</dc:creator><description>&lt;p&gt;You are right about this (I think) .. I only seem to have the problem with Samsung Phones&lt;/p&gt;
&lt;p&gt;How does your keep alive work ?&lt;br /&gt;How often do you send it ? (I try every 100 miliseconds)&lt;br /&gt;What does it contain ? (I send 1 byte)&lt;br /&gt;Where do you send it to ? (I send it to a write_no_resp characteristics)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/219104?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 14:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86dde6f0-1469-423f-98ec-5a906631c2ed</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Atrigen"] I do see it in the scanned devices, but when I connect to it I see the services I have in *my* code[/quote]
&lt;p&gt;&amp;nbsp;The phone has cached the old services. Try to delete the bond on the phone, and connect again. It should then do a new service discovery when it connects.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/219079?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 13:57:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8562fab2-bdc1-46c9-baec-ee65daf89b8c</guid><dc:creator>Or</dc:creator><description>&lt;p&gt;I tried the example now, here is my take on it:&lt;/p&gt;
&lt;p&gt;1. between 2 boards with data_length 251 I get throughput of 1043 Kbps (kilo bit per second). That is about 125 kilo bytes per second - almost twice as fast as I need.&lt;/p&gt;
&lt;p&gt;2. When I write &amp;quot;run&amp;quot; with only one board after setting it as tester and attempting to connect to it using nRF Connect. I do see it in the scanned devices, but when I connect to it I see the services I have in *my* code (previously flashed hex). Ie, I dont see any services from the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_att_mtu.html?cp=5_5_0_4_2_1_0"&gt;ble_app_att_mtu_throughput&lt;/a&gt; code (if there are any). So I have no idea how to test throughput between &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_att_mtu.html?cp=5_5_0_4_2_1_0"&gt;ble_app_att_mtu_throughput&lt;/a&gt; and nRF Connect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/219063?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 12:51:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6cdbda4-4048-40eb-8f8a-e4915aa7eb3c</guid><dc:creator>Sigurd</dc:creator><description>[quote userid="16704" url="~/f/nordic-q-a/54045/low-transfer-rate-between-nrf52840-dk-ble-and-nrf-connect-android-app/219011"]Is it possible for you to post a project code of yours that actually send at rate of 1200 kbps between the DK and the android device ?[/quote]
&lt;p&gt;You can test the&amp;nbsp;throughput using the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_att_mtu.html?cp=5_5_0_4_2_1_0"&gt;ble_app_att_mtu_throughput example&lt;/a&gt;&amp;nbsp;in the SDK. Remember to increase&amp;nbsp;the data_length to 251. Connect with the phone using nRF Connect for mobile, and enable the notification in the app to start the test. What ATT_MTU and data length you get negotiated with the phone should be printed by the example, and at the end of the test the&amp;nbsp;&lt;span&gt;throughput&amp;nbsp;result is printed.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/219056?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 12:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb7c7351-e0ce-4023-855e-376ac1766ebf</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Unfortunately, the&amp;nbsp;Profile_nRF_Sniffer_v2_001 was not included in the v2 release. But, as e.g indicated in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51983/nrf-sniffer-2-0-0-missing-profile_nrf_sniffer_v2_001-and-segger_jlink-folders"&gt;this post&lt;/a&gt;, you&amp;nbsp;can find the find and use the files from the&amp;nbsp;&lt;span&gt;previous release (&lt;/span&gt;&lt;span&gt;2.0.0_beta3&lt;/span&gt;&lt;span&gt;).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/219031?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 11:33:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d902551b-343e-41f1-90db-8d90281bec8b</guid><dc:creator>Or</dc:creator><description>&lt;p&gt;Did you install &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE/Download#infotabs"&gt;this&lt;/a&gt; sniffer ? &lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to install version 2, but I cant find folder &lt;strong&gt;Profile_nRF_Sniffer_v2_001&lt;/strong&gt; in the &lt;a href="https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-Sniffer/sw/nrfsnifferforbluetoothle200c87e17d.zip"&gt;zip file&lt;/a&gt; as required in section 2.3.2 (item 5 on the list) in the &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF_Sniffer_UG_v2.2.pdf"&gt;user guide.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/219028?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 11:20:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b4a57a3-6a52-4f6e-bf04-cfd48af755ea</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;&amp;quot;some time&amp;quot; is milliseconds... a sniffer trace would clarify things a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/219013?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 10:25:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e02e245a-d29f-4bb1-97a6-783ba2023e95</guid><dc:creator>Or</dc:creator><description>&lt;p&gt;I lose packets right away, not &amp;quot;after some time&amp;quot;.&lt;/p&gt;
&lt;p&gt;.. and I get this problem when I connect to the DK with nRF Connect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/219011?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 10:20:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52352182-6285-4e21-8987-6f05242dd303</guid><dc:creator>Or</dc:creator><description>&lt;p&gt;1. Changed &lt;span&gt;NRF_SDH_BLE_GATT_MAX_MTU_SIZE&lt;/span&gt; to 247 and added the code you suggested between the call to nrf_sdh_ble_default_cfg_set() and the call to nrf_sdh_ble_enable().&lt;br /&gt;2. Updated the .ld file according to the required RAM start location and length that was written in the log.&lt;br /&gt;3. Connected to the DK with nRF connect and changed PHY to LE 2M (TX &amp;amp; RX) + requested connection priority to HIGH.&lt;/p&gt;
&lt;p&gt;4. Enabled notification (that makes the DK start sending packets) ... and I lose packets still.&lt;/p&gt;
&lt;p&gt;Is it possible for you to post a project code of yours that actually send at rate of 1200 kbps between the DK and the android device ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/218893?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2019 15:55:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb612fcd-5925-4159-bced-c96149d3fabd</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;I believe we have seen at least around 1200 kbps on Android.&lt;/p&gt;
&lt;p&gt;Note that when the connection event starts, the SoftDevice will empty it&amp;#39;s internal buffer as fast as possible by sending the packets to the other device. When the SoftDevice does not have any more packets to send, the connection event is ended, and you will need to wait until the next connection event starts before the SoftDevice sends packets to the peer device(android phone in this case) again.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If possible, I recommend setting the ATT MTU size to 247(NRF_SDH_BLE_GATT_MAX_MTU_SIZE), as this will&amp;nbsp;avoid fragmentation of the ATT packet into several on-air data packets.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You could try to manually increase the TX buffer, and see if it have any effect:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    ble_cfg_t ble_cfg;
    memset(&amp;amp;ble_cfg, 0, sizeof ble_cfg);
    ble_cfg.conn_cfg.conn_cfg_tag           = APP_BLE_CONN_CFG_TAG;
    ble_cfg.conn_cfg.params.gatts_conn_cfg.hvn_tx_queue_size = 50;
    err_code = sd_ble_cfg_set(BLE_CONN_CFG_GATTS, &amp;amp;ble_cfg, ram_start);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(should be added to ble_stack_init() in main.c )&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;A &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt;sniffer trace&lt;/a&gt; could also be useful in analyzing what is happening on-air.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/218872?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2019 15:02:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d2dccf7-b085-490c-a2f6-35f60df25c41</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;maybe you have the same case as&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51935/inconsistent-ble-data-rates"&gt;this&lt;/a&gt;. In short - android device decreases priority of BLE in favor of WiFi link if there is no host activity for some time, solved by sending periodic host-initiated &amp;quot;keepalive&amp;quot; packets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/218835?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2019 13:16:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:115d88be-c7a8-4f9d-ba11-d1596871e5db</guid><dc:creator>Or</dc:creator><description>&lt;p&gt;my configuration is:&lt;/p&gt;
&lt;p&gt;#define NRF_SDH_BLE_GATT_MAX_MTU_SIZE 1024 // had to adjust RAM start and length for this&lt;br /&gt;#define NRF_SDH_BLE_GAP_EVENT_LENGTH 352 // was 247, changed to 351, cant see any effect&lt;br /&gt;#define MIN_CONN_INTERVAL MSEC_TO_UNITS(7.5, UNIT_1_25_MS)&lt;br /&gt;#define MAX_CONN_INTERVAL MSEC_TO_UNITS(8, UNIT_1_25_MS)&lt;/p&gt;
&lt;p&gt;This is the MTU size I get (in the logs):&lt;br /&gt;&amp;lt;info&amp;gt; app: GATT ATT MTU on connection 0x0 changed to 517.&lt;/p&gt;
&lt;p&gt;I added the function and I call it, but the throughput stays the same.&lt;/p&gt;
&lt;p&gt;Has anyone ever got a higher transfer rate between an nRF52840-DK and an android device ? (higher than 40 kilo bytes per second)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/218670?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 17:45:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:489ab2aa-4475-4e31-909c-e54281ca57bc</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;I assume that you also have these parameters configured like this:&lt;/p&gt;
&lt;p&gt;NRF_SDH_BLE_GATT_MAX_MTU_SIZE 247&lt;/p&gt;
&lt;p&gt;NRF_SDH_BLE_GAP_DATA_LENGTH 251&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You might also want to enable&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.1/structble__common__opt__conn__evt__ext__t.html?cp=3_5_2_2_2_0_2_3_9"&gt;extended BLE connection events&lt;/a&gt;, and see if that improves the&amp;nbsp;throughput.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Create a function like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;void conn_evt_len_ext_set(void)
{
    ret_code_t err_code;
    ble_opt_t  opt;

    memset(&amp;amp;opt, 0x00, sizeof(opt));
    opt.common_opt.conn_evt_ext.enable = 1;

    err_code = sd_ble_opt_set(BLE_COMMON_OPT_CONN_EVT_EXT, &amp;amp;opt);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and call it after&amp;nbsp;ble_stack_init() in main().&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/218662?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 17:14:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d489f50a-4658-4217-b855-274b460887ef</guid><dc:creator>Or</dc:creator><description>&lt;p&gt;I do that, however it wont fix the core issue that I have:&lt;/p&gt;
&lt;p&gt;PDM driver push data faster than I can sent it over BLE. I am bound to hit an overflow somewhere. The only thing I can play with is where the overflow will happen.&lt;br /&gt;In the soft device -&amp;gt; lost packets.&lt;br /&gt;In the PDM handler -&amp;gt; lost PDM buffers.&lt;/p&gt;
&lt;p&gt;Only real way to fix this issue is to make it possible for me to send in a transfer rate higher than ~66kbps (kilo bytes per second)&lt;/p&gt;
&lt;p&gt;I read a few posts here that people managed to send in much much higher rates, but it isnt clear to me how they did it or if it was ever between a developer board and an android device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/218601?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 13:57:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3311ae6-f849-4f36-9a36-f24671fa2df6</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;You can also use the TX done event to retry&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/218593?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 13:40:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1654eea1-b73a-442e-9fd4-3b630bc8bc2c</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;You have to reorganize your code. Use state machines or the app scheduler or something. You need to be able to retry later in case of error, i.e. fail -&amp;gt; tend to other stuff -&amp;gt; retry again...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/218590?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 13:35:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c3099f4-c42f-4b4a-901d-01a7e5420a91</guid><dc:creator>Or</dc:creator><description>&lt;p&gt;didnt see a reply button here to answered above&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/218589?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 13:34:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb6e4107-168e-4a1b-8afd-582611cbc45b</guid><dc:creator>Or</dc:creator><description>&lt;p&gt;I&amp;#39;ve increased &lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH&lt;/span&gt; from 140 (hexadecimal) to 280 (twice the size, didnt know proper value to put there) and I&amp;#39;ve embedded the &lt;em&gt;&lt;strong&gt;sd_ble_gatts_hvx()&lt;/strong&gt; &lt;/em&gt;function inside a &lt;em&gt;&lt;strong&gt;do { /* ... */ } while (err_code == NRF_ERROR_RESOURCES);&lt;/strong&gt;&lt;/em&gt; loop.&lt;/p&gt;
&lt;p&gt;As a consequence I&amp;#39;m not losing packets over the BLE, however the while loop is stuck for enough time for me to lose buffer(s) passed to me from the PDM handler.&lt;/p&gt;
&lt;p&gt;In other words, we moved the problem a stage back in the chain.&lt;/p&gt;
&lt;p&gt;The &amp;quot;real&amp;quot; way to handle this is to somehow increase the BLE transfer rate. How do I do that ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/218567?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 13:06:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adbdcba0-62f1-4f3b-be30-2c91a6ea312f</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;You just need to check the error codes returned by&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s112.api.v6.1.1/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html?cp=3_5_0_2_2_4_2_4#ga313fe43c2e93267da668572e885945db"&gt;sd_ble_gatts_hvx()&lt;/a&gt;&amp;nbsp;as &lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt; mentioned.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/218561?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 12:59:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fde59417-c69f-4bf0-a063-c3cb15baf016</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Are you getting any error codes returned somewhere? E.g. the function&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s112.api.v6.1.1/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html?cp=3_5_0_2_2_4_2_4#ga313fe43c2e93267da668572e885945db"&gt;sd_ble_gatts_hvx()&lt;/a&gt;&amp;nbsp;will return&amp;nbsp;&lt;span&gt;NRF_ERROR_RESOURCES when too many notifications are queued, i.e. the internal SoftDevice buffer is full. If that happens, you will have to queue the packets later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Try increasing&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH&amp;nbsp; in sdk_config.h , it should indirectly increase the SoftDevice buffer size.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low transfer rate between nRF52840-DK (BLE) and nRF Connect (android app)</title><link>https://devzone.nordicsemi.com/thread/218555?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 12:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3016b11-fcbc-445c-8100-97b0a0cebf98</guid><dc:creator>Or</dc:creator><description>&lt;p&gt;What can cause that overwrite ? how can I prevent it ?&lt;/p&gt;
&lt;p&gt;Am I trying to send in rate too high somehow ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>