<?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>scans the beacon message and uuid</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18231/scans-the-beacon-message-and-uuid</link><description>Hi, 
 I am using nRF51822 dongle beacon and i have two dongles. iam flashing the code ,beacon transmitter(C:\sdk_12.1.0\examples\ble_peripheral\ble_app_beacon\pca10028\s130\arm5_no_packs) in one beacon and i able to view the data (uuid and major and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Apr 2019 08:21:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18231/scans-the-beacon-message-and-uuid" /><item><title>RE: scans the beacon message and uuid</title><link>https://devzone.nordicsemi.com/thread/183026?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 08:21:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ecc37ed-dc6b-476b-8cb8-4db4a0287f5c</guid><dc:creator>Naralasetty Praneeth</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi @&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/members/joh2"&gt;J&amp;oslash;rgen Holmefjord&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;can you please help how to do that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: scans the beacon message and uuid</title><link>https://devzone.nordicsemi.com/thread/183023?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 08:19:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:768cab7e-4190-45ac-81cf-0d0fd6300fdf</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;NRF_LOG macros only support up to 6 arguments. If you need more, you will have to use multiple NRF_LOG macros or use sprintf to print the arguments to a string that you pass to NRF_LOG.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: scans the beacon message and uuid</title><link>https://devzone.nordicsemi.com/thread/183018?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 08:13:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6416e5dd-e164-46aa-a8fc-eee487358fbe</guid><dc:creator>Naralasetty Praneeth</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi @&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/members/joh2"&gt;J&amp;oslash;rgen Holmefjord&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;       case BLE_GAP_EVT_ADV_REPORT:
			
                        {
				NRF_LOG_INFO(&amp;quot;Advertise received&amp;quot;);
				scan_start();
                                ble_gap_addr_t  addr;

                                NRF_LOG_INFO(&amp;quot;MAC ADDRESS:  %X:%X:%X:%X:%X:%X AddrType:0x0%d\n&amp;quot;, 
                                  addr.addr[5],addr.addr[4],addr.addr[3],
                                    addr.addr[2],addr.addr[1],addr.addr[0],
                                     p_gap_evt-&amp;gt;params.adv_report.peer_addr);
				
			} break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i had use this code in &lt;span&gt;BLE_GAP_EVT_ADV_REPORT to get MAC addresses of near by devices but i am able to build it i am getting errors like:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1) Output/ble_app_uart_c_pca10040_s132 Debug/Obj/main.o: in function `ble_evt_handler&amp;#39;:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2) undefined reference to `LOG_INTERNAL_7&amp;#39;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: scans the beacon message and uuid</title><link>https://devzone.nordicsemi.com/thread/183007?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 07:56:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44ce3881-3a65-4196-919b-43b78827a35c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Unfortunately, we do not have any sample code for this. You get the event in the example as I described below, and the data is available in the struct. It should be simple for you to extract the data from this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: scans the beacon message and uuid</title><link>https://devzone.nordicsemi.com/thread/182920?ContentTypeID=1</link><pubDate>Mon, 22 Apr 2019 06:10:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6518b232-45fc-4ad4-9109-0cef8fe7af0d</guid><dc:creator>Naralasetty Praneeth</dc:creator><description>&lt;p&gt;Hi @&lt;a href="https://devzone.nordicsemi.com/members/joh2"&gt;J&amp;oslash;rgen Holmefjord&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;[quote userid="14926" url="~/f/nordic-q-a/18231/scans-the-beacon-message-and-uuid/70389"][/quote]&lt;/p&gt;
&lt;p&gt;The &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/ble_sdk_app_nus_c.html?cp=4_0_0_4_2_0_2"&gt;Nordic UART Service Client example&lt;/a&gt; is my recommendation.&lt;/p&gt;
&lt;p&gt;When the central application receives an advertising packet, you will get a &lt;code&gt;BLE_GAP_EVT_ADV_REPORT&lt;/code&gt; event in the BLE event handler, &lt;code&gt;on_ble_evt()&lt;/code&gt;. Here you need to extract the manufacturer specific data from the advertisement package and extract the UUID, major and minor values from this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;can you give me this code if available&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: scans the beacon message and uuid</title><link>https://devzone.nordicsemi.com/thread/70390?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2016 06:39:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c958bd0f-1a18-4d3c-978c-c0ad3c16f696</guid><dc:creator>mani</dc:creator><description>&lt;p&gt;Thanks jorgen ,I able to receive data from  Beacon Transmitter Example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: scans the beacon message and uuid</title><link>https://devzone.nordicsemi.com/thread/70389?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 15:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:299557d4-0118-4ede-899f-6551595799e1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As described in the documentation of the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/ble_sdk_app_beacon.html?cp=4_0_0_4_2_2_2"&gt;Beacon Transmitter Example&lt;/a&gt;, the UUID, major and minor values are broadcast to devices in its range as Manufacturer Specific Data in the advertisement packets. The data is put into an array in the following order:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;APP_DEVICE_TYPE,     // Manufacturer specific information. Specifies the device type in this
                     // implementation.
APP_ADV_DATA_LENGTH, // Manufacturer specific information. Specifies the length of the
                     // manufacturer specific data in this implementation.
APP_BEACON_UUID,     // 128 bit UUID value.
APP_MAJOR_VALUE,     // Major arbitrary value that can be used to distinguish between Beacons.
APP_MINOR_VALUE,     // Minor arbitrary value that can be used to distinguish between Beacons.
APP_MEASURED_RSSI    // Manufacturer specific information. The Beacon&amp;#39;s measured TX power in
                     // this implementation.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We dont have any examples for scanning for beacons, but you can use any of the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/examples_ble_central.html?cp=4_0_0_4_2_0"&gt;Central examples&lt;/a&gt; as a starting point for creating your application. The &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/ble_sdk_app_nus_c.html?cp=4_0_0_4_2_0_2"&gt;Nordic UART Service Client example&lt;/a&gt; is my recommendation.&lt;/p&gt;
&lt;p&gt;When the central application receives an advertising packet, you will get a &lt;code&gt;BLE_GAP_EVT_ADV_REPORT&lt;/code&gt; event in the BLE event handler, &lt;code&gt;on_ble_evt()&lt;/code&gt;. Here you need to extract the manufacturer specific data from the advertisement package and extract the UUID, major and minor values from this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>