<?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>Large data transfer [nRF5 SDK v. 11, nRF52-DK, BLE]</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14380/large-data-transfer-nrf5-sdk-v-11-nrf52-dk-ble</link><description>Dear Forum Users, 
 I am trying to send the data in a burst. Thanks to this post I have managed to achieve ~2,5 kB/s. However this lasts only for few seconds. Then the stream is 4 packets long after which occurs a short break. This happens cyclically</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Jun 2016 07:42:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14380/large-data-transfer-nrf5-sdk-v-11-nrf52-dk-ble" /><item><title>RE: Large data transfer [nRF5 SDK v. 11, nRF52-DK, BLE]</title><link>https://devzone.nordicsemi.com/thread/54901?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 07:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a27c2530-bedc-4fda-9fe1-c6e19582184c</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Who is sending the parameter update request, the central or the peripheral?. Can you attach the sniffer log to your first post?&lt;/p&gt;
&lt;p&gt;The connection intervals in the SDK examples are set on top of main.c&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define MIN_CONN_INTERVAL                MSEC_TO_UNITS(400, UNIT_1_25_MS)           /**&amp;lt; Minimum acceptable connection interval (0.4 seconds). */
#define MAX_CONN_INTERVAL                MSEC_TO_UNITS(650, UNIT_1_25_MS)           /**&amp;lt; Maximum acceptable connection interval (0.65 second). */
#define CONN_SUP_TIMEOUT                 MSEC_TO_UNITS(4000, UNIT_10_MS)            /**&amp;lt; Connection supervisory timeout (4 seconds). */
#define FIRST_CONN_PARAMS_UPDATE_DELAY   APP_TIMER_TICKS(5000, APP_TIMER_PRESCALER) /**&amp;lt; Time from initiating event (connect or start of notification) to first time sd_ble_gap_conn_param_update is called (5 seconds). */
#define NEXT_CONN_PARAMS_UPDATE_DELAY    APP_TIMER_TICKS(30000, APP_TIMER_PRESCALER)/**&amp;lt; Time between each call to sd_ble_gap_conn_param_update after the first call (30 seconds). */
#define MAX_CONN_PARAMS_UPDATE_COUNT     3                                          /**&amp;lt; Number of attempts before giving up the connection parameter negotiation. */
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;These values are from the ble_app_hrs example in SDK 11&lt;/p&gt;
&lt;p&gt;The ble_conn_params.c module will negotiate connection parameters when gap_params_init() is called in main().&lt;/p&gt;
&lt;p&gt;The FIRST_CONN_PARAMS_UPDATE_DELAY controls the time between connection and when the peripheral requests new connection parameters.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Large data transfer [nRF5 SDK v. 11, nRF52-DK, BLE]</title><link>https://devzone.nordicsemi.com/thread/54900?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 11:42:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29c60058-7f84-48b3-bcff-86948a529212</guid><dc:creator>Pawel J</dc:creator><description>&lt;p&gt;It seems you&amp;#39;re intuition is right as there is parameters update event going on. This is what I have logged:
BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST:
min_conn_interval: 320
max_conn_interval: 520
conn_sup_timeout: 400
slave_latency: 0
Have you got an idea how could I avoid that? Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Large data transfer [nRF5 SDK v. 11, nRF52-DK, BLE]</title><link>https://devzone.nordicsemi.com/thread/54899?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2016 11:37:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e28ff7a-e45f-4b8f-a47d-a96a0bf62ef5</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;do you have a nRF51 you can set up as an &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy2/nRF-Sniffer"&gt;nRF sniffer?&lt;/a&gt;. If not, add some printing which can tell us the connection parameters being set on EVT_CONNE
and on the BLE_GAP_EVT_CONN_PARAM_UPDATE event. (Check on_conn_params_update() in ble_conn_params.c or catch the event in main.c. This sound like connection parameters being updated&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Large data transfer [nRF5 SDK v. 11, nRF52-DK, BLE]</title><link>https://devzone.nordicsemi.com/thread/54897?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2016 09:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50638d15-2811-4b4b-8536-f7694d521e3a</guid><dc:creator>Pawel J</dc:creator><description>&lt;p&gt;Central device is other nRF52 DK. I am stopping the timer as I use heart_rate_meas_timeout only to initiate the data burst. Then, as in aforementioned example, I send the data in while loop to achieve the fastest transfer. Thus yes, the timers make the device send notifications in the original example, but this one is changed according to needs (I am editing the original post to attach the code).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Large data transfer [nRF5 SDK v. 11, nRF52-DK, BLE]</title><link>https://devzone.nordicsemi.com/thread/54896?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2016 09:30:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88ac531f-30a8-4f91-9267-aad169a95a7c</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;What is your central device? This will control this more than anything. Why are you stopping the timers? If i remember correctly, these are the events that make the device send notifications.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Large data transfer [nRF5 SDK v. 11, nRF52-DK, BLE]</title><link>https://devzone.nordicsemi.com/thread/54898?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2016 07:27:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afdf852d-e557-4e93-88a4-a43667f5f501</guid><dc:creator>Pawel J</dc:creator><description>&lt;p&gt;Those are:
Minimum connection interval: 7.5ms, Maximum connection interval: 30ms
Slave latency: 0
Supervision timeout: 4000ms&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Large data transfer [nRF5 SDK v. 11, nRF52-DK, BLE]</title><link>https://devzone.nordicsemi.com/thread/54895?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2016 15:57:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2875e570-2ecf-49b3-9685-e9436787c4ba</guid><dc:creator>James Yu</dc:creator><description>&lt;p&gt;What are your connection parameters?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>