<?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>Sending data bigger than 20 byte with ble</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4955/sending-data-bigger-than-20-byte-with-ble</link><description>Hi
Im working on the project which relates to sending data through ble. I use nrf51822 Evaluation kit and the data is from uart. How do I send data greater than 20 bytes. No matter how i change the parameters from which relate to that 20, it is still</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Feb 2016 12:29:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4955/sending-data-bigger-than-20-byte-with-ble" /><item><title>RE: Sending data bigger than 20 byte with ble</title><link>https://devzone.nordicsemi.com/thread/17467?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2016 12:29:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f97a2f43-e099-4fc4-a904-57883f11997b</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;My answer was based on the SDK that was available then, and might not be that relevant anymore. The DFU examples still have good examples for recombining data and writing it to flash. To fragment the data, you simply send 20 byte chunks until you are out of buffers, increasing the pointer of the first byte by 20 every time the send is successful. Then you wait for a TX_COMPLETE event and re-do the operation. The packet count in that event is an ACK that the peer has received that many packets. On the peer side you need to either store the data in a temporary buffer, or immediately write it to UART or flash. It will come in the order it is sent, so this is a fairly simple operation.&lt;/p&gt;
&lt;p&gt;Since this question is already answered and accepted, your question might not get the attention it deserves. Feel free to raise a new question if this didn&amp;#39;t solve your problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data bigger than 20 byte with ble</title><link>https://devzone.nordicsemi.com/thread/17464?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2016 10:46:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0de4a7d-ba59-4ca8-8ed1-4147fb005427</guid><dc:creator>Victor</dc:creator><description>&lt;p&gt;May I ask you to directly link to the example in the answer, please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data bigger than 20 byte with ble</title><link>https://devzone.nordicsemi.com/thread/17463?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2016 03:51:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6fcc994-61c8-45c6-86d5-59803fc72a44</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;There are links to the github repo.  It is multi-platform code supporting NXP, Nordic, Freescale, TI.  There are shared generic source for all and specific for each MCU.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data bigger than 20 byte with ble</title><link>https://devzone.nordicsemi.com/thread/17466?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2016 17:17:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63a0d6f3-aefe-4540-a476-211b1e48b2cd</guid><dc:creator>Victor</dc:creator><description>&lt;p&gt;Can you please add a reference to the mentioned example? I&amp;#39;m struggling to find a ready solution to data chunking/reassembling.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data bigger than 20 byte with ble</title><link>https://devzone.nordicsemi.com/thread/17462?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2016 16:17:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:765017b5-1334-48fc-a8be-2b60682215e4</guid><dc:creator>Victor</dc:creator><description>&lt;p&gt;Can you please elaborate? There are no examples directly in the post, where to look for them? The only ones I found in your Github were for iOS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data bigger than 20 byte with ble</title><link>https://devzone.nordicsemi.com/thread/17465?ContentTypeID=1</link><pubDate>Fri, 02 Jan 2015 01:17:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c1bf468-082f-489d-809c-d9216f880ea6</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;You will have to disassemble your data into segments of 20 bytes or less. The data is guaranteed to arrive in the same order it is sent. The receiver will have to store the received data and periodically flush it to e.g. flash memory or a transport like SPI/UART.&lt;/p&gt;
&lt;p&gt;There are multiple ways of solving this on both sides. It can be done with notifications alone, or with writes to a characteristic. See the DFU example for some inspiration on how to send larger files like softdevices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data bigger than 20 byte with ble</title><link>https://devzone.nordicsemi.com/thread/17461?ContentTypeID=1</link><pubDate>Tue, 30 Dec 2014 03:00:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31b95b59-5be7-40b7-9c14-12de9c503c87</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;see examples on this blog site &lt;a href="http://embeddedsoftdev.blogspot.ca/p/ehal-nrf51.html"&gt;http://embeddedsoftdev.blogspot.ca/p/ehal-nrf51.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>