<?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>ble_nus_c.h error - implement UART service to central and peripheral example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52336/ble_nus_c-h-error---implement-uart-service-to-central-and-peripheral-example</link><description>Hi 
 I am trying to implement UART on nrf52832 , s132 central and peripheral code.I am getting the following error. 
 Description Resource Path Location Type fatal error: ble_nus_c.h: No such file or directory main.c /central_and_peripheral/examples/ble_central_and_peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Oct 2019 15:11:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52336/ble_nus_c-h-error---implement-uart-service-to-central-and-peripheral-example" /><item><title>RE: ble_nus_c.h error - implement UART service to central and peripheral example</title><link>https://devzone.nordicsemi.com/thread/213239?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 15:11:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01309647-36fd-44ea-b3b2-2382fae93ae0</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Check out:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39983/general-error-handling-avoiding-fatal-error"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/39983/general-error-handling-avoiding-fatal-error&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And in specific:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/an-introduction-to-error-handling-in-nrf5-projects"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/an-introduction-to-error-handling-in-nrf5-projects&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c.h error - implement UART service to central and peripheral example</title><link>https://devzone.nordicsemi.com/thread/213194?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 12:47:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87a07c87-236d-451b-8fde-c99f9e14bbbd</guid><dc:creator>guma</dc:creator><description>&lt;p&gt;Also i have tried to make the following chnages in becon to it adverise and then conncet&amp;nbsp;&lt;br /&gt;i have added the following in the code.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;static void conn_params_error_handler(uint32_t nrf_error)&lt;br /&gt;{&lt;br /&gt; APP_ERROR_HANDLER(nrf_error);&lt;br /&gt;}static void conn_params_error_handler(uint32_t nrf_error)&lt;br /&gt;{&lt;br /&gt; APP_ERROR_HANDLER(nrf_error);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;static void gap_params_init(void)&lt;br /&gt;{&lt;br /&gt; uint32_t err_code;&lt;br /&gt; ble_gap_conn_sec_mode_t sec_mode;&lt;br /&gt; ble_gap_conn_params_t gap_conn_params;&lt;br /&gt; int8_t tx_power = 4;&lt;/p&gt;
&lt;p&gt;BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;sec_mode);&lt;/p&gt;
&lt;p&gt;err_code = sd_ble_gap_device_name_set(&amp;amp;sec_mode, (const uint8_t *)DEVICE_NAME,strlen(DEVICE_NAME));&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;//The +3dBm setting is only available on nRF52 series ICs.&lt;br /&gt; //Radio transmit power in dBm (accepted values are -40, -30, -20, -16, -12, -8, -4, 0, 3, and 4 dBm).&lt;br /&gt; err_code = sd_ble_gap_tx_power_set(tx_power);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;memset(&amp;amp;gap_conn_params, 0, sizeof(gap_conn_params));&lt;/p&gt;
&lt;p&gt;gap_conn_params.min_conn_interval = MIN_CONNECTION_INTERVAL;&lt;br /&gt; gap_conn_params.max_conn_interval = MAX_CONNECTION_INTERVAL;&lt;br /&gt; gap_conn_params.slave_latency = SLAVE_LATENCY;&lt;br /&gt; gap_conn_params.conn_sup_timeout = SUPERVISION_TIMEOUT;&lt;/p&gt;
&lt;p&gt;err_code = sd_ble_gap_ppcp_set(&amp;amp;gap_conn_params);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;static void conn_params_init(void)&lt;br /&gt;{&lt;br /&gt; uint32_t err_code;&lt;br /&gt; ble_conn_params_init_t cp_init;&lt;/p&gt;
&lt;p&gt;memset(&amp;amp;cp_init, 0, sizeof(cp_init));&lt;/p&gt;
&lt;p&gt;cp_init.p_conn_params = NULL;&lt;br /&gt; cp_init.first_conn_params_update_delay = FIRST_CONN_PARAMS_UPDATE_DELAY;&lt;br /&gt; cp_init.next_conn_params_update_delay = NEXT_CONN_PARAMS_UPDATE_DELAY;&lt;br /&gt; cp_init.max_conn_params_update_count = MAX_CONN_PARAMS_UPDATE_COUNT;&lt;br /&gt; cp_init.start_on_notify_cccd_handle = BLE_CONN_HANDLE_INVALID; // Start upon connection.&lt;br /&gt; cp_init.disconnect_on_fail = true;&lt;br /&gt; cp_init.evt_handler = NULL; // Ignore events.&lt;br /&gt; cp_init.error_handler = conn_params_error_handler;&lt;/p&gt;
&lt;p&gt;err_code = ble_conn_params_init(&amp;amp;cp_init);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;is this right?&lt;/p&gt;
&lt;p&gt;because when i check in the nrf app the device is not advertising&lt;/p&gt;
&lt;p&gt;what changes do i need to make for the device to be advertise and then when central detects it how to i connect to it?(at central end direct connection)&lt;/p&gt;
&lt;p&gt;or which example do i make the changes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c.h error - implement UART service to central and peripheral example</title><link>https://devzone.nordicsemi.com/thread/213187?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 12:35:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70d961fc-9d87-4435-8fbb-7f289662214f</guid><dc:creator>guma</dc:creator><description>&lt;p&gt;how do i check for fault handler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c.h error - implement UART service to central and peripheral example</title><link>https://devzone.nordicsemi.com/thread/211889?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 15:24:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62245e96-61c0-4784-be1b-cd7ec213cd19</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Likely an error occurs, and you have an assert? Have you checked the fault handler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c.h error - implement UART service to central and peripheral example</title><link>https://devzone.nordicsemi.com/thread/211826?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 12:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a69a0be-dffb-4910-8e4d-17c3a2b64d34</guid><dc:creator>guma</dc:creator><description>&lt;p&gt;hey kenneth,&lt;/p&gt;
&lt;p&gt;The device is not advertising in the relay example . What can be the possible causes?Earlier it was advertising but not it does not .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c.h error - implement UART service to central and peripheral example</title><link>https://devzone.nordicsemi.com/thread/210813?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 04:56:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1398fcd7-cdd1-47e7-b358-1f5e6d841fa9</guid><dc:creator>guma</dc:creator><description>&lt;p&gt;i have included the path to ble_nus_c.h even in make file and i still get the error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c.h error - implement UART service to central and peripheral example</title><link>https://devzone.nordicsemi.com/thread/210681?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2019 11:13:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7501bb07-be5e-4c38-8503-55570d051156</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It seems you have not included the include path to the&amp;nbsp;&lt;span&gt;ble_nus_c.h in your project, so the compiler is not able to find it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>