<?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>getting ble_app_uart_c central device connecting with peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30796/getting-ble_app_uart_c-central-device-connecting-with-peripheral</link><description>Hello, 
 I am trying to adjust a peripheral device to connect a central device based on ble_app_uart_c example. Although this example has been discussed numerous times I was not able to find what&amp;#39;s wrong by browsing previous discussions. 
 In short, about</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Feb 2018 18:31:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30796/getting-ble_app_uart_c-central-device-connecting-with-peripheral" /><item><title>RE: getting ble_app_uart_c central device connecting with peripheral</title><link>https://devzone.nordicsemi.com/thread/121842?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 18:31:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50f6ed94-ff37-426f-982b-2b462d4b25c2</guid><dc:creator>kont40</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/tesc"&gt;tesc&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the advice, following it I found that the target UUID checked into is_uuid_present() was different from extracted UUID. Problem solved!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getting ble_app_uart_c central device connecting with peripheral</title><link>https://devzone.nordicsemi.com/thread/121820?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 15:56:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83b80b66-45ad-4438-82ee-40a7f302d3b9</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Then you must look at how the central finds the peripheral. For instance, the central may filter what peripheral to connect to based on advertised name, or advertised service UUID.&lt;/p&gt;
&lt;p&gt;An easy way to get some clues could be to let the old device advertise, and look at that advertisement data from nRF Connect.&lt;/p&gt;
&lt;p&gt;Edit: Since you made the central device, you probably know what the central is looking for in order to connect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getting ble_app_uart_c central device connecting with peripheral</title><link>https://devzone.nordicsemi.com/thread/121812?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 14:37:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1be8f4ed-bfad-422c-b772-cc788974986a</guid><dc:creator>kont40</dc:creator><description>&lt;p&gt;Dear Terje,&lt;/p&gt;
&lt;p&gt;Thanks for detailed response. As to above points:&lt;/p&gt;
&lt;p&gt;- the device do not seem to reset;&lt;/p&gt;
&lt;p&gt;- since I am able to see it in nRF connect on a tablet with Android OS, I believe advertising is fine.&lt;/p&gt;
&lt;p&gt;- I am able to connect to device using nRF connect, see the characteristic and get the data from notifications.&lt;/p&gt;
&lt;p&gt;- as to the last point - to avoid potential problems with 16-bit UUID I set back the Nordic UART service as shown in the screenshot. Also, I have changed the respective ids at the central side too, as shown in the code below. However, still can&amp;#39;t get the two boards connect. Will appreciate any further advice.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The configuration at the central device:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NUS_BASE_UUID 					{{0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, 0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E}} /**&amp;lt; Used vendor specific UUID. */
#define BLE_UUID_NUS_SERVICE            0x0001                     
#define BLE_UUID_NUS_TX_CHARACTERISTIC  0x0002                      
#define BLE_UUID_NUS_RX_CHARACTERISTIC  0x0003                     &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The peripheral seen in nRF Connect:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="277" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4722.001.png" width="346" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getting ble_app_uart_c central device connecting with peripheral</title><link>https://devzone.nordicsemi.com/thread/121786?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 12:09:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d915520-08ed-461c-837b-be9db44c077c</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Can you confirm that it does not assert / reset? &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting"&gt;See this thread for how to debug.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Can you confirm that the device advertises?&lt;/li&gt;
&lt;li&gt;Are you able to connect to it using nRF Connect? (Either for Android, iOS, or for desktop.)&lt;/li&gt;
&lt;li&gt;When you change an example from using 16 bit UUIDs (as defined from Bluetooth SIG) to using custom UUIDs (&amp;quot;vendor specific UUIDs&amp;quot;), you must configure the SoftDevice to allocate space in memory for your custom UUIDs. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27048/sd_ble_uuid_vs_add-error"&gt;See this thread.&lt;/a&gt; Please also note that in the latest SDKs the number of custom UUIDs is defined using NRF_SDH_BLE_VS_UUID_COUNT in sdk_config.h.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>