<?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>Modify ble_app_uart_c example to scan for custom UUID not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52376/modify-ble_app_uart_c-example-to-scan-for-custom-uuid-not-working</link><description>I am trying to do the same thing that others have tried in the past, and that is to modify the ble_app_uart_c example to connect to our custom peripheral device. 
 I have gone through several blog posts regarding this issue, including: https://devzone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Sep 2019 09:40:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52376/modify-ble_app_uart_c-example-to-scan-for-custom-uuid-not-working" /><item><title>RE: Modify ble_app_uart_c example to scan for custom UUID not working</title><link>https://devzone.nordicsemi.com/thread/212008?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 09:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:632208cd-f119-4bf1-bffb-865ba22d5792</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I tested this quickly here and was able to establish connection to a device with 0xFFF0 in the advertisement packet. The only change I made was to modify the&amp;nbsp;m_nus_uuid struct at the beginning of main.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
/**@brief NUS UUID. */
static ble_uuid_t const m_nus_uuid =
{
    .uuid = 0xFFF0,//BLE_UUID_NUS_SERVICE,
    .type = BLE_UUID_TYPE_BLE
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Is this what you tried earlier?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The peripheral device I tested with:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f8981372077741afa326da59061ab1c3/pastedimage1569490763125v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify ble_app_uart_c example to scan for custom UUID not working</title><link>https://devzone.nordicsemi.com/thread/211553?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 13:01:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0b91930-084d-4e36-97a0-4c148447c4fb</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Yes.&amp;nbsp; The UUID is FFF0.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify ble_app_uart_c example to scan for custom UUID not working</title><link>https://devzone.nordicsemi.com/thread/211552?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 12:59:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60c271e6-262e-4c70-b60d-5191a94f5327</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I think the best we have for that is the documenation for the scanner module:&amp;nbsp;&lt;a title="Scanning Module" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_ble_scan.html?cp=5_1_3_2_11"&gt;Scanning Module&lt;/a&gt;. I can also try modifiying an existing example to do the same here. What&amp;#39;s the value of the UUID in the adv. packet? is it&amp;nbsp;&lt;span&gt;0xFFF0?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify ble_app_uart_c example to scan for custom UUID not working</title><link>https://devzone.nordicsemi.com/thread/211543?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 12:40:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:064c1429-b7bf-451c-8529-a5bdfb7a79eb</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Vidar, I have verified that the peripheral does send only the 16-bit UUID. Can you point me to a blog post that discusses matching the 16-bit UUID?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify ble_app_uart_c example to scan for custom UUID not working</title><link>https://devzone.nordicsemi.com/thread/211372?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 17:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44d6da64-39e8-456b-93ae-5a0d31387b3f</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Further investigation shows that I am getting an error 0x..08 in&amp;nbsp;NRF_FAULT_ID_SDK_ERROR when trying to connect by matching &amp;quot;full name&amp;quot;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify ble_app_uart_c example to scan for custom UUID not working</title><link>https://devzone.nordicsemi.com/thread/211333?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 14:42:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f496aac-ea26-4fde-a6b7-8efa0e69f164</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;OK, I&amp;#39;ll check that out.&amp;nbsp; In the meantime, I&amp;#39;ve been somewhat successful in matching the &amp;quot;Full Name&amp;quot; and getting to:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static void on_connected_evt(nrf_ble_gatt_t * p_gatt, ble_evt_t const * p_ble_evt)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t traced it past this point yet but the nRF52 DK seems to time out and restarts the scan function before the connection can be completed.&lt;/p&gt;
&lt;p&gt;Assuming that they are only broadcasting the 16bit UUID, what function do I call to match it?&amp;nbsp; Do I need to set up any other variables to make that work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify ble_app_uart_c example to scan for custom UUID not working</title><link>https://devzone.nordicsemi.com/thread/211133?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 08:11:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f90b30c-4a6a-4c01-a1bf-3740b9133552</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Maybe you have done it already, but I would suggest inspecting the advertising packet from the peripheral in nRF connect on Android/iOS and check whether it&amp;#39;s advertising the full 128-bit UUID or just the 16-bit Service UUID. I find it a bit strange that it&amp;#39;s using the SIG base UUID for a custom service.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify ble_app_uart_c example to scan for custom UUID not working</title><link>https://devzone.nordicsemi.com/thread/211011?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 16:36:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cc506bb-a885-4857-9b12-5085c5216c7a</guid><dc:creator>EricDelangis</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;No such luck.&amp;nbsp; Made changes in two places:&lt;/p&gt;
&lt;p&gt;Line 72 - #define BLE_UUID_TYPE_BLE BLE_UUID_TYPE_VENDOR_BEGIN /**&amp;lt; UUID type for the Nordic UART Service (vendor specific). */&lt;/p&gt;
&lt;p&gt;Line 88 -&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/**@brief NUS UUID. */&lt;br /&gt;static ble_uuid_t const m_nus_uuid =&lt;br /&gt;{&lt;br /&gt; .uuid = BLE_UUID_NUS_SERVICE,&lt;br /&gt; .type = BLE_UUID_TYPE_BLE&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;No apparent change.&amp;nbsp; Unfortunately, it will be difficult to change the Peripheral UUID since we don&amp;#39;t have the ability to modify that code.&amp;nbsp; We will need to find a work around on our end.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify ble_app_uart_c example to scan for custom UUID not working</title><link>https://devzone.nordicsemi.com/thread/210949?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 13:14:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ea0e6c2-15a2-4589-9e33-a4f0c40d7b9e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is&amp;nbsp;there any way you can change the service UUID on the Peripheral/Server? It&amp;#39;s using the&amp;nbsp;Bluetooth SIGs base UUID:&amp;nbsp;&lt;a href="https://www.bluetooth.com/specifications/assigned-numbers/service-discovery/"&gt;https://www.bluetooth.com/specifications/assigned-numbers/service-discovery/&lt;/a&gt;&amp;nbsp;which is not allowed for custom services.&amp;nbsp;In any case, I think it will work if you change the uuid.type from&amp;nbsp;NUS_SERVICE_UUID_TYPE to&amp;nbsp;BLE_UUID_TYPE_BLE in main.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>