<?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>Error 0x3401 on sending advertising packets</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23475/error-0x3401-on-sending-advertising-packets</link><description>Hello, 
 I am currently working on project that uses BLE peripheral and BLE central for automatic sensor calibration on custom board. There is an initial connection where both central and peripheral connect and successfully communicate data on notification</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Jul 2017 14:33:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23475/error-0x3401-on-sending-advertising-packets" /><item><title>RE: Error 0x3401 on sending advertising packets</title><link>https://devzone.nordicsemi.com/thread/92212?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 14:33:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbe6e703-daa9-4f3c-8263-66b860949206</guid><dc:creator>KasemC</dc:creator><description>&lt;p&gt;Thanks endnode!&lt;/p&gt;
&lt;p&gt;I have debugged the problem  to find that the problem was caused by not enabling the Notifications using the BLE central upon the second connection. This originated from the fact, that during service discovery, the discovered service type doesnt match the pressure service uuid type,  thus failing to issue a Discovery Complete event where the notification is enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error 0x3401 on sending advertising packets</title><link>https://devzone.nordicsemi.com/thread/92211?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2017 23:16:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98261664-d944-47d5-8508-fa2b692f1215</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Should be pretty easy with the proper documentation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you are using S130 V2 as per your tag and you get 0x3401 return code when &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html?cp=3_7_2_1_0_2_4_2_3#ga313fe43c2e93267da668572e885945db"&gt;calling &lt;code&gt;sd_ble_gatts_hvx&lt;/code&gt; function&lt;/a&gt; (or actually any other) then it means &lt;code&gt;BLE_ERROR_GATTS_SYS_ATTR_MISSING&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;According to further text in Nordic documentation it seems that you haven&amp;#39;t &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s130.api.v2.0.1%2Fgroup___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=ga577c788e199b1a2c0d19602b07ef2515"&gt;issued &lt;code&gt;sd_ble_gatts_sys_attr_set&lt;/code&gt; function&lt;/a&gt; which seems to be mandatory for every connection link where you run GATT Server and it is with previously bonded device.&lt;/li&gt;
&lt;li&gt;However it might also be caused by not enable Notifications on this particular GATT Server-Client connection (have in mind that these Server-Client things are completely independent so enabling Notify methods through writing to CCCD on one connection handle has no effect on any other). Are you sure that you are treating paired/bonded devices and GATT Server-Client contexts properly?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>