<?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>nRF9160 DK lte_ble_gateway sample to get beacon UUID</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54988/nrf9160-dk-lte_ble_gateway-sample-to-get-beacon-uuid</link><description>Hi, I am working on nRF9160DK lte_ble_gateway sample, in that I want to scan for beacons UUID and major, minor value. nRF52 device is programmed with bluetooth HCI (UART). I dont want to use BLE scan filters. 
 Could someone please provide me a sample</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Jan 2020 13:59:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54988/nrf9160-dk-lte_ble_gateway-sample-to-get-beacon-uuid" /><item><title>RE: nRF9160 DK lte_ble_gateway sample to get beacon UUID</title><link>https://devzone.nordicsemi.com/thread/230651?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 13:59:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb88e8ae-bede-4ac5-a703-1041e31ca2e7</guid><dc:creator>Simon</dc:creator><description>[quote user="Tejaswini"]But strangely, we are able to see that, the UUID of the above vendor (Gimbal) is changing every time. &amp;nbsp;&lt;br /&gt;&lt;br /&gt;As per our understanding, UUIDs of beacon should be same as its constant value for each beacon. &lt;br /&gt;&lt;br /&gt;Please share us some info about, why UUID is changing.[/quote]
&lt;p&gt;Please contact Gimbal about this, I&amp;nbsp;think they are in a better position about it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK lte_ble_gateway sample to get beacon UUID</title><link>https://devzone.nordicsemi.com/thread/229979?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2020 04:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56cf72f7-7227-49ed-b391-aaafaa47a5dc</guid><dc:creator>Tejaswini</dc:creator><description>&lt;p&gt;still not able to findout,why UUID changing everytime. Please share if you have any information about it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK lte_ble_gateway sample to get beacon UUID</title><link>https://devzone.nordicsemi.com/thread/229836?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 12:36:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ab94253-ea59-4fe6-b4c6-7496ac44a8f2</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am sorry for the delay, have you been able to figure this out?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK lte_ble_gateway sample to get beacon UUID</title><link>https://devzone.nordicsemi.com/thread/228361?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 13:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b71d6e75-f51f-469e-84de-bcd10053102e</guid><dc:creator>Tejaswini</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;We are able to filter the BLE beacons values with UUID values without any issues.&lt;br /&gt;&lt;br /&gt;For information: We are testing only with 2 Gimbal beacons. &lt;br /&gt;And we are filtering by using vendor ID of Gimbal beacon (0x008C).&lt;br /&gt;&lt;br /&gt;But strangely, we are able to see that, the UUID of the above vendor (Gimbal) is changing every time. &amp;nbsp;&lt;br /&gt;&lt;br /&gt;As per our understanding, UUIDs of beacon should be same as its constant value for each beacon. &lt;br /&gt;&lt;br /&gt;Please share us some info about, why UUID is changing.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK lte_ble_gateway sample to get beacon UUID</title><link>https://devzone.nordicsemi.com/thread/223479?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2019 07:27:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:762f1a4e-d80f-4107-b7ad-1c54debff4ec</guid><dc:creator>Tejaswini</dc:creator><description>&lt;p&gt;I got expected UUID, major and minor values.&lt;/p&gt;
&lt;p&gt;Thanks Simon..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK lte_ble_gateway sample to get beacon UUID</title><link>https://devzone.nordicsemi.com/thread/223450?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2019 00:36:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67373170-4be9-4d30-b98e-0dafaeab74bf</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Check out &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/54951/issue-identifying-beacons-with-128-bit-uuid-for-nrf9160-dk-pca-10090"&gt;this ticket&lt;/a&gt; where I have provided the complete code to get this working.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK lte_ble_gateway sample to get beacon UUID</title><link>https://devzone.nordicsemi.com/thread/222916?ContentTypeID=1</link><pubDate>Sun, 01 Dec 2019 16:54:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c579a2a-3312-4e66-98a5-c927b6909b4f</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;You need to somehow filter the advertising data. This is because beacon data usually is in the form of manufacturer-specific data (see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47919/beacon-advertising-packet-format"&gt;this link&lt;/a&gt;), and you need to check all incoming advertising packets and check if it contains a manufacturer-specific AD type (check the bottom of &lt;a href="https://www.bluetooth.com/specifications/assigned-numbers/generic-access-profile/"&gt;this link&lt;/a&gt;). I am not too familiar with the Zephyr BLE libraries, and I am not sure what the proper way of going about this is, but here is&amp;nbsp;one approach:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Make a copy of the &lt;em&gt;lte_ble_gateway&lt;/em&gt; example, which you can modify&lt;/li&gt;
&lt;li&gt;Inside &lt;em&gt;&amp;lt;..&amp;gt;\ncs\nrf\samples\nrf9160\lte_ble_gateway\src\ble.c&lt;/em&gt; do the following
&lt;ul&gt;
&lt;li&gt;Change &lt;em&gt;&lt;span class="pl-c1"&gt;scan_start&lt;/span&gt;()&lt;/em&gt;&amp;nbsp;to the following:&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void scan_start(void){
        int err;
      
      	err = bt_le_scan_start(&amp;amp;scan_param, scan_cb);
	if (err) {
		printk(&amp;quot;Starting scanning failed (err %d)\n&amp;quot;, err);
		return;
	}
}&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li style="list-style-type:none;"&gt;
&lt;ul&gt;
&lt;li&gt;Change scan_cb to the following:&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void scan_cb(const bt_addr_le_t *addr, s8_t rssi, u8_t adv_type,
		    struct net_buf_simple *buf)
{
        bt_data_parse(ad, adv_data_found, NULL);
}&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create adv_data_found:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static bool adv_data_found(struct bt_data *data, void *user_data)
{
	struct bt_scan_control *scan_control =
			(struct bt_scan_control *)user_data;

	if(data-&amp;gt;type== BT_DATA_MANUFACTURER_DATA) {
	   //process the &amp;quot;data&amp;quot; variable
	   //Get minor and major values, uuid etc. from data
	   return false
	}


	return true;
}&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Then delete everything from&amp;nbsp;&lt;em&gt;&amp;lt;..&amp;gt;\ncs\nrf\samples\nrf9160\lte_ble_gateway\src\ble.c &lt;/em&gt;that you don&amp;#39;t need, e.g. functionality for connecting to a device.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I have not tested this myself, and my approach my contain errors/mistakes. Please ask if this approach doesn&amp;#39;t work, or if you want me to elaborate more on anything.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>