<?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>Enabling multiple different services to run together in nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67916/enabling-multiple-different-services-to-run-together-in-nrf52832</link><description>Hello, 
 
 I followed the following tutorial to create my own service and characteristics. 
 
 Now, I want to combine this custom service with the UART service so that I can run both my service and the UART Service together at the same time. Is that possible</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Nov 2023 13:47:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67916/enabling-multiple-different-services-to-run-together-in-nrf52832" /><item><title>RE: Enabling multiple different services to run together in nrf52832</title><link>https://devzone.nordicsemi.com/thread/453750?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 13:47:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a7e46a0-cc43-4ea6-ba0e-9e2533634166</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please create a new ticket for this question, a new engineer will assigned to your ticket and will help you with this,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling multiple different services to run together in nrf52832</title><link>https://devzone.nordicsemi.com/thread/453739?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 13:23:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a26d5cc2-464b-48c0-bb77-3adeb79a9ce7</guid><dc:creator>Nilesh Parmar</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;I cracked the methodology of how-to setup multiple service; However, I am not able to understand that how to switch from one service to another? For example, I want to add BLE keyboard service into customize code which has functionality of BLE MIDI service and i require to switch BLE keyboard service to BLE MIDI service to run one service at a time. How this can be done?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling multiple different services to run together in nrf52832</title><link>https://devzone.nordicsemi.com/thread/278743?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 10:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95d13438-d247-40bc-a0ca-6466e8e975ba</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;In short, a 16 bit UUID is used when you make a service that is one of the Bluetooth SIG pre-defined services. The service that you make has to then follow the&amp;nbsp;&lt;a href="https://www.bluetooth.com/specifications/gatt/"&gt;GATT specification for the service&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A 128 bit UUID is used when you make a service that is not one of Bluetooth SIG pre-defined services. The Nordic UART Service is not a pre-defined service but rather a custom service made by Nordic Semiconductor.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The difference between the two UUIDs is summarized in the &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-services-a-beginners-tutorial"&gt;Service tutorial&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;A UUID is an abbreviation you will see a lot in the BLE world. It is a unique number used to identify services, characteristics and descriptors, also known as attributes. These IDs are transmitted over the air so that e.g. a peripheral can inform a central what services it provides. To save transmitting air time and memory space in your nRF52&amp;nbsp;there are two kinds of UUIDs:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The first type is a short 16-bit UUID. The predefined&amp;nbsp;&lt;a href="https://developer.bluetooth.org/gatt/services/Pages/ServiceViewer.aspx?u=org.bluetooth.service.heart_rate.xml"&gt;Heart rate service&lt;/a&gt;, e.g., has the UUID 0x180D and one of its enclosed characteristics, the&amp;nbsp;&lt;a href="https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.heart_rate_measurement.xml"&gt;Heart Rate Measurement characteristic&lt;/a&gt;, has the UUID 0x2A37. The 16-bit UUID is energy and memory efficient, but since it only provides a relatively limited number of unique IDs there is a rule; &lt;strong&gt;you can only transmit the predefined Bluetooth SIG UUIDs directly over the air&lt;/strong&gt;. Hence there is a need for a second type of UUID so you can transmit your own custom UUIDs as well.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The second type is a 128-bit UUID, sometimes referred to as a vendor specific UUID. This is the type of UUID you need to use when you are making your own custom services and characteristics. It looks something like this: 4A98xxxx-1CC4-E7C1-C757-F1267DD021E8 and is called the “base UUID”. The four x’s represent a field where you will insert your own 16-bit IDs for your custom services and characteristics and use them just like a predefined UUID. This way you can store the base UUID once in memory, forget about it, and work with 16-bit IDs as normal.&amp;nbsp;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling multiple different services to run together in nrf52832</title><link>https://devzone.nordicsemi.com/thread/278689?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 00:43:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c63ad837-9610-4731-80e2-0ce25beb34e6</guid><dc:creator>Ananye</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your reply. I am a little confused about services that work with vendor specific UUIDs versus those that don&amp;#39;t. In the ble_app_hrs example, the different services only use a 16 bit UUID and when the services are initialized, the function sd_ble_gatts_service_add() is called.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, in the ble_app_uart example for the UART service, we use a 128 bit base UUID and we first call the sd_ble_uuid_vs_add() function and then the sd_ble_gatts_service_add() .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, whats the difference and importance of these different approaches to add a service. Is it not better to just use a 16bit UUID each time to save on memory?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ananye&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling multiple different services to run together in nrf52832</title><link>https://devzone.nordicsemi.com/thread/278196?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2020 08:14:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7184c350-c89a-4927-8645-b927ac068496</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Is that possible to do?[/quote]
&lt;p&gt;&amp;nbsp;Yes! Many of our examples in the SDK has multiple services, see the services_init() in the ble_app_hrs example for instance. It shows you how to setup multiple services.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling multiple different services to run together in nrf52832</title><link>https://devzone.nordicsemi.com/thread/278184?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2020 04:49:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bc92832-05e6-4788-ac9b-40e28d087b2c</guid><dc:creator>Ananye</dc:creator><description>&lt;p&gt;The tutorial I used was this:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-characteristics-a-beginners-tutorial"&gt;devzone.nordicsemi.com/.../ble-characteristics-a-beginners-tutorial&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>