<?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>NUS UART Service - Getting confirmation after writing to the gatt queue?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54972/nus-uart-service---getting-confirmation-after-writing-to-the-gatt-queue</link><description>Hi, 
 I am new to the SoftDevice and I am using NUS UART example (nRF5_SDK_16.0.0_98a08e2\examples\ble_central\ble_app_uart_c\pca10040\s132\ses). In server side, after writing to the gatt characteristic (ble_nus_c_string_send), how can confirm that the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Dec 2019 11:10:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54972/nus-uart-service---getting-confirmation-after-writing-to-the-gatt-queue" /><item><title>RE: NUS UART Service - Getting confirmation after writing to the gatt queue?</title><link>https://devzone.nordicsemi.com/thread/223006?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2019 11:10:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58e4e3c6-c10f-436a-9251-d50258a348f2</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The idea behind the indication is that has to be confirmed by the application, the SoftDevice won&amp;#39;t do it for you.&lt;/p&gt;
&lt;p&gt;To do so you have to call the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html?cp=2_3_1_1_0_2_2_2_7#ga173e2d16c9bbd24dcf2c724ded6708a5"&gt;sd_ble_gattc_hv_confirm(..)&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;function, after receiving the BLE_GATTC_EVT_HVX event.&lt;/p&gt;
&lt;p&gt;The main purpose of indications is to allow the application to confirm the packet only after it has fully processed the data, and completed any operations associated with it.&lt;br /&gt;If quick and efficient data transfer is more important I would recommend using notifications instead, you still have a link layer ACK to avoid packet loss/corruption.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS UART Service - Getting confirmation after writing to the gatt queue?</title><link>https://devzone.nordicsemi.com/thread/222879?ContentTypeID=1</link><pubDate>Sat, 30 Nov 2019 02:41:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4458d5df-9ad1-4d60-8b1c-ecf1abbe64c1</guid><dc:creator>Ros</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the confusion, the question was how to implement an indication instead of sending notification (I mean after server writing or updating its own characteristic). Where would I receive an &amp;quot;indication confirm event&amp;quot; in the peripheral (server) ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS UART Service - Getting confirmation after writing to the gatt queue?</title><link>https://devzone.nordicsemi.com/thread/222723?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 08:51:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d38c8401-e604-4946-9dfb-df36dab9fe87</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]In server side, after writing to the gatt characteristic (ble_nus_c_string_send), how can confirm that the other device read the data?[/quote]
&lt;p&gt;Not sure I understand the question correctly or not. Please correct me if I am wrong.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Server cannot write to the Client. When the client sends a write request to the server, the server would send Confirmation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please see the following figure for data transfer:&amp;nbsp;&amp;nbsp;&lt;img alt=" " height="445" src="https://raw.githubusercontent.com/sigurdnev/sigurdnev.github.io/master/data_transfer.png" width="844" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I am not sure the example uses indication or notification.[/quote]
&lt;p&gt;&amp;nbsp;It uses&amp;nbsp;&lt;span&gt;notifications.&amp;nbsp;&amp;nbsp;Please see&amp;nbsp;&lt;a title="Nordic UART Service Client" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_nus_c.html?cp=6_1_4_2_0_7"&gt;Nordic UART Service Client&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>