<?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>Bluetooth profile common characteristics between services</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71782/bluetooth-profile-common-characteristics-between-services</link><description>We are currently developing a family of products that will use Bluetooth and I am putting together the plan for the profiles for each product. 
 I have structured the profiles so that there is much reuse as possible between products. There are services</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Mar 2021 13:11:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71782/bluetooth-profile-common-characteristics-between-services" /><item><title>RE: Bluetooth profile common characteristics between services</title><link>https://devzone.nordicsemi.com/thread/298998?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 13:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5580ed80-1705-459e-a0cf-20b851f816b2</guid><dc:creator>Sigurd</dc:creator><description>[quote user="TomDavies"]You say that if the characterisitc have different UUID then this isn&amp;#39;t an issue[/quote]
&lt;p&gt;&amp;nbsp;Since the Service base is different, then it should be possible for the central to distinguish e.g. Characteristic C used in Service 2 from the one used in Service 4, even if the 16 bit UUID is the same.&lt;/p&gt;
&lt;p&gt;I did some quick testing,&amp;nbsp;I modified the&amp;nbsp;&lt;span&gt;lbs(&lt;/span&gt;&lt;span&gt;LED Button Service)&amp;nbsp;16 bits UUIDs to match the ones used in NUS(Nordic UART service), and then added added lbs to the ble_app_uart example, and I did not experience any issues when testing with a Android phone as central. But, if you run into issues during&amp;nbsp;your testing, then I guess it&amp;#39;s easy to change&amp;nbsp;the 16 bit UUIDs to be&amp;nbsp;unique when used in different services, but I think you should be OK. If you see any issues when testing this, then let me know.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth profile common characteristics between services</title><link>https://devzone.nordicsemi.com/thread/295811?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 11:56:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80d5f1b6-2b28-4267-acb0-9e374ff1bade</guid><dc:creator>Tom</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Thanks for your response. You say that if the characterisitc have different UUID then this isn&amp;#39;t an issue but from my description:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="88838" url="~/f/nordic-q-a/71782/bluetooth-profile-common-characteristics-between-services"]Characteristic C does not use the same base UUID as Service 2 or 4 - I gave it a different base as it is shared but does have the same UUID when used in Service 2 and 4.[/quote]
&lt;p&gt;Characteristic C does have the same UUID in Service 2 and 4.&lt;/p&gt;
&lt;p&gt;Maybe my description wasn&amp;#39;t the best, to expand this is what I proposed in the example with UUIDs for each&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Product Apple - Service 1 (UUID 0xAAAA0000AAAAAAAAAAAAAAAAAAAAAAAA) - Characteristic A (UUID 0x0001)
                                                                    - Characteristic B (UUID 0x0002)
                Service 2 (UUID 0xBBBB0000BBBBBBBBBBBBBBBBBBBBBBBB) - Characteristic C (UUID 0xZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ)
                                                                    - Characteristic D (UUID 0x0001)
                Service 3 (UUID 0xCCCC0000CCCCCCCCCCCCCCCCCCCCCCCC) - Characteristic E (UUID 0x0001)

Product Banana- Service 1 (UUID 0xAAAA0000AAAAAAAAAAAAAAAAAAAAAAAA) - Characteristic A (UUID 0x0001)
                                                                      Characteristic B (UUID 0x0002)
                Service 4 (UUID 0xDDDD0000DDDDDDDDDDDDDDDDDDDDDDDD) - Characteristic F (UUID 0x0001)
                                                                    - Characteristic G (UUID 0x0002)
                                                                    - Characteristic C (UUID 0xZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So to clarify, from your response should I change the UUID for Characteristic C from 0xZZ..ZZ to follow the base ID for each Service and use a 16 bit unique for that service? ie:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Product Apple - Service 1 (UUID 0xAAAA0000AAAAAAAAAAAAAAAAAAAAAAAA) - Characteristic A (UUID 0x0001)
                                                                    - Characteristic B (UUID 0x0002)
                Service 2 (UUID 0xBBBB0000BBBBBBBBBBBBBBBBBBBBBBBB) - Characteristic C (UUID 0x0002)
                                                                    - Characteristic D (UUID 0x0001)
                Service 3 (UUID 0xCCCC0000CCCCCCCCCCCCCCCCCCCCCCCC) - Characteristic E (UUID 0x0001)

Product Banana- Service 1 (UUID 0xAAAA0000AAAAAAAAAAAAAAAAAAAAAAAA) - Characteristic A (UUID 0x0001)
                                                                      Characteristic B (UUID 0x0002)
                Service 4 (UUID 0xDDDD0000DDDDDDDDDDDDDDDDDDDDDDDD) - Characteristic F (UUID 0x0001)
                                                                    - Characteristic G (UUID 0x0002)
                                                                    - Characteristic C (UUID 0x0003)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My thinking had been that given the characterstic was the same when used in different services it should have the same UUID. Should it instead be unique within each service, even if the characteristic is essentially duplicated?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth profile common characteristics between services</title><link>https://devzone.nordicsemi.com/thread/295675?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 16:17:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a79794a-630f-4a83-b2ce-34d6515d626a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Your approach seems fine. Since the characteristic have a different UUID when it&amp;#39;s used in e.g. service 2 and 4, it shouldn&amp;#39;t be any issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>