<?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>Not being able to completely transmit large string over BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42906/not-being-able-to-completely-transmit-large-string-over-ble</link><description>Greetings! 
 I am using nRF52, SDK14.2, and NUS with MTU = 64. I want to transmit 1000 byte string over BLE upon reception of any character to &amp;quot;nus_data_handler&amp;quot; I have divided &amp;quot;main_buf&amp;quot; into 50 bytes data packets and am trying to send them over BLE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 02 Feb 2019 07:35:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42906/not-being-able-to-completely-transmit-large-string-over-ble" /><item><title>RE: Not being able to completely transmit large string over BLE</title><link>https://devzone.nordicsemi.com/thread/169146?ContentTypeID=1</link><pubDate>Sat, 02 Feb 2019 07:35:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff7f14b0-5700-49c4-86fd-573ee2c982cb</guid><dc:creator>Sanket</dc:creator><description>&lt;p&gt;Thank you Simonr! It worked for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not being able to completely transmit large string over BLE</title><link>https://devzone.nordicsemi.com/thread/167394?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 14:08:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02567562-269b-400a-82b7-1c599b7dc995</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Sanket&lt;/p&gt;
&lt;p&gt;I strongly recommend you divide your packets into 20 byte packets, as this is the most efficient way to transfer large BLE strings.The errors you are experiencing are that the GATT client loses connection. You should make sure there are TX buffers available. You can call sd_ble_gatts_hvx until you get NRF_ERROR_RESOURCSES. When that happens, wait for BLE_GATTS_EVT_HVN_TX_COMPLETE before you call sd_ble_gatts_hvx again.&amp;nbsp; You can look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/553/dealing-large-data-packet-s-through-ble"&gt;this case&lt;/a&gt; for some pointers on how to do this, however some of the code might be outdated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>