<?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>Search a specific BLE peripheral device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6874/search-a-specific-ble-peripheral-device</link><description>Hello, 
 we have developed a custom BLE peripheral device. All peripheral devices have the same name. If we want to indetify a specific peripheral device with a smartphone APP, we use the manufacturer data during advertising to set a Flag, if the user</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Nov 2016 10:20:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6874/search-a-specific-ble-peripheral-device" /><item><title>RE: Search a specific BLE peripheral device</title><link>https://devzone.nordicsemi.com/thread/24235?ContentTypeID=1</link><pubDate>Wed, 16 Nov 2016 10:20:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53b468f5-94e7-4690-9995-82df3e676fa5</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Well is Device Name present as AD element in ADV or SCAN_RSP data? Actually even if so it doesn&amp;#39;t guarantee anything on today&amp;#39;s crappy phones... welcome to real life;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search a specific BLE peripheral device</title><link>https://devzone.nordicsemi.com/thread/24236?ContentTypeID=1</link><pubDate>Wed, 16 Nov 2016 09:58:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f579a1cb-44af-4a94-972f-a2426814ca9d</guid><dc:creator>NG</dc:creator><description>&lt;p&gt;Hi, that&amp;#39;s exactly what we are trying to do. A button pushed on the device will change the &amp;quot;device name&amp;quot; in the advertising string. However, while I do:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    err_code = sd_ble_gap_device_name_set(&amp;amp;sec_mode,(const uint8_t*)DEVICE_NAME_1,strlen(DEVICE_NAME_1));
    APP_ERROR_CHECK(err_code);

    err_code = ble_advdata_set(&amp;amp;advdata, NULL);
    APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I can&amp;#39;t see the device name change (using BLE scanners: LightBlue, as well as Nordic&amp;#39;s nfrConnect), until I actually connect to the device - which defeats the whole purpose. I want to see the advertising string change after a button press.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search a specific BLE peripheral device</title><link>https://devzone.nordicsemi.com/thread/24234?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2015 08:00:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64019255-1387-439b-b4c5-95d658557840</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Sound like you are on the right path here. You push a button to set a flag in order to know which one to connect to, and then put the MAC in whitelist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search a specific BLE peripheral device</title><link>https://devzone.nordicsemi.com/thread/24233?ContentTypeID=1</link><pubDate>Tue, 05 May 2015 15:04:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b59e593c-3e4a-425c-ab14-3c9ceb4ce10e</guid><dc:creator>Frederic</dc:creator><description>&lt;p&gt;thats what we do, after we have find &amp;quot;our&amp;quot; device we use the MAC address in the smartphone APP to connect to this device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search a specific BLE peripheral device</title><link>https://devzone.nordicsemi.com/thread/24232?ContentTypeID=1</link><pubDate>Tue, 05 May 2015 14:28:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e568224-55ea-492b-9f5a-4e2a21827f76</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Well once you have mechanisms how to find &amp;quot;your&amp;quot; devices among all possible BLE peripherals then MAC address should be base for any further classification/logging/db. But maybe just my view;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search a specific BLE peripheral device</title><link>https://devzone.nordicsemi.com/thread/24231?ContentTypeID=1</link><pubDate>Tue, 05 May 2015 14:24:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de4f4f36-4e24-48f4-b036-168ea25f4020</guid><dc:creator>Frederic</dc:creator><description>&lt;p&gt;ok, with your solutions i can find my device from several differnt BLE devices. But if i have ten equal BLE devices with equal name and equal 128-bit UUID in ADV_IND and now I want to, for example, indentify the third device, we use the manufacturer specific data AD in ADV_IND to set a flag to indentify the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search a specific BLE peripheral device</title><link>https://devzone.nordicsemi.com/thread/24230?ContentTypeID=1</link><pubDate>Tue, 05 May 2015 09:07:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96eed94f-60c0-4d98-9333-7f929a4cccb6</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;My bad, I missed that you are interested into that initial phase of recognition of your devices from other BLE peripherals. There are 3 standard ways how to do it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;By specific name AD in ADV_IND or SCAN_RSP (this is the way if you must rely on 3rd party central apps or generic OS capabilities).&lt;/li&gt;
&lt;li&gt;By advertising your specific 128-bit UUID in ADV_IND or SCAN_RSP (which you anyway must do if you are having such service and want to follow BLE specifications).&lt;/li&gt;
&lt;li&gt;By putting manufacturer specific data AD in ADV_IND or SCAN_RSP and put some special string there (or consider joining BT SIG and reserving your specific code, then you might put just that).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search a specific BLE peripheral device</title><link>https://devzone.nordicsemi.com/thread/24229?ContentTypeID=1</link><pubDate>Tue, 05 May 2015 08:31:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c96b7eaf-a28f-4286-8d91-f7104a5b657b</guid><dc:creator>Frederic</dc:creator><description>&lt;p&gt;Let&amp;#39;s say we have ten equal BLE devices and all of them are in adevertising mode, how should it now possibl to identify the third BLE device if we don&amp;#39;t know the MAC Address and don&amp;#39;t transmit a serial number during advertising. It&amp;#39;s Ok that sevaral smartphones can connect to one device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search a specific BLE peripheral device</title><link>https://devzone.nordicsemi.com/thread/24227?ContentTypeID=1</link><pubDate>Tue, 05 May 2015 07:58:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e45c888f-f4d7-4409-a5f4-46cd646fcd16</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;And how this scale with more than one phone? What you do when you see advertisement with flag set but that was done after connection with another phone? I&amp;#39;m either missing something from your high-level use case or it&amp;#39;s rather &amp;quot;why to do it simple if we can make it complicated&amp;quot; story:)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search a specific BLE peripheral device</title><link>https://devzone.nordicsemi.com/thread/24228?ContentTypeID=1</link><pubDate>Tue, 05 May 2015 07:19:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f211ae9-cea5-4b7c-9ca4-2a54eb9a230e</guid><dc:creator>Frederic</dc:creator><description>&lt;p&gt;Hey Jan,&lt;/p&gt;
&lt;p&gt;thanks, for your answer. We have several BLE devices which are in advertsing mode, in the APP we find all devices and to identify one of these devices we push a button and set a flag in the advertising message. So, we known to which device we want to connect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search a specific BLE peripheral device</title><link>https://devzone.nordicsemi.com/thread/24226?ContentTypeID=1</link><pubDate>Mon, 04 May 2015 21:30:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c5f54d0-8e6c-4977-b63e-050e30e9dd8b</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hello Frederic,&lt;/p&gt;
&lt;p&gt;Why so complicated when you have &amp;quot;unique&amp;quot; MAC (Advertising) address of the peripheral device from the beginning (advertising, active scanning, target of connection)? Even BLE stack on handset side is using it for &amp;quot;db&amp;quot; of known devices (e.g. when you disable &amp;quot;Service Changed&amp;quot; characteristic on peripheral side then phones will use short service discovery just based on 6-byte MAC address and GATT handles from BLE peripheral stack will be &amp;quot;cached&amp;quot;).&lt;/p&gt;
&lt;p&gt;If you are worried about &amp;quot;uniqueness&amp;quot; of the MAC across your device base then you can either check it during manufacturing process (because then I assume your solution is based on that value and thus you read/log it at some point) or you can easily assign your unique 43-bit number, write it to the flash (e.g. to UICR region) and use as Adv. Address during every boot of the device. But even Nordic does guarantee neither 100% uniqueness nor randomness of the 8-byte Device Address (which I personally completely understand) I&amp;#39;d bet you will never see two equal MAC addresses in the field.&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>