<?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>Disconnecting on Generic Attribute PrimaryService(0x1801) discovery</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4417/disconnecting-on-generic-attribute-primaryservice-0x1801-discovery</link><description>Hi! I use S130 on nRF51822 device.
After device is connected as peripheral I try to discover services using Master Control Panel but device disconnects. In Master Control Panel I see that central tries to get ServiceChanged characteristics of Generic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Dec 2014 16:10:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4417/disconnecting-on-generic-attribute-primaryservice-0x1801-discovery" /><item><title>RE: Disconnecting on Generic Attribute PrimaryService(0x1801) discovery</title><link>https://devzone.nordicsemi.com/thread/15689?ContentTypeID=1</link><pubDate>Mon, 22 Dec 2014 16:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a50df532-ddae-42d6-92a1-d5ea707a8db9</guid><dc:creator>Yaroslav</dc:creator><description>&lt;p&gt;Thank you for answer! It works for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnecting on Generic Attribute PrimaryService(0x1801) discovery</title><link>https://devzone.nordicsemi.com/thread/15687?ContentTypeID=1</link><pubDate>Fri, 14 Nov 2014 20:44:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f780b686-cd46-4357-bf74-b585d58bd06c</guid><dc:creator>Jerod</dc:creator><description>&lt;p&gt;Not sure this is the only reason, as I have exactly the code as you&amp;#39;ve recommended, and still get disconnect.&lt;/p&gt;
&lt;p&gt;I am using S110.&lt;/p&gt;
&lt;p&gt;Specifically, I have a &amp;quot;write-only&amp;quot; characteristic defined (handle 10), and Service Discovery using will generate:
[15:38:01.7] No response received for ReadRequest on handle 0x0010. Disconnecting..
[15:38:01.7] Lost connection to device. Reason: BTLE_LOCAL_HOST_TERMINATED_CONNECTION&lt;/p&gt;
&lt;p&gt;and the debug output shows that the call to sd_ble_gatts_sys_attr_set returned without error:&lt;/p&gt;
&lt;p&gt;DEBUG:BLE_GAP_EVT_SYS_ATTR_MISSING(0x52)[on_ble_evt()]
DEBUG:am: error_code (0)[on_ble_evt()]
DEBUG:BLE_GAP_EVT_DISCONNECTED(0x11)[on_ble_evt()]&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t find any documentation on what BLE_GATTS_EVT_SYS_ATTR_MISSING actually means.
Why am I getting it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnecting on Generic Attribute PrimaryService(0x1801) discovery</title><link>https://devzone.nordicsemi.com/thread/15688?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2014 09:37:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a1aa6fc-da29-4fd6-8f77-a6d5a54b64ab</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;If service discover fails in your application in Master Control Panel, the problem is most likely that the event BLE_GATTS_EVT_SYS_ATTR_MISSING is not being handled. If the application doesn&amp;#39;t support boding, it can for example be handled the following way in on_ble_evt(..) in main.c:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case BLE_GATTS_EVT_SYS_ATTR_MISSING:
        err_code = sd_ble_gatts_sys_attr_set(m_peripheral_conn_handle, NULL, 0);
        APP_ERROR_CHECK(err_code);
        break;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>