<?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 NUS central could not receive message from peripheral after peering succeed in first time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60676/nrf52-nus-central-could-not-receive-message-from-peripheral-after-peering-succeed-in-first-time</link><description>Hi Nordic 
 I have some issue When using NRF52832 central to connect the NRF52832 peripheral. 
 i am following the SDK15.3.0 ble_app_uart &amp;amp; ble_app_uart_c to deign the central &amp;amp; peripheral project. and i also refer the example ble_app_gls to add the static</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Apr 2020 11:12:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60676/nrf52-nus-central-could-not-receive-message-from-peripheral-after-peering-succeed-in-first-time" /><item><title>RE: NRF52 NUS central could not receive message from peripheral after peering succeed in first time</title><link>https://devzone.nordicsemi.com/thread/246774?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 11:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:061e06e6-ee0e-45d3-963a-cc66db979e32</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Very likely you have set security on the characteristic, such that it&amp;#39;s only after a bond has been established and link is secured that you are allowed to enable (write to) CCCD.&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 NUS central could not receive message from peripheral after peering succeed in first time</title><link>https://devzone.nordicsemi.com/thread/246665?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 05:57:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad625506-42a0-4799-813a-ad5556eafd10</guid><dc:creator>Small_Bubble</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Nordic&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;after did some test, i found the issue was coming from the function &amp;quot;err_code = ble_nus_c_tx_notif_enable(&amp;amp;m_ble_nus_c);&amp;quot;&lt;/p&gt;
&lt;p&gt;in the very beginning, this function is in event &amp;quot;BLE_NUS_C_EVT_DISCOVERY_COMPLETE&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;   case BLE_NUS_C_EVT_DISCOVERY_COMPLETE:
	            NRF_LOG_INFO(&amp;quot;Discovery complete.&amp;quot;);
	            err_code = ble_nus_c_handles_assign(p_ble_nus_c, p_ble_nus_evt-&amp;gt;conn_handle, &amp;amp;p_ble_nus_evt-&amp;gt;handles);
	            APP_ERROR_CHECK(err_code);

	            /////////Added for bonding//////// 
	            err_code = pm_conn_secure(p_ble_nus_evt-&amp;gt;conn_handle, false);
	            if (err_code != NRF_ERROR_BUSY)
	            {
	                APP_ERROR_CHECK(err_code);
	            }
	            /////////Added for bonding////////
	          /*
	            err_code = ble_nus_c_tx_notif_enable(p_ble_nus_c);
	            APP_ERROR_CHECK(err_code);
	            */
	            NRF_LOG_INFO(&amp;quot;Connected to device with Nordic UART Service.&amp;quot;);
            break;&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;after i move &amp;quot;&lt;span&gt;ble_nus_c_tx_notif_enable&amp;quot; to&amp;nbsp;PM_EVT_CONN_SEC_SUCCEEDED. this issue has been fix up&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;    case PM_EVT_CONN_SEC_SUCCEEDED:
             NRF_LOG_INFO(&amp;quot;pairing succeed.&amp;quot;);
             err_code = pm_peer_id_get(m_ble_nus_c.conn_handle, &amp;amp;m_peer_to_be_deleted);
              APP_ERROR_CHECK(err_code);
              err_code = ble_nus_c_tx_notif_enable(&amp;amp;m_ble_nus_c);
              APP_ERROR_CHECK(err_code);    
            break;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;May i know the reason for this ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>