<?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>Fails on CCC value reading during discover services.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6453/fails-on-ccc-value-reading-during-discover-services</link><description>Issue is related to:
 devzone.nordicsemi.com/.../ 
Now I use latest SD S130_1.0
So, I added to my service characteristic with notifications enabled. But during discovering services using MCP on PC at reading CCC of char. with notify my device reboots</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Apr 2015 12:59:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6453/fails-on-ccc-value-reading-during-discover-services" /><item><title>RE: Fails on CCC value reading during discover services.</title><link>https://devzone.nordicsemi.com/thread/22506?ContentTypeID=1</link><pubDate>Fri, 10 Apr 2015 12:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:810cad08-6309-4bc7-8964-a83ed5be9d13</guid><dc:creator>Yaroslav</dc:creator><description>&lt;p&gt;Fine. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fails on CCC value reading during discover services.</title><link>https://devzone.nordicsemi.com/thread/22505?ContentTypeID=1</link><pubDate>Fri, 10 Apr 2015 12:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8337af21-eb4e-4e5f-9ee0-c447ab6abec4</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;Ideally, you should immediately set the system attributes when you connect to a device. Then you will rarely, if ever, get this event. If you choose to solve it like you do, you should also use the &lt;em&gt;p_ble_evt-&amp;gt;evt.gatts_evt.conn_handle&lt;/em&gt; struct, which might be your problem here.&lt;/p&gt;
&lt;p&gt;If you have bonded previously, the system attributes must be restored to what they were in the last connection. And if you have no bond with the device, then you should set them to NULL as you do there. The Device Manager should have some code that shows how to accomplish this.&lt;/p&gt;
&lt;p&gt;The original problem is that the Master Control Panel tries to read the CCCDs/SCCDs, and the values of these are undefined for every new connection. They are not defined until they are either written to, or sys_attr_set() has been called.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>