<?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>Central part of relay not connecting to the other peripheral board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53146/central-part-of-relay-not-connecting-to-the-other-peripheral-board</link><description>Hi, 
 I have added nus service to the relay central and peripheral example.The relay board advertises and i can connect to the peripheral part of device through the nrf connect app.When another board which has ble_app_uart peripheral advertises ,the central</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Oct 2019 09:39:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53146/central-part-of-relay-not-connecting-to-the-other-peripheral-board" /><item><title>RE: Central part of relay not connecting to the other peripheral board</title><link>https://devzone.nordicsemi.com/thread/215015?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2019 09:39:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:092e697b-9f90-4c16-a1e2-9400b88dccd2</guid><dc:creator>kritis123</dc:creator><description>&lt;p&gt;So when i test peripheral and central uart examples ,they are working but in the relay setting the problem of central and peripheral(the other board) still exists. The error is in the on_ble_central_evt() function in the case&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;case BLE_GATTS_EVT_TIMEOUT:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Disconnect on GATT Server timeout event.&lt;br /&gt; NRF_LOG_DEBUG(&amp;quot;GATT Server Timeout.&amp;quot;);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;err_code = sd_ble_gap_disconnect(p_ble_evt-&amp;gt;evt.gatts_evt.conn_handle,&lt;br /&gt; BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;with error code 0x00000008.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What can be the reason for the timeout? Should i make some changes in the time intervals?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central part of relay not connecting to the other peripheral board</title><link>https://devzone.nordicsemi.com/thread/215001?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2019 09:02:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0b5a360-55d8-4717-b98e-4aaee937d55c</guid><dc:creator>kritis123</dc:creator><description>&lt;p&gt;okay.Yeah i commented the&amp;nbsp;&lt;span&gt;ble_nus_c_tx_notif_enable(p_ble_nus_c) line and its working now.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central part of relay not connecting to the other peripheral board</title><link>https://devzone.nordicsemi.com/thread/214995?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2019 08:34:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23669642-84ea-4333-8754-4c1d8cfb9dae</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The error code &lt;span&gt;0x00002006&amp;nbsp;&lt;/span&gt;is&amp;nbsp;NRF_ERROR_SOC_POWER_OFF_SHOULD_NOT_RETURN. I think maybe somewhere in your code you are calling&amp;nbsp;sd_power_system_off() or&amp;nbsp;nrf_power_system_off(), and at the same time you are debugging. Likely the advertisement is timing out here, and the code tries to go to system off, this will fail if you are in debug mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central part of relay not connecting to the other peripheral board</title><link>https://devzone.nordicsemi.com/thread/214944?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2019 05:12:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acd54cf7-4a4e-4394-aa9b-e729910cc011</guid><dc:creator>kritis123</dc:creator><description>&lt;p&gt;&amp;nbsp;On the perpheral side i am getting error in ble_advertising.c file with error code 0x00002006&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central part of relay not connecting to the other peripheral board</title><link>https://devzone.nordicsemi.com/thread/214884?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 14:03:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4a8cd56-9e11-463d-93e3-0e19da08f9cb</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Error code 0x00000008 means NRF_ERROR_INVALID_STATE, which make sense if the link is lost at the time you try to enable notifications. You should be able to ignore this.&lt;/p&gt;
&lt;p&gt;I am not sure what SDK and file you are looking at, but I assume that the error you have at peripheral side contains an error code? You are just pointing to a line of code that show where the error will be forwarded to the event handler that is registered.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central part of relay not connecting to the other peripheral board</title><link>https://devzone.nordicsemi.com/thread/214755?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 08:50:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b7feebe-4124-4675-af2f-f63a71a27a2e</guid><dc:creator>kritis123</dc:creator><description>&lt;p&gt;I tried testing my peripheral code by trying to connect it with&amp;nbsp; a central uart example.The problem at peripheral side is it is connecting then disconnecting rapidly and at the central side the error is in the line :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;err_code = ble_nus_c_tx_notif_enable(p_ble_nus_c) with error code 0x0000008 .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;At the peripheral side the error is at this line:&lt;/p&gt;
&lt;p&gt;if (p_advertising-&amp;gt;evt_handler != NULL)&lt;br /&gt; {&lt;br /&gt; p_advertising-&amp;gt;evt_handler(p_advertising-&amp;gt;adv_evt);// error&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;return NRF_SUCCESS;&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central part of relay not connecting to the other peripheral board</title><link>https://devzone.nordicsemi.com/thread/214739?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 07:43:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0703f80-bc8d-44d7-8fc4-5498bfb7d3cd</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;&lt;span&gt;Not sure if I have any good suggestion other than to turn ON debug output (nrf_log), so you may understand the states and transitions that is going on. For instance to find why both LEDs are blinking rapidly.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>