<?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>Maximum performance on nrf51822 ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9167/maximum-performance-on-nrf51822</link><description>Hello, 
 I work on nrf51822 with S130. I use nus service with uart_c and it&amp;#39;s very slow (500 ms to send &amp;quot;abc&amp;quot; test string). 
 I am not energy limited on this application. How can i speed up ? 
 I have a 16 MHz quartz on my board and a 32 KHz but i</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Sep 2015 11:42:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9167/maximum-performance-on-nrf51822" /><item><title>RE: Maximum performance on nrf51822 ?</title><link>https://devzone.nordicsemi.com/thread/33785?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 11:42:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cb8836c-4fb9-4262-a2fe-a39f4e190cda</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Fabien&lt;/p&gt;
&lt;p&gt;I do not realize if you are in a peripheral role or central role. Are you perhaps using two nRF51822 devices, both with S130, one in peripheral role and one in central role? The sd_ble_gap_connect is only supported by central. The sd_ble_gap_ppcp_set is only supported by peripheral. Can you please clarify.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Maximum performance on nrf51822 ?</title><link>https://devzone.nordicsemi.com/thread/33784?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 08:53:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85ded919-83ae-4b69-8aad-2406c9426387</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;I found something,&lt;/p&gt;
&lt;p&gt;my connection parameters look ignored&lt;/p&gt;
&lt;p&gt;that&amp;#39;s my values&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define MIN_CONNECTION_INTERVAL    BLE_GAP_CP_MIN_CONN_INTVL_MIN
#define MAX_CONNECTION_INTERVAL    (100 * BLE_GAP_CP_MIN_CONN_INTVL_MIN)
#define SLAVE_LATENCY              0                                 
#define SUPERVISION_TIMEOUT        MSEC_TO_UNITS(4000, UNIT_10_MS)   
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;that&amp;#39;s my read back
min_conn_interval = 600, max_conn_interval = 600, slave_latency = 0, conn_sup_timeout = 400&lt;/p&gt;
&lt;p&gt;but i use the example way to give theses values:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static const ble_gap_conn_params_t m_connection_param =
{
    (uint16_t)MIN_CONNECTION_INTERVAL,   // Minimum connection
    (uint16_t)MAX_CONNECTION_INTERVAL,   // Maximum connection
    SLAVE_LATENCY,                       // Slave latency
    (uint16_t)SUPERVISION_TIMEOUT        // Supervision time-out
};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t err_code = sd_ble_gap_connect(&amp;amp;peer_addr, &amp;amp;m_scan_param, &amp;amp;m_connection_param);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;memset(&amp;amp;gap_conn_params, 0, sizeof(gap_conn_params));

gap_conn_params.min_conn_interval = MIN_CONNECTION_INTERVAL;
gap_conn_params.max_conn_interval = MAX_CONNECTION_INTERVAL;
gap_conn_params.slave_latency     = SLAVE_LATENCY;
gap_conn_params.conn_sup_timeout  = SUPERVISION_TIMEOUT;

err_code = sd_ble_gap_ppcp_set(&amp;amp;gap_conn_params);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and i have no error returned&lt;/p&gt;
&lt;p&gt;on BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST
i receive theses values ???
min_conn_interval 65535, max_conn_interval 65535, slave_latency 0, conn_sup_timeout 65535
that provoque an error code 7 with sd_ble_gap_conn_param_update&lt;/p&gt;
&lt;p&gt;solved, it was an order of initialisation problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Maximum performance on nrf51822 ?</title><link>https://devzone.nordicsemi.com/thread/33783?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2015 16:05:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b04e8778-bc5e-496f-bf3d-1b40992af5c6</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Fabien&lt;/p&gt;
&lt;p&gt;When the device is in a connection, the throughput has much to do with the connection interval. There is much information on the connection interval and how that is updated dynamically &lt;a href="https://devzone.nordicsemi.com/question/50279/data-rate-problem/?answer=50347#post-id-50347"&gt;on this thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When advertising, the device will connect quicker if the advertising interval is short. The time it takes to connect also depends on how frequently the central device scans. If the central device scans continuously, connection establishment will be faster. You can read more about his in the &lt;a href="https://devzone.nordicsemi.com/question/5186/how-to-minimize-current-consumption-for-ble-application-on-nrf51822/#reply-5187"&gt;current consumption guide&lt;/a&gt;, section &amp;quot;Tuning advertising parameters&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 11.9.2015&lt;/strong&gt;
To further realize how to improve throughput, these threads could be helpful:  &lt;a href="https://devzone.nordicsemi.com/blogs/32/how-different-ble-packet-types-influence-throughpu/"&gt;(1)&lt;/a&gt; &lt;a href="https://devzone.nordicsemi.com/question/30611/data-rate-measurment/"&gt;(2)&lt;/a&gt; &lt;a href="https://devzone.nordicsemi.com/question/17926/how-should-i-increase-the-throughput-of-my-ble-application/?answer=17954#post-id-17954"&gt;(3)&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Maximum performance on nrf51822 ?</title><link>https://devzone.nordicsemi.com/thread/33782?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2015 07:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5d52ae8-0493-495d-b36a-a50127d3f169</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Connection is long too (ready after 6 to 8 seconds). Is that a normal connection time ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Maximum performance on nrf51822 ?</title><link>https://devzone.nordicsemi.com/thread/33781?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2015 07:43:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f43ba65-ac5a-45ed-8226-3555bbf684a2</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;A colleque tested with a concurrent module (BGM111) and it&amp;#39;s faster so limitation is not due to Bluetooth but to softdevice.
Please does someone have an idea ? I don&amp;#39;t want to port my project on another module if possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>