<?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>sd_ble_gatts_hvx returns error 0x3401</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97249/sd_ble_gatts_hvx-returns-error-0x3401</link><description>Hello We are using sdk 17.0.2 and softdevice s140_nrf52_7.2.0_softdevice We are using both central and peripheral mode in our application. First we start advertisement and mobile application connects with our device. 
 When mobile connects with our device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Mar 2023 05:31:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97249/sd_ble_gatts_hvx-returns-error-0x3401" /><item><title>RE: sd_ble_gatts_hvx returns error 0x3401</title><link>https://devzone.nordicsemi.com/thread/413410?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 05:31:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fafb2d14-fde3-430c-9a87-92bb1aa01a36</guid><dc:creator>Omkar Rana</dc:creator><description>&lt;p&gt;We have found the issue , the connection handle passed to the HVX was wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gatts_hvx returns error 0x3401</title><link>https://devzone.nordicsemi.com/thread/413314?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 16:19:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3c6e82d-42cb-4344-9946-fac901611a78</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Can you try to set the attribute when you receive the event that sys attribute is missing instead of setting it in the connected event?&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;       case BLE_GATTS_EVT_SYS_ATTR_MISSING:
            // No system attributes have been stored.
            err_code = sd_ble_gatts_sys_attr_set(m_conn_handle, NULL, 0, 0);
            APP_ERROR_CHECK(err_code);
            break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Someone had the similar behavior&amp;nbsp;when&amp;nbsp;&lt;span&gt;the length of the data sent using HVX exceeds the length of the&amp;nbsp;MTU_SIZE set&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>