<?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>how to scan ibeacon mac adress and name using nRF51</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38093/how-to-scan-ibeacon-mac-adress-and-name-using-nrf51</link><description>how can i scan ibeacon name and mac address by using nRF51 ? 
 do you have sample code for keil ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Sep 2018 09:50:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38093/how-to-scan-ibeacon-mac-adress-and-name-using-nrf51" /><item><title>RE: how to scan ibeacon mac adress and name using nRF51</title><link>https://devzone.nordicsemi.com/thread/147337?ContentTypeID=1</link><pubDate>Wed, 05 Sep 2018 09:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07a02cc9-1e8d-4f10-a921-11efe25579a7</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Interesting, it might be&amp;nbsp;that the name is cached somehow in the OS (e.g.&amp;nbsp;have this device been connected as a different device previously during development)?&lt;/p&gt;
&lt;p&gt;If you download the nRF Sniffer tool, then you can see the actual content on air to confirm:&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer"&gt;https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to scan ibeacon mac adress and name using nRF51</title><link>https://devzone.nordicsemi.com/thread/147260?ContentTypeID=1</link><pubDate>Wed, 05 Sep 2018 03:05:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bef61dd-24cf-47cf-8555-c99403fa8884</guid><dc:creator>uldara</dc:creator><description>&lt;p&gt;Thank you Kenneth&lt;/p&gt;
&lt;p&gt;i just start on this project. i just wonder why in phone can scan name and nRF51 can get only mac address for some device.&lt;/p&gt;
&lt;p&gt;scan from phone&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1536116533077v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1536116556841v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;scan from nRF51&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Name:&amp;nbsp;N/A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MAC [CF:A4:7E:29:AE:A6]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Name: Tile&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MAC [DA:CC:8B:E8:8F:5A]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to scan ibeacon mac adress and name using nRF51</title><link>https://devzone.nordicsemi.com/thread/147202?ContentTypeID=1</link><pubDate>Tue, 04 Sep 2018 13:42:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b55db425-0444-4bdc-aa5c-bdfeda6d5004</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can read about the ibeacon format here:&amp;nbsp;&lt;a href="https://developer.apple.com/ibeacon/"&gt;https://developer.apple.com/ibeacon/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It does not contain a name.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to scan ibeacon mac adress and name using nRF51</title><link>https://devzone.nordicsemi.com/thread/147181?ContentTypeID=1</link><pubDate>Tue, 04 Sep 2018 12:47:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6c986e9-8253-4911-a574-46d58bf014ad</guid><dc:creator>uldara</dc:creator><description>&lt;p&gt;Thank for your reply&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i can get mac address and name for normal BLE,&lt;/p&gt;
&lt;p&gt;but for ibeacon tag i get mac address only.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	   
	   
	   
	    err_code = adv_report_parse(BLE_GAP_AD_TYPE_COMPLETE_LOCAL_NAME, &amp;amp;adv_data, &amp;amp;type_data);    
    
	    if (err_code != NRF_SUCCESS)
            {
                // Compare short local name in case complete name does not match.
                err_code = adv_report_parse(BLE_GAP_AD_TYPE_SHORT_LOCAL_NAME,
                                          &amp;amp;adv_data,
                                          &amp;amp;type_data);
            }      
	        
	        
	        
	        
	         if (err_code == NRF_SUCCESS)
                    {
							  //NRF_LOG_PRINTF(&amp;quot;Succes: %d \r\n&amp;quot;, i);
								if (err_code == NRF_SUCCESS)
								{
									NRF_LOG_PRINTF(&amp;quot;Name: &amp;quot;);
									char name[50];
									for(int i = 0 ; i &amp;lt; type_data.data_len  ;i++)
									{
										name[i] = type_data.p_data[i];
										name[i+1] = 0;
									}
									 NRF_LOG_PRINTF(name);
									 NRF_LOG_PRINTF(&amp;quot;   MAC  [%02X:%02X:%02X:%02X:%02X:%02X]&amp;quot;,
																peer_addr-&amp;gt;addr[5], peer_addr-&amp;gt;addr[4], peer_addr-&amp;gt;addr[3],
																peer_addr-&amp;gt;addr[2], peer_addr-&amp;gt;addr[1], peer_addr-&amp;gt;addr[0]);
				
									 NRF_LOG_PRINTF(&amp;quot;\r\n&amp;quot;);
									
								}
					}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;my output log&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;Name: Tile&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MAC [DA:CC:8B:E8:8F:5A]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Success Name: Tile&lt;br /&gt;Name:&amp;nbsp;N/A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MAC [22:F1:E9:37:90:21]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Can&amp;#39;t get name&amp;nbsp; &amp;nbsp; (ibeacon tag)&lt;br /&gt;Name: N/A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MAC [27:E2:B9:B6:F8:59]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Can&amp;#39;t get name&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;(ibeacon tag)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to scan ibeacon mac adress and name using nRF51</title><link>https://devzone.nordicsemi.com/thread/146955?ContentTypeID=1</link><pubDate>Mon, 03 Sep 2018 11:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec9c2383-f4d0-4a8e-bb30-c57a54c199e8</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I recommend to download nRF5 SDKv12.3 and look at the multilink central example:&lt;br /&gt;\nRF5_SDK_12.3.0_d7731ad\examples\ble_central\ble_app_multilink_central\pca10028\s130\arm5_no_packs&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The multilink central example is setup to connect to specific peripheral devices, so in your case you need to modify&amp;nbsp;on_adv_report() in main.c to output for instance peer_addr and&amp;nbsp;advertisment&amp;nbsp;content instead of connecting.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>