<?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>gatt_init procedure prevents long write SDK14.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42200/gatt_init-procedure-prevents-long-write-sdk14-2</link><description>Hello, 
 I need to long WRITE AND long READ from a central/client (android) to a peripheral server (nrf52). when I says long it means longer than the MTU. 
 LONG READ 
 I made my long read successful by changing the MTU using the GATT procedure and specifying</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Jan 2019 11:38:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42200/gatt_init-procedure-prevents-long-write-sdk14-2" /><item><title>RE: gatt_init procedure prevents long write SDK14.2</title><link>https://devzone.nordicsemi.com/thread/164881?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 11:38:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:971ced7c-77ab-4252-bee8-cf028e3c76e8</guid><dc:creator>yacine</dc:creator><description>&lt;p&gt;&lt;span&gt;dear community,&amp;nbsp;&lt;/span&gt;&lt;span&gt;I found my bug which was not related to MTU or paylod size. the treatment of the data was the reason (error in the write_handler)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gatt_init procedure prevents long write SDK14.2</title><link>https://devzone.nordicsemi.com/thread/164581?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 19:00:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f5eca98-b3aa-406b-ba64-c5cf6e1d766b</guid><dc:creator>yacine</dc:creator><description>&lt;p&gt;android message says :&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;onClientConnectionState() - status=8&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gatt_init procedure prevents long write SDK14.2</title><link>https://devzone.nordicsemi.com/thread/164570?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 17:01:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3d3b65a-a461-44b6-b8fb-a7535850b6c8</guid><dc:creator>yacine</dc:creator><description>&lt;p&gt;is there some delay timeout that is triggered if the write operation take too long ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gatt_init procedure prevents long write SDK14.2</title><link>https://devzone.nordicsemi.com/thread/164508?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 12:15:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99809afb-709c-4660-b39d-0b32caef76ec</guid><dc:creator>yacine</dc:creator><description>&lt;p&gt;&lt;span&gt;this happens at connection establishment: I set both server and client mtu to 247 and it seems to be ok. only very small packets are recevived correctly. other lead to a disconnect that I can see in the android log (no pertinent info, just the peripheral has disconnected for this write....)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lt;debug&amp;gt; thc_ble_tds: [TDS] GAP Connected.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: Requesting to update data length to 251 on connection 0x0.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;info&amp;gt; thc_ble_app: [APP] Connection established.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: ATT MTU updated to 247 bytes on connection 0x0 (response).&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;debug&amp;gt; thc_ble_app: [APP] MTU updated&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: Data length updated to 251 on connection 0x0.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: max_rx_octets: 27&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: max_tx_octets: 251&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: max_rx_time: 328&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: max_tx_time: 2120&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;debug&amp;gt; thc_ble_app: [APP] MTU unchanged&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;info&amp;gt; thc_ble_app: [APP] LLData Channel PDU payload length updated. &lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;info&amp;gt; thc_ble_app: [APP] Connection Parameters updated.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: Peer on connection 0x0 requested a data length of 27 bytes.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: Updating data length to 27 bytes on connection 0x0.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;info&amp;gt; thc_ble_app: [APP] Data Length Update Request.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: Data length updated to 251 on connection 0x0.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: max_rx_octets: 27&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: max_tx_octets: 251&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: max_rx_time: 328&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: max_tx_time: 2120&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;debug&amp;gt; thc_ble_app:[APP] MTU unchanged&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;info&amp;gt; thc_ble_app: [APP] LL Data Channel PDU payload length updated. &lt;/span&gt;&lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: Peer on connection 0x0 requested an ATT MTU of 247 bytes.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: Updating ATT MTU to 247 bytes (desired: 247) on connection 0x0.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;debug&amp;gt; thc_ble_app: [APP] MTU updated&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;info&amp;gt; thc_ble_app: [APP] Connection Parameters updated.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: Peer on connection 0x0 requested a data length of 251 bytes.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: Updating data length to 251 bytes on connection 0x0.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;info&amp;gt; thc_ble_app: [APP] Data Length Update Request.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: Data length updated to 251 on connection 0x0.&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: max_rx_octets: 251&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: max_tx_octets: 251&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: max_rx_time: 2120&lt;/span&gt; &lt;span&gt;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_gatt: max_tx_time: 2120&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>