<?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>Looking for way to get central to match service UUID pattern</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11713/looking-for-way-to-get-central-to-match-service-uuid-pattern</link><description>I am trying to provide a custom peripheral service with a 128-bit UUID in an nRF51822. I would like to use two bytes of the UUID to encode a piece of information unique to each device, but the service is the same in all devices, and the characteristic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 06 Feb 2016 20:24:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11713/looking-for-way-to-get-central-to-match-service-uuid-pattern" /><item><title>RE: Looking for way to get central to match service UUID pattern</title><link>https://devzone.nordicsemi.com/thread/44293?ContentTypeID=1</link><pubDate>Sat, 06 Feb 2016 20:24:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16a56a8e-a684-4773-9205-ac187f97a95f</guid><dc:creator>Dan K.</dc:creator><description>&lt;p&gt;We decided to go with using manufacturer data to relay the information, and keep the UUIDs constant. That seems to be the cleanest solution. Thanks to everyone for the suggestions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Looking for way to get central to match service UUID pattern</title><link>https://devzone.nordicsemi.com/thread/44292?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2016 13:00:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc2a7d5a-2b0d-414b-811a-aef8c6c2c10c</guid><dc:creator>John</dc:creator><description>&lt;p&gt;We went with the manufacturer data route. Adding it was very easy with the existing SDK support. It took far longer to get the SIG to create an id for us than to make the code changes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Looking for way to get central to match service UUID pattern</title><link>https://devzone.nordicsemi.com/thread/44291?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2016 10:18:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30db4b40-36bb-4b30-8399-82141585e8cf</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;I would definately consider custom manufacturer data, or perhaps add the required information to service data. According to the latest BLE Core Specification Supplement the Service UUID in service data is optionally followed by additional service data. I have not looked into what exactly is the purpose of this additional data or if this is easily done through the SDK, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Looking for way to get central to match service UUID pattern</title><link>https://devzone.nordicsemi.com/thread/44289?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2016 10:11:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7034850-9a71-4a09-83d0-ac500626a0a6</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Advertising and scanning happens before connection, and service discovery happens after connection. You do not have to advertise the same UUID as you have in you gatt server (the one found in service discovery). You can advertise a custom uuid (with encoded data inside), and recognize this in you scanner handling. Alternatively you can put custom data in the manufacturer specific field in the advertisement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Looking for way to get central to match service UUID pattern</title><link>https://devzone.nordicsemi.com/thread/44290?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2016 23:16:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecc5bf05-fd1a-4db4-a22a-388a9d393ea9</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Several options. Don&amp;#39;t use the discovery manager, write your own discovery code directly using the softdevice events.&lt;/p&gt;
&lt;p&gt;Alternatively the discovery manager code is pretty simple, start with it and modify it to discover all services and match the UUID you want instead of registering for exact service matches.&lt;/p&gt;
&lt;p&gt;Or before you call the discovery manager code, do your own initial query of all the services on the device, handle the callbacks, find the service you want, then put its actual UUID in the discovery db and run it from there. Bit wasteful but not very.&lt;/p&gt;
&lt;p&gt;.. adding another .. put the two bytes in some custom manufacturer data in the advertisement or scan response data so you know what the full service will be before you go discover it .. or don&amp;#39;t even then bother to change the service uuid, just use the bytes you got during scanning&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Looking for way to get central to match service UUID pattern</title><link>https://devzone.nordicsemi.com/thread/44288?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2016 23:06:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e9692c0-c482-4a4a-a23e-a16998e4bb1a</guid><dc:creator>Dan K.</dc:creator><description>&lt;p&gt;Thanks for the response. The problem is that I&amp;#39;d like to get the encoded information without having to connect to the service.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Looking for way to get central to match service UUID pattern</title><link>https://devzone.nordicsemi.com/thread/44287?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2016 21:54:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3be434c-9540-4625-8881-47dba8387d92</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I have no idea if what you want to do is possible. But, what if instead of changing the service UUID, add a read only characteristic to the service with the information you want to encode instead?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>