<?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>Cannot Pair with Vendor UUID using Central device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45745/cannot-pair-with-vendor-uuid-using-central-device</link><description>Hello, 
 I am using SDK 15.2 with softdevice 140 on nrf52840 board. I have been trying to get the development board to pair with a peripheral sensor with UUID &amp;quot;E7D4AA0F-5ACB-55C0-B177-A07D4525E1FA&amp;quot;. I&amp;#39;ve been looking at the ble_app_uart_c example to see</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Apr 2019 10:35:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45745/cannot-pair-with-vendor-uuid-using-central-device" /><item><title>RE: Cannot Pair with Vendor UUID using Central device</title><link>https://devzone.nordicsemi.com/thread/182326?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 10:35:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2705c4a6-4e81-4794-8fa5-79fdf84794c8</guid><dc:creator>Devanshi1510</dc:creator><description>&lt;p&gt;Hi , this code snippet provides me with one device address only everytime. My application wants me to scan and fetch BLE MAC addresses of the android/peer around the board(nRF52840 DK PCA10056) executing code ble_app_multirole_lesc S140 SoftDevice.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot Pair with Vendor UUID using Central device</title><link>https://devzone.nordicsemi.com/thread/180867?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 20:53:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c31940e-8520-4239-b3b4-ba12707c7048</guid><dc:creator>gdutk001</dc:creator><description>&lt;p&gt;Disregard this last comment, it turns out that the BLE_UUID_NUS_SERVICE had one incorrect digit. The code works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot Pair with Vendor UUID using Central device</title><link>https://devzone.nordicsemi.com/thread/180860?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 19:23:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cb29cb1-0f5b-443b-9ecb-0cab41c0bc8b</guid><dc:creator>gdutk001</dc:creator><description>&lt;p&gt;Sigurd,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This has been very helpful. I think we are getting closer. Using the code you provided I can see the UUID of the device i want to pair with being printed to the terminal. I am guessing this means that the device is not being white-listed correctly with the filter. So this has to do with a filtering issue? What can i do to have this 128 bit UUID successfully white-listed and found by the scanner and then paired with?&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot Pair with Vendor UUID using Central device</title><link>https://devzone.nordicsemi.com/thread/180843?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 16:05:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49496d3c-8c0e-4778-bd59-8b82e4195c25</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Could it be that you have reversed the byte order of the UUID ?&lt;/p&gt;
&lt;p&gt;If a non-whitelisted 128bit UUID is found in the event&amp;nbsp;&lt;span&gt;NRF_BLE_SCAN_EVT_NOT_FOUND, you can print it like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;typedef struct
{
    uint8_t * p_data;   /**&amp;lt; Pointer to data. */
    uint16_t  data_len; /**&amp;lt; Length of data. */
} data_t;

#define N_AD_TYPES 2
#define UUID128_SIZE    16  /**&amp;lt; Size of 128 bit UUID. */
#include &amp;quot;ble_advdata.h&amp;quot;

/**@brief Function for handling Scanning Module events.
 */
