<?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>Is it possible to queue sd_ble_gatts_hvx calls ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56651/is-it-possible-to-queue-sd_ble_gatts_hvx-calls</link><description>I need to sendt several indications on one BLE_GATTS_EVT_WRITE event. If I just call sd_ble_gatts_hvx I get NRF_ERROR_BUSY Isn&amp;#39;t it strange? API stats: 
 Only one indication procedure can be ongoing per connection at a time. 
 As I got this it means simultaneous</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 18 Jan 2020 12:06:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56651/is-it-possible-to-queue-sd_ble_gatts_hvx-calls" /><item><title>RE: Is it possible to queue sd_ble_gatts_hvx calls ?</title><link>https://devzone.nordicsemi.com/thread/229722?ContentTypeID=1</link><pubDate>Sat, 18 Jan 2020 12:06:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6381d77f-9347-4b17-bda0-383d890254e4</guid><dc:creator>x_arrange</dc:creator><description>&lt;p&gt;To sum up, here is the problem:&lt;/p&gt;
&lt;p&gt;No matter what I send (indication/notification) peer receives&amp;nbsp;same data each time but data length differs.&lt;/p&gt;
&lt;p&gt;Look slike &lt;em&gt;sd_ble_gatts_hvx&amp;nbsp;&lt;/em&gt;just ignores content of &lt;em&gt;params.p_data&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to queue sd_ble_gatts_hvx calls ?</title><link>https://devzone.nordicsemi.com/thread/229627?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 13:37:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfc011dc-cb4c-46f5-8a9d-33a00e700f4d</guid><dc:creator>x_arrange</dc:creator><description>&lt;p&gt;Thanks, that&amp;#39;s what I was afraid of..&lt;/p&gt;
&lt;p&gt;I thought I could use notification instead but apparently I can&amp;#39;t.&lt;/p&gt;
&lt;p&gt;Event though I call&amp;nbsp;&lt;em&gt;sd_ble_gatts_value_set&lt;/em&gt; before&amp;nbsp;&lt;em&gt;sd_ble_gatts_hvx&lt;/em&gt; each time, but&amp;nbsp;peer (GATT client) receive the same value eache time&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to queue sd_ble_gatts_hvx calls ?</title><link>https://devzone.nordicsemi.com/thread/229617?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 13:21:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f527205f-189b-4d9b-8ce7-71edcc983e40</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I see. You would need to wait for the confirmation of the peer after you send the first indication (BLE_GATTS_EVT_HVC event) before you can send the next indication. See &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group___b_l_e___g_a_t_t_s___h_v_i___m_s_c.html?cp=4_5_2_1_2_4_3_2"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to queue sd_ble_gatts_hvx calls ?</title><link>https://devzone.nordicsemi.com/thread/229614?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 13:05:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c02fb3c3-9fdd-4cc3-a957-8b4e0b4e1e0a</guid><dc:creator>x_arrange</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I send write command from GATT client (Android app) to GATT server (nRF52).&lt;/p&gt;
&lt;p&gt;Currently I can send only one indication. When I send the next one right after the first one I get&amp;nbsp;&lt;span&gt;NRF_ERROR_BUSY&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have only one characteristic so there is no background work.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to queue sd_ble_gatts_hvx calls ?</title><link>https://devzone.nordicsemi.com/thread/229606?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 12:43:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:243fb1f3-01d1-4aa7-b8b9-5207cbbe88a0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you let me know which write event have you received ? Was it a write request or it&amp;#39;s a write command ?&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s a write request and it hasn&amp;#39;t been replied by the server then the server is not allowed to send an indication, if I understand the spec correctly. So one indication/write request at a time.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you try to test writing a write command and check if you can send the indication ?&amp;nbsp;&lt;br /&gt;There is a chance that there is another characteristic is sending an indication or a write request, a &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer"&gt;sniffer trace&lt;/a&gt; would reveal if that&amp;#39;s the case.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>