<?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>SDK 14.2 HTS hangs with err code 0X3401</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62685/sdk-14-2-hts-hangs-with-err-code-0x3401</link><description>Hello, 
 I&amp;#39;m working on adding an HTS service to an existing device (nRF52832), and running into a problem that can be reproduced on PCA10040 and S132 5.0 
 When my code is running and I use nRF Connect (Android) to monitor the device and read the temperature</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jun 2020 20:27:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62685/sdk-14-2-hts-hangs-with-err-code-0x3401" /><item><title>RE: SDK 14.2 HTS hangs with err code 0X3401</title><link>https://devzone.nordicsemi.com/thread/255627?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 20:27:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f1c6870-ea84-46a2-b4f2-2fb63ac10969</guid><dc:creator>robca</dc:creator><description>[quote userid="15146" url="~/f/nordic-q-a/62685/sdk-14-2-hts-hangs-with-err-code-0x3401/255503"]What do you mean by this?&amp;nbsp;sd_ble_gatts_sys_attr_set()&amp;nbsp;does not make the device start pairing/bonding.[/quote]
&lt;p&gt;I mean &amp;quot;I&amp;#39;m dumb&amp;quot;, sorry &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t realize that I had&amp;nbsp;BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&amp;amp;hts_init.hts_meas_attr_md.cccd_write_perm); in the init function, and that forces bonding. I change it to&amp;nbsp;BLE_GAP_CONN_SEC_MODE_SET_OPEN and everything works the way I want now (the HTS example uses bonding, I didn&amp;#39;t realize it)&lt;/p&gt;
&lt;p&gt;Thanks for the link, that helped a lot. Incidentally in SDK14.2,&amp;nbsp;BLE_GATTS_EVT_SYS_ATTR_MISSING is a different value (0x52), so actually using&amp;nbsp;case BLE_GATTS_EVT_SYS_ATTR_MISSING: doesn&amp;#39;t work for me, I had to use&amp;nbsp;case 0x3401:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now everything works, thanks&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14.2 HTS hangs with err code 0X3401</title><link>https://devzone.nordicsemi.com/thread/255503?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 11:36:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01b5a589-ecab-4066-93f1-0bfc6ce2f879</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This post here might be useful for you:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/61014/getting-a-0x3401-ble_error_gatts_sys_attr_missing-from-sd_ble_gatts_hvx"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/61014/getting-a-0x3401-ble_error_gatts_sys_attr_missing-from-sd_ble_gatts_hvx&lt;/a&gt;&lt;/p&gt;
[quote userid="88394" url="~/f/nordic-q-a/62685/sdk-14-2-hts-hangs-with-err-code-0x3401"]And the problem goes away, but the device is automatically bonded as a result.[/quote]
&lt;p&gt;What do you mean by this?&amp;nbsp;sd_ble_gatts_sys_attr_set()&amp;nbsp;does not make the device start pairing/bonding.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>