static void scan_evt_handler(scan_evt_t const * p_scan_evt)
{
    ret_code_t err_code;
    data_t   adv_data;
    // Initialize advertisement report for parsing
    adv_data.p_data   = (uint8_t *) p_scan_evt-&amp;gt;params.p_not_found-&amp;gt;data.p_data;
    
    adv_data.data_len = p_scan_evt-&amp;gt;params.p_not_found-&amp;gt;data.len;

    uint16_t        data_offset = 0;
    uint8_t         ad_types[N_AD_TYPES];
    uint8_t       * p_parsed_uuid;
    uint16_t        parsed_uuid_len = adv_data.data_len;
    uint8_t   uuid_buffer[UUID128_SIZE];      

    switch(p_scan_evt-&amp;gt;scan_evt_id)
    {
         case NRF_BLE_SCAN_EVT_CONNECTING_ERROR:
         {
              err_code = p_scan_evt-&amp;gt;params.connecting_err.err_code;
              APP_ERROR_CHECK(err_code);
         } break;

         case NRF_BLE_SCAN_EVT_CONNECTED:
         {
              ble_gap_evt_connected_t const * p_connected =
                               p_scan_evt-&amp;gt;params.connected.p_connected;
             // Scan is automatically stopped by the connection.
             NRF_LOG_INFO(&amp;quot;Connecting to target %02x%02x%02x%02x%02x%02x&amp;quot;,
                      p_connected-&amp;gt;peer_addr.addr[0],
                      p_connected-&amp;gt;peer_addr.addr[1],
                      p_connected-&amp;gt;peer_addr.addr[2],
                      p_connected-&amp;gt;peer_addr.addr[3],
                      p_connected-&amp;gt;peer_addr.addr[4],
                      p_connected-&amp;gt;peer_addr.addr[5]
                      );
         } break;

         case NRF_BLE_SCAN_EVT_SCAN_TIMEOUT:
         {
             NRF_LOG_INFO(&amp;quot;Scan timed out.&amp;quot;);
             scan_start();
         } break;

         case NRF_BLE_SCAN_EVT_NOT_FOUND:

            ad_types[0] = BLE_GAP_AD_TYPE_128BIT_SERVICE_UUID_COMPLETE;
            ad_types[1] = BLE_GAP_AD_TYPE_128BIT_SERVICE_UUID_MORE_AVAILABLE;

            for (uint8_t i = 0; (i &amp;lt; N_AD_TYPES) &amp;amp;&amp;amp; (data_offset == 0); i++)
            {
                parsed_uuid_len = ble_advdata_search(adv_data.p_data, adv_data.data_len, &amp;amp;data_offset, ad_types[i]);
            }

            if (data_offset == 0 )
            {
                // Could not find any relevant UUIDs in the encoded data.
                return;
            }
           
            p_parsed_uuid = &amp;amp;adv_data.p_data[data_offset]; //The UUID we found 

            //Copy the UUID to our list of devices
            memset(uuid_buffer,0,UUID128_SIZE);
            memcpy(uuid_buffer, p_parsed_uuid, parsed_uuid_len);

             NRF_LOG_INFO(&amp;quot;Device-addr %02x:%02x:%02x:%02x:%02x:%02x&amp;quot;,
             p_scan_evt-&amp;gt;params.p_not_found-&amp;gt;peer_addr.addr[5],
             p_scan_evt-&amp;gt;params.p_not_found-&amp;gt;peer_addr.addr[4],
             p_scan_evt-&amp;gt;params.p_not_found-&amp;gt;peer_addr.addr[3],
             p_scan_evt-&amp;gt;params.p_not_found-&amp;gt;peer_addr.addr[2],
             p_scan_evt-&amp;gt;params.p_not_found-&amp;gt;peer_addr.addr[1],
             p_scan_evt-&amp;gt;params.p_not_found-&amp;gt;peer_addr.addr[0]
             );



            NRF_LOG_INFO(&amp;quot;Hexdump:&amp;quot;);
            NRF_LOG_HEXDUMP_INFO(p_parsed_uuid,parsed_uuid_len);

            break;


         default:
             break;
    }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot Pair with Vendor UUID using Central device</title><link>https://devzone.nordicsemi.com/thread/180574?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 20:53:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a15088af-735b-494d-b26a-c0bc6fc53014</guid><dc:creator>gdutk001</dc:creator><description>&lt;p&gt;In addition, inside the BLE_GAP_EVT_ADV_REPORT event I added :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        if(ble_advdata_uuid_find(p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.data.p_data, p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.data.len, &amp;amp;m_nus_uuid))
        {
          NRF_LOG_INFO(&amp;quot;\n FOUND UUID OF VITALGRAM APP\n&amp;quot;);
        }&lt;/pre&gt; However the code never finds the UUID. I&amp;#39;m thinking that something within the scan settings might not be correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot Pair with Vendor UUID using Central device</title><link>https://devzone.nordicsemi.com/thread/180571?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 20:02:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54dacbf4-73bd-40ad-b00a-bca6259afaf0</guid><dc:creator>gdutk001</dc:creator><description>&lt;p&gt;Sigurd,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have changed the line as you suggested in the ble_nus_c.h file however nothing seems to be happening. The Scanning LED continues blink and scanning continues as normal.&amp;nbsp; It seems as if the central application is not even finding the device. I think this is true because I keep receiving&amp;nbsp;&amp;nbsp;NRF_BLE_SCAN_EVT_NOT_FOUND within the scan event callback in the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How should i proceed?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot Pair with Vendor UUID using Central device</title><link>https://devzone.nordicsemi.com/thread/180357?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 15:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:079e7ba8-127c-4f38-9ff1-5087cf2467c7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="73972" url="~/f/nordic-q-a/45745/cannot-pair-with-vendor-uuid-using-central-device"]&amp;nbsp;From what I&amp;#39;ve read about the pairing process, this should pair with my peripheral using this example, is that not correct? [/quote]
&lt;p&gt;If the UUID filter is correctly configured, it should connect. But, the ble_app_uart and&amp;nbsp;&lt;span&gt;ble_app_uart_c examples does not use the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/lib_peer_manager.html?cp=4_0_0_3_2_7"&gt;peer manager&lt;/a&gt;, so pairing/bonding is by default not supported for these examples.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="73972" url="~/f/nordic-q-a/45745/cannot-pair-with-vendor-uuid-using-central-device"]I have tried replacing the line with the original nus_base_uuid[/quote][quote userid="73972" url="~/f/nordic-q-a/45745/cannot-pair-with-vendor-uuid-using-central-device"]UUID &amp;quot;E7D4AA0F-5ACB-55C0-B177-A07D4525E1FA&amp;quot;[/quote]
&lt;p&gt;Try setting the&amp;nbsp;&lt;em&gt;BLE_UUID_NUS_SERVICE&lt;/em&gt; in ble_nus_c.h to&amp;nbsp;0xAA0F&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define BLE_UUID_NUS_SERVICE            0xAA0F                      /**&amp;lt; The UUID of the Nordic UART Service. */&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>