<?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>Long Read write string and Image data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36885/long-read-write-string-and-image-data</link><description>Hi, 
 I am Using nRF5_SDK_15.0.0 with nRF52 DK PCA10040 using Keil IDE. 
 I am going to Implement long string data write and read characteristic using custom service. 
 I would like to know best way to Implement long write and read. 
 what is maximum</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Aug 2018 13:20:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36885/long-read-write-string-and-image-data" /><item><title>RE: Long Read write string and Image data</title><link>https://devzone.nordicsemi.com/thread/142420?ContentTypeID=1</link><pubDate>Wed, 01 Aug 2018 13:20:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b111e732-5834-47b2-aad5-4812b7e4cc01</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Sorry, my bad. Here&amp;#39;s an excerpt:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;Limits for queued write (also named &amp;quot;long write&amp;quot;) and read long wrt. to size is depending on host and client implementations. What will happen here is that you will never know the actual size of the request, as you will get chunks of ATT_MTU-1 size until one of the sides either completes the transaction or you NACK the request (ie: received size has exceeded the buffer size).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Technically, the max. size that you can have up to 64K given that the offset field is 16 bit, however; this will be limited by the amount of memory that you, as the developer, provide to the softdevice at the time of initiating a long write (given in event &amp;quot;BLE_EVT_USER_MEM_REQUEST&amp;quot;).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For a read long characteristic, this is stack handled and will depend on what you provide to the ATTDB size (configurable in both S110 and S13x).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From page 1921 in Core_v4.0:&lt;/p&gt;
&lt;p&gt;4.8.3 Read Long Characteristic Values&lt;/p&gt;
&lt;p&gt;This sub-procedure is used to read a Characteristic Value from a server when the client knows the Characteristic Value Handle and the length of the CharacteristicValue is longer than can be sent in a single Read Response AttributeProtocol message.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Figure 4.10 shows how the transaction goes over-air.&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I do not think there&amp;#39;s a queued read equivalent as it is up to the server to decided if it supports queued writes or not. If it does and can make use of queued writes, then the server should always do so without being explicitly asked to by the client.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long Read write string and Image data</title><link>https://devzone.nordicsemi.com/thread/142251?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 16:35:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb2b1d94-114c-4510-a128-08492e0466c6</guid><dc:creator>dc</dc:creator><description>&lt;p&gt;I have not access of &lt;a href="https://devzone.nordicsemi.com/support-private/support/34739"&gt;devzone.nordicsemi.com/.../34739&lt;/a&gt; link.&lt;/p&gt;
&lt;p&gt;I Refer Experimental: Queued Writes Application but there is only write example not read one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long Read write string and Image data</title><link>https://devzone.nordicsemi.com/thread/142094?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 08:43:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd6112c1-9291-435c-8ab0-62732c7f3d61</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;See&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support-private/support/34739"&gt;https://devzone.nordicsemi.com/support-private/support/34739&lt;/a&gt;&amp;nbsp;and the&amp;nbsp;&lt;a title="Experimental: Queued Writes Application" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/ble_sdk_app_queued_writes.html?cp=4_0_0_4_1_2_35"&gt;Experimental: Queued Writes Application&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long Read write string and Image data</title><link>https://devzone.nordicsemi.com/thread/142035?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 03:53:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6882646c-9f69-41a1-9288-23412857244e</guid><dc:creator>dc</dc:creator><description>&lt;p&gt;Thanks for quick answer!&lt;/p&gt;
&lt;p&gt;I would like to know long write is related to MTU Throughput example?&lt;/p&gt;
&lt;p&gt;I also want to long read operation using same characteristic.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long Read write string and Image data</title><link>https://devzone.nordicsemi.com/thread/141952?ContentTypeID=1</link><pubDate>Mon, 30 Jul 2018 13:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af08701b-d88d-4aed-97eb-1f8302877ba1</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I suggest you try out the&amp;nbsp;&lt;a title="Experimental: ATT_MTU Throughput Example" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/ble_sdk_app_att_mtu.html?cp=4_0_0_4_1_1_0"&gt;Experimental: ATT_MTU Throughput Example&lt;/a&gt;&amp;nbsp;in SDK15 and find your optimal payload size. With MTU extensions the softDevice will assemble/disassemble the packets in its Link Layer automatically. There&amp;#39;s also event lenght extasion where the SoftDevice can fit multiple MTU packets in one connection interval.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Do note that there&amp;#39;s a tradeoff between packet lengths and susceptibility to interference due to the increased time it takes to send/receive a longer packet.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>