<?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>nrf52832 changing data length</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83397/nrf52832-changing-data-length</link><description>Hi, 
 I designed a bluetooth device that stores 8kb of data. With 20ms connection interval, data is sent to the smart phone in 3 minutes which is to high for this project. Is there any solution to decrease this time. 
 Thank you.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jan 2022 08:10:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83397/nrf52832-changing-data-length" /><item><title>RE: nrf52832 changing data length</title><link>https://devzone.nordicsemi.com/thread/347072?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 08:10:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:870e7544-48fd-466f-aa8f-a49f84e9d379</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;The parameter you have changed here - add_char_params.max_len configures the maximal length of a single characteristic that is sent. So, this will increase throughout, but it is not as detrimental as which connection parameters are being used.&lt;br /&gt;&lt;br /&gt;In general you can only set a &lt;em&gt;preference&lt;/em&gt; on a peripheral device, because it is the central that decides which connection parameters are actually used - and smartphones are sometimes restrictive to accept the preferences of the peripherals if they are too frequent, since this leads to an increase in power consumption.&lt;br /&gt;Either way, you could try to change the preferences of the peripheral device to see if the smartphones accepts them.&lt;br /&gt;In most SDK BLE peripheral examples you can find the preferences for maximum connection interval, minimum connection interval, slave latency and connection supervision timeout as defines at the top of the example.&lt;br /&gt;Change these to match the configuration described in the throughput document I linked in my previous reply, and see if this increases your throughput.&lt;br /&gt;&lt;br /&gt;Which application are you using for your central device? Is it a custom smartphone application you have built?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 changing data length</title><link>https://devzone.nordicsemi.com/thread/346971?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 14:24:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:747e119b-c9c8-4ec2-9ae8-533f1253e40b</guid><dc:creator>Kadir</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;memset(&amp;amp;add_char_params, 0, sizeof(add_char_params));
add_char_params.uuid              = BLE_IPS_UUID_TX_CHAR;
add_char_params.uuid_type         = p_ips-&amp;gt;uuid_type;
add_char_params.init_len          = 100;
add_char_params.is_var_len=true;
add_char_params.max_len           = 100;
add_char_params.char_props.read   = 1;
add_char_params.char_props.notify = 1;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I use ble_app_blinky peripheral example. And i changed max_len parameter to the 100 bytes seen above in the ble_ips.c. I send 100 bytes with 20ms interval from android phone but peripheral recevies 20 bytes at every 20ms. Actually i do not know how to increase&amp;nbsp;&lt;span&gt;throughput&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 changing data length</title><link>https://devzone.nordicsemi.com/thread/346359?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 08:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a57b4a0-4a5e-4e53-a772-c6ed513774d5</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;With 8000 kb transferred in 3 minutes you have an estimated throughput of 45 bps - this is much lower than what can be achieved. What other connection parameters are you using?&lt;br /&gt;You could &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/ble_data_throughput/ble_data_throughput.html"&gt;read about the different connection parameter&amp;#39;s configuration and expected throughput here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Are you familiar with &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;the nRF Sniffer tool&lt;/a&gt;? It would be helpful to see a trace of the communication between your devices, to identify any potential bottlenecks in the communication.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>