<?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>Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24861/scan-uuid-increase-after-each-scanning-periods</link><description>Hi everyone, 
 I am using board PCA10040 v1.1.0, softdevice 13.0.0, Eclipse Oxygen. I am trying to scan my phone and communicate with it but the scaned UUID is increasing as you can see in the image below. 
 
 Here is the ble_evt_handler function:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Sep 2017 08:47:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24861/scan-uuid-increase-after-each-scanning-periods" /><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97925?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 08:47:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbc93220-c9e7-422b-aa15-31c04356d6cf</guid><dc:creator>huaminhtuan</dc:creator><description>&lt;p&gt;Hi Sigurd, I can connect to my phone now. Thank you very much for helping me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97919?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 14:18:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dba4048-e839-426c-9fb4-6db4fa8db6c0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Since the phone uses a Private Resolvable address, the MAC that you scan will change often, and it won’t match the MAC you see in the device information in androidOS. This is the intended behavior.&lt;/p&gt;
&lt;p&gt;Private Resolvable addresses are generated from an identity resolving key (IRK) and a random number, and they can be changed often (even during the lifetime of a connection) to avoid the device being identified and tracked by an unknown scanning device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97926?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 13:58:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6785c9eb-ddf4-4333-90b9-01cad26e8d4f</guid><dc:creator>huaminhtuan</dc:creator><description>&lt;p&gt;I find the &amp;quot;Phone Bluetooth MAC&amp;quot; in the device information in andriod OS. The &amp;quot;Scanned MAC&amp;quot;, I get it from advertising report and I print it in the console&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97923?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 12:10:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10eed9ae-494d-495a-b486-5dec57d597d3</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;nrf_sdh_ble_evts_poll  is a void function that should not return any values.&lt;/p&gt;
&lt;p&gt;Is the Scanned MAC the one you get from the advertising report ? Where the you find the &amp;quot;Phone MAC&amp;quot; ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97922?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 09:36:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8a585ab-0b66-4241-a8f8-a9a413bfafca</guid><dc:creator>huaminhtuan</dc:creator><description>&lt;p&gt;I run debug and it shows that it is connect successfully to target, after that, the program jumps to function &lt;code&gt;nrf_sdh_ble_evts_poll&lt;/code&gt; and then it return error code 0x57D.&lt;/p&gt;
&lt;p&gt;Could you please explain me why the first bit of each byte in the scanned MAC address is shifted to the last position.&lt;/p&gt;
&lt;p&gt;Phone MAC: 11100100-01011000-10111000-00101111-01010100-00000100&lt;/p&gt;
&lt;p&gt;Scanned MAC: 00001000-10101000-01011110-01110001-10110000-11100100&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97921?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 09:27:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2abba1d-1403-4c87-9886-6e87467967b4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Have you already connected to another device maybe? Are you getting the &amp;quot;Connecting to target..&amp;quot; printed on the Segger RTT log ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97920?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 09:13:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c24821f9-6ceb-4d45-a296-c957d883c97f</guid><dc:creator>huaminhtuan</dc:creator><description>&lt;p&gt;Hi Sigurd,
When I try to connect to the scanned MAC address (00001000-10101000-01011110-01110001-10110000-11100100), the function &lt;code&gt;sd_ble_gap_connect&lt;/code&gt; return error code 18, which is&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_ERROR_CONN_COUNT                  (NRF_ERROR_BASE_NUM + 18) ///&amp;lt; Maximum connection count exceeded.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I checked that the following definition is set:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// &amp;lt;o&amp;gt; NRF_SDH_BLE_PERIPHERAL_LINK_COUNT - Maximum number of peripheral links.
#ifndef NRF_SDH_BLE_PERIPHERAL_LINK_COUNT
#define NRF_SDH_BLE_PERIPHERAL_LINK_COUNT 1
#endif

// &amp;lt;o&amp;gt; NRF_SDH_BLE_CENTRAL_LINK_COUNT - Maximum number of central links.
#ifndef NRF_SDH_BLE_CENTRAL_LINK_COUNT
#define NRF_SDH_BLE_CENTRAL_LINK_COUNT 1
#endif

// &amp;lt;o&amp;gt; NRF_SDH_BLE_TOTAL_LINK_COUNT - Maximum number of total concurrent connections using the default configuration.
#ifndef NRF_SDH_BLE_TOTAL_LINK_COUNT
#define NRF_SDH_BLE_TOTAL_LINK_COUNT 2
#endif
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Can you help me please? Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97924?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 05:02:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f304034c-fd95-440f-9ef0-1332e6bf9c9d</guid><dc:creator>huaminhtuan</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I get MAC address from my phone, but it is weird. The first bit of each byte is shifted to the last position.&lt;/p&gt;
&lt;p&gt;Phone MAC:    11100100-01011000-10111000-00101111-01010100-00000100&lt;/p&gt;
&lt;p&gt;Scanned MAC: 00001000-10101000-01011110-01110001-10110000-11100100&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97917?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2017 12:01:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:083e4ed3-84e0-4128-8551-c8ac34f7db8a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;It&amp;#39;s in the &lt;code&gt;ble_gap_evt_adv_report_t-&amp;gt;peer_addr-&amp;gt;addr&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If we take a look at the original &lt;code&gt;ble_app_uart_c&lt;/code&gt; code, we are first looking for the Nordic UART Service UUID, and if the UUID is found we connect. If the connect request is successful, we print the Bluetooth address of the peer device.&lt;/p&gt;
&lt;p&gt;Code snippet:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case BLE_GAP_EVT_ADV_REPORT:
    {
        const ble_gap_evt_adv_report_t * p_adv_report = &amp;amp;p_gap_evt-&amp;gt;params.adv_report;

        if (is_uuid_present(&amp;amp;m_nus_uuid, p_adv_report))
        {

            err_code = sd_ble_gap_connect(&amp;amp;p_adv_report-&amp;gt;peer_addr,
                                          &amp;amp;m_scan_params,
                                          &amp;amp;m_connection_param,
                                          CONN_CFG_TAG);

            if (err_code == NRF_SUCCESS)
            {
                // scan is automatically stopped by the connect
                err_code = bsp_indication_set(BSP_INDICATE_IDLE);
                APP_ERROR_CHECK(err_code);
                NRF_LOG_INFO(&amp;quot;Connecting to target %02x%02x%02x%02x%02x%02x\r\n&amp;quot;,
                         p_adv_report-&amp;gt;peer_addr.addr[0],
                         p_adv_report-&amp;gt;peer_addr.addr[1],
                         p_adv_report-&amp;gt;peer_addr.addr[2],
                         p_adv_report-&amp;gt;peer_addr.addr[3],
                         p_adv_report-&amp;gt;peer_addr.addr[4],
                         p_adv_report-&amp;gt;peer_addr.addr[5]
                         );
            }
        }
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97918?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2017 03:20:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9250993c-f810-4e52-bf56-b70557308871</guid><dc:creator>huaminhtuan</dc:creator><description>&lt;p&gt;Hi Sigurd, sorry but I&amp;#39;m not understand. Could you explain more detail please? Where can I get the phone 6-byte MAC address? Is it in the field &lt;code&gt;ble_gap_evt_adv_report_t-&amp;gt;peer_addr-&amp;gt;addr&lt;/code&gt; or &lt;code&gt;ble_gap_evt_adv_report_t-&amp;gt;direct_addr-&amp;gt;addr&lt;/code&gt;? Thanks for helping me!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97914?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 08:03:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2d52f52-0c28-467f-9487-73678143d14b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, you should be able to connect to the phone.&lt;/p&gt;
&lt;p&gt;Q:how can I know that advertising device is my phone or another one?&lt;/p&gt;
&lt;p&gt;A: You can identify the phone by its 6-byte MAC address. The phone uses a Private Resolvable address. So you have to pair/bond with the phone. See &lt;a href="https://devzone.nordicsemi.com/question/6496/gap-address-types/"&gt;this post&lt;/a&gt; for information about BLE addresses.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97912?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 16:20:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e5cb15e-0793-4a51-832d-8fe0c365cb4a</guid><dc:creator>huaminhtuan</dc:creator><description>&lt;p&gt;So, how can I know that advertising device is my phone or another one? And in this case, can I use &lt;code&gt;sd_ble_gap_connect&lt;/code&gt; function to connect with mine?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97911?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 15:33:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5831d586-d098-4120-b484-47a44fe368fc</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, when you make the phone &amp;quot;visible&amp;quot; it will advertise. I tested this on my Samsung phone, but it did not contain any UUID, only the &amp;quot;ManufacturerSpecificData&amp;quot; field that told me that it was a Samsung phone.&lt;/p&gt;
&lt;p&gt;So it’s expected and correct that the &lt;code&gt;sd_ble_uuid_decode()&lt;/code&gt; returns &lt;code&gt;NRF_ERROR_NOT_FOUND&lt;/code&gt; in this case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97913?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 14:23:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf502134-5d2a-49fe-af19-0090787dda12</guid><dc:creator>huaminhtuan</dc:creator><description>&lt;p&gt;Hi Sigurd, I turn Bluetooth on my cell phone on and I make it &amp;quot;visible&amp;quot; from another device. Does that mean my Phone is advertising? I tried nRF Connect adveriser function, but it showed me a message that the advertiser function is not available on my device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97916?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 10:39:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b45fbd0-88c8-40ae-aec1-3b1d8ec28f46</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;It&amp;#39;s not certain that you have a UUID configured in the advertising packet. What app do you use on the phone to use it as peripheral? What UUID are you looking for? and why are you doing this when the field type is &lt;code&gt;BLE_GAP_AD_TYPE_MANUFACTURER_SPECIFIC_DATA&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97915?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2017 02:44:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af79a4a9-d61a-480e-8c98-82a137d889b9</guid><dc:creator>huaminhtuan</dc:creator><description>&lt;p&gt;Hi Sigurd, my central device is nRF52832 chip and my peripheral device is my cell phone, so what is the UUID of my cell phone, which is being scanned, looks like? Is it a 128 bit UUID with type BLE_GAP_AD_TYPE_MANUFACTURER_SPECIFIC_DATA (type code is 255)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan UUID increase after each scanning periods</title><link>https://devzone.nordicsemi.com/thread/97910?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2017 11:49:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ad6ef4b-77f9-44a5-a303-3068080652c7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are getting error code 5(&lt;code&gt;NRF_ERROR_NOT_FOUND&lt;/code&gt;) from the function &lt;code&gt;sd_ble_uuid_decode()&lt;/code&gt;,so that is probably what is causing this. You are not actually getting a valid UUID.&lt;/p&gt;
&lt;p&gt;Take a look at &lt;a href="https://devzone.nordicsemi.com/question/77683/error-in-is_uuid_present/"&gt;this post&lt;/a&gt; where this issue was solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>