<?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>UART Streaming from central to peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58466/uart-streaming-from-central-to-peripheral</link><description>Hi, 
 I need to stream data from NUS UART Central Device to one peripheral, but the device always disconnects while trying to send second set of data. So I changed the write_req.params.gattc_write.write_op = BLE_GATT_OP_WRITE_CMD to BLE_GATT_OP_WRITE_REQ</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 29 Aug 2020 02:50:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58466/uart-streaming-from-central-to-peripheral" /><item><title>RE: UART Streaming from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/267055?ContentTypeID=1</link><pubDate>Sat, 29 Aug 2020 02:50:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fc9a9d4-eab7-4928-a96b-e5b390efd65e</guid><dc:creator>TH_HT</dc:creator><description>&lt;p&gt;Hi Ras,&lt;/p&gt;
&lt;p&gt;Could you share me the solution? I have met the same issue.&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Streaming from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/239076?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 11:20:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0169052d-324c-4a8a-9b51-c36ae1210738</guid><dc:creator>Ros</dc:creator><description>&lt;p&gt;I have solved the isseue, used DMA to offload some load from CPU at the receiver side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Streaming from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/238262?ContentTypeID=1</link><pubDate>Thu, 05 Mar 2020 11:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a476ff7-7a29-412d-8f28-5be2689de75c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry for the late response.&lt;/p&gt;
&lt;p&gt;from your log itself, it clearly says that&lt;/p&gt;
&lt;p&gt;procedure (1) NRF_BLE_GQ_REQ_GATTC_WRITE&amp;nbsp; failed due to 0x13 (NRF_ERROR_RESOURCES)&lt;/p&gt;
&lt;p&gt;I see, that is the reason you changed from using WRITE_REQ to WRITE_RSP. That makes sense&lt;/p&gt;
&lt;p&gt;using BLE_GATTC_EVT_WRITE_RSP looks correct, but why you got&amp;nbsp;BLE_GATTC_EVT_WRITE_RSP is hard to tell without looking at your code.&amp;nbsp; Can you please post some code snippets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Streaming from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/237298?ContentTypeID=1</link><pubDate>Sun, 01 Mar 2020 21:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04555fcb-84cf-4a5f-827e-d340122dd9b7</guid><dc:creator>Ros</dc:creator><description>&lt;p&gt;The disconnection was because the sender goes to the error loop (&lt;span style="font-family:inherit;"&gt;APP_ERROR_CHECK&lt;/span&gt;) while sending the next payload without ACK. I changed back to CMD as I described in the post, I was trying to get a confirmation before sending the next.&lt;/p&gt;
&lt;p&gt;Does the following help?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/74673.Capture.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Streaming from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/237288?ContentTypeID=1</link><pubDate>Sun, 01 Mar 2020 17:17:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15ef7b98-2a42-487c-806a-e06a21356aa8</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user=""]but the device always disconnects while trying to send second set of data. So I changed the write_req.params.gattc_write.write_op = BLE_GATT_OP_WRITE_CMD to BLE_GATT_OP_WRITE_REQ, and used &amp;quot;BLE_GATTC_EVT_WRITE_RSP&amp;quot; inside[/quote]
&lt;p&gt;&amp;nbsp;It would have been best to actually find out the reason for the disconnect and change the code so as to not to cause the disconnect.&lt;/p&gt;
&lt;p&gt;Why did you think that WRITE_REQ would be better than WRITE_CMD in this case? Just trying to understand the need for this change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>