<?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>Connect to peripheral only if specific manufacturer data found</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75980/connect-to-peripheral-only-if-specific-manufacturer-data-found</link><description>Hello, 
 
 I have two nrf52840 DKs. 
 I can get the central to connect based off the device name or a specific UUID but what I want is the central device to scan for the peripheral that is advertising &amp;quot;Hello&amp;quot; as its manufacture specific data and connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Jun 2021 09:01:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75980/connect-to-peripheral-only-if-specific-manufacturer-data-found" /><item><title>RE: Connect to peripheral only if specific manufacturer data found</title><link>https://devzone.nordicsemi.com/thread/314129?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 09:01:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98cd6e81-24b1-4771-aafc-b4fb98789b04</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You will find the example attached:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/271085_5F00_ble_5F00_app_5F00_blinky_5F00_c.zip"&gt;devzone.nordicsemi.com/.../271085_5F00_ble_5F00_app_5F00_blinky_5F00_c.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is based on the ble_app_blinky_c example, so I would suggest just copying out the functions that are relevant (such as the scan module init and the scan event handler).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On a second note, a more typical way to connect only to devices from your company or product is to include a unique 128-bit UUID in the advertising payload. This will require a larger part of the advertising payload (18 bytes total for the 2 byte header and the 16 byte UUID), but will ensure that no one else accidentally uses the same UUID (the chance of generating the same 128-bit UUID twice is virtually zero).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to peripheral only if specific manufacturer data found</title><link>https://devzone.nordicsemi.com/thread/313741?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 17:06:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b3308f5-fcb2-4c97-bdbf-5daff3b711d9</guid><dc:creator>devtty</dc:creator><description>&lt;p&gt;I have tried quite a few different things to process the advertise report but could not get it working. If you could provide that example early next week that would be fantastic.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&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: Connect to peripheral only if specific manufacturer data found</title><link>https://devzone.nordicsemi.com/thread/313691?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 13:17:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1ba562b-5060-4f8f-911f-d9936b17e011</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think there is a filter that will allow you to do this automatically.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Instead you need to process the advertise report in your application, look for the manufacturer specific data field, and manually match the company ID and data content in the code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you need some help with this just let me know, and I can provide an example early next week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>