<?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>nrf52 unable to enable notifications on the client side ( CCCD not discovered )</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40988/nrf52-unable-to-enable-notifications-on-the-client-side-cccd-not-discovered</link><description>We have a custom board based on the nrf52, We trying to integrate BLE functionality into our already existing firmware. I am able to create a custom service and characteristic but I have not been able to enable notificatons using nrfConnect. The button</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 12 Apr 2020 08:45:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40988/nrf52-unable-to-enable-notifications-on-the-client-side-cccd-not-discovered" /><item><title>RE: nrf52 unable to enable notifications on the client side ( CCCD not discovered )</title><link>https://devzone.nordicsemi.com/thread/244255?ContentTypeID=1</link><pubDate>Sun, 12 Apr 2020 08:45:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:376759c8-4acc-49d7-acdb-d40dac09c440</guid><dc:creator>JJJSchmidt</dc:creator><description>&lt;p&gt;This problem is solved in Hung Bui&amp;#39;s answer to &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/7222/ble-nus---tx-cccd-discovery/25507?focus=true"&gt;this&lt;/a&gt; question.&amp;nbsp; When not using the peer manager, you must handle the BLE_GATTS_EVT_SYS_ATTR_MISSING event in your BLE event handler function.&amp;nbsp; The blinky example includes this case in the function ble_evt_handler() in main.c:&lt;/p&gt;
&lt;p&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;I burned many hours trying to work this out.&amp;nbsp; Some comments in the code relating this event to the CCCD, or better that this enables the client&amp;#39;s discovery of the CCCD, would have been a big help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 unable to enable notifications on the client side ( CCCD not discovered )</title><link>https://devzone.nordicsemi.com/thread/160037?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 15:28:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20a623a9-dc83-4621-b44d-ea33930c48dc</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;When calling characterisic_add() you get the handle for the specific characteristic you just initialized, every time the peer write to a characteristic you will be notified with a&amp;nbsp;&lt;span&gt;BLE_GATTS_EVT_WRITE event and the handle it write to. Maybe you can output to UART.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 unable to enable notifications on the client side ( CCCD not discovered )</title><link>https://devzone.nordicsemi.com/thread/159941?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 12:02:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb51e268-43a6-4266-8303-a1526336bc24</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Can you explain more kenneth, I dont fully understand&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 unable to enable notifications on the client side ( CCCD not discovered )</title><link>https://devzone.nordicsemi.com/thread/159887?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 08:30:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47711c18-a757-4a15-b3e6-8e8dd365936b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Check the value handle when initialise the characteristic vs. the&amp;nbsp;BLE_GATTS_EVT_WRITE event when the peer write to the individual value handles to enable the cccd&amp;#39;s?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 unable to enable notifications on the client side ( CCCD not discovered )</title><link>https://devzone.nordicsemi.com/thread/159828?ContentTypeID=1</link><pubDate>Sun, 02 Dec 2018 10:03:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04ed4e43-bf99-4d21-a7d8-7679c4a14448</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Yes, I see. Do you have any other insights kenneth? What could cause a problem like this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 unable to enable notifications on the client side ( CCCD not discovered )</title><link>https://devzone.nordicsemi.com/thread/159624?ContentTypeID=1</link><pubDate>Thu, 29 Nov 2018 19:03:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bb15232-e54f-445f-8caa-d7ad7c9a24e5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You can see that blinky example does not use peer manager, yet it is using notifications. From the&amp;nbsp;ble_lbs_init() in&amp;nbsp;ble_lbs.c:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-1afafc1b402d42daa924eae05ffccbc8/pastedimage1543518198914v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 unable to enable notifications on the client side ( CCCD not discovered )</title><link>https://devzone.nordicsemi.com/thread/159558?ContentTypeID=1</link><pubDate>Thu, 29 Nov 2018 12:38:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:766f0d7a-ae7e-41ed-b6a0-5ac942545832</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Yes, Kenneth, I have tried the blinky example, displays the ble&amp;nbsp;device but I don&amp;#39;t think it has notifications built in. Could this have something to do with the peer manager that I disabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 unable to enable notifications on the client side ( CCCD not discovered )</title><link>https://devzone.nordicsemi.com/thread/159548?ContentTypeID=1</link><pubDate>Thu, 29 Nov 2018 12:23:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9498be86-ef25-4ccb-8c13-c275704ca5ef</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Very odd, the permissions seems to be set to&amp;nbsp;&lt;span&gt;BLE_GAP_CONN_SEC_MODE_SET_OPEN(), so no security should be needed. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you tried some of the SDK examples, such as:&lt;br /&gt;&lt;/span&gt;&lt;span&gt;\nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_blinky&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The documentation can be found:&lt;br /&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_blinky.html?cp=4_0_0_4_1_2_3"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_blinky.html?cp=4_0_0_4_1_2_3&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>