<?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>cannot update notification value</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23615/cannot-update-notification-value</link><description>Once I call sd_ble_gatts_hvx() while ble connection handle is invalid(BLE_CONN_HANDLE_INVALID), I can never update notification value using sd_ble_gatts_hvx() though function result is NRF_SUCCESS. 
 Is this softdevice bug? 
 The expected operation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Jul 2017 07:43:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23615/cannot-update-notification-value" /><item><title>RE: cannot update notification value</title><link>https://devzone.nordicsemi.com/thread/92784?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 07:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c338cec-1adb-48a5-afca-9ffa65882656</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;This &amp;quot;No. I want to call sd_ble_gatts_hvx() regardless ble connection handle.&amp;quot; doesn&amp;#39;t make sense.&lt;/p&gt;
&lt;p&gt;Can you explain why you want to do that ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cannot update notification value</title><link>https://devzone.nordicsemi.com/thread/92790?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 13:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c540b98-b137-46d8-942b-a722f45c9aab</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;No I cannot explain it, I can only say that if connection handle is invalid then &lt;code&gt;sd_ble_gatts_hvx()&lt;/code&gt; should return &lt;code&gt;BLE_ERROR_INVALID_CONN_HANDLE&lt;/code&gt;. If you receive &lt;code&gt;NRF_SUCCESS&lt;/code&gt; then it is a bug &lt;strong&gt;BUT&lt;/strong&gt; I would be very careful and check your code not twice but triple time because I assume Nordic is testing this in their Soft Device release cycle quite well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cannot update notification value</title><link>https://devzone.nordicsemi.com/thread/92786?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 13:06:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5888a640-2f20-40f7-80cc-573d489f00f0</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;If connection handle is invalid then it means there is no connection so there is no GATT Client connected and so it cannot receive any notification. Your case doesn&amp;#39;t make sense.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cannot update notification value</title><link>https://devzone.nordicsemi.com/thread/92789?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 13:06:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfdcf293-f1a0-44f9-b430-0e7d4601752f</guid><dc:creator>Haruki Kawakami</dc:creator><description>&lt;p&gt;I know that. So this phenomenon is strange.
document doesn&amp;#39;t describe this phenomenon. just explains it returns BLE_ERROR_INVALID_CONN_HANDLE.
Would you explain me why this phenomenon occurs if this is not bug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cannot update notification value</title><link>https://devzone.nordicsemi.com/thread/92792?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 12:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ccbad84-b1c4-4c40-9fb5-fa403194ae88</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;If connection handle is invalid then calling this function doesn&amp;#39;t make any sense.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cannot update notification value</title><link>https://devzone.nordicsemi.com/thread/92791?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 12:46:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45452a4c-294e-466d-819b-8a7b0c2849e9</guid><dc:creator>Haruki Kawakami</dc:creator><description>&lt;p&gt;Even if ble connection is valid and client enable CCCD, I can&amp;#39;t transport data other than first string I provide to the function once I call sd_ble_gatts_hvx() while ble connection handle is invalid.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cannot update notification value</title><link>https://devzone.nordicsemi.com/thread/92787?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 12:39:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5fbcd4f-7780-4b37-986e-057e9b84d4d1</guid><dc:creator>Haruki Kawakami</dc:creator><description>&lt;p&gt;No.
I want to call sd_ble_gatts_hvx() regardless ble connection handle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cannot update notification value</title><link>https://devzone.nordicsemi.com/thread/92785?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 11:38:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7009db2-2dbe-4cec-a171-28112cc3349c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You mean updating the value but not sending notification ?
If you want to update the value of the characteristic locally, please call sd_ble_gatts_value_set() instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cannot update notification value</title><link>https://devzone.nordicsemi.com/thread/92788?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 09:04:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:672fee59-ae27-4645-9327-45b4c033fc69</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Not really, &lt;code&gt;sd_ble_gatts_hvx()&lt;/code&gt; returning &lt;code&gt;NRF_SUCCESS&lt;/code&gt;only means that packet got stored into one of Tx buffers inside Soft Device. Once it goes really out you will get specific event (in the latest SDK it&amp;#39;s called &lt;code&gt;BLE_GATTS_EVT_HVN_TX_COMPLETE&lt;/code&gt;) and only then another Handle Value Notification packet gets out. Note that there isn&amp;#39;t only one Tx buffer in the SD so you can &amp;quot;stack&amp;quot; at least 6 packets in advance. Apart from this all works without problems, no bug known that SD would not transport data out or that you wouldn&amp;#39;t be able to transport other data then first string you provide to the function. Are you sure it&amp;#39;s not bug in your code before calling &lt;code&gt;sd_ble_gatts_hvx()&lt;/code&gt; function?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>