<?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>UART and HRS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19744/uart-and-hrs</link><description>Is it possible to setup the nrf52 with the HRS profile along with UART. I&amp;#39;d like to send heart rate date along with UART messages. 
 I&amp;#39;d also like to have an android app to get the UART data and another app to get the HRS data. 
 thanks,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Feb 2017 08:33:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19744/uart-and-hrs" /><item><title>RE: UART and HRS</title><link>https://devzone.nordicsemi.com/thread/76799?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2017 08:33:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e0d5fe9-c59e-4460-9416-ef336ecdee31</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The UUID list can also be placed in the scan response packet. This is done in the ble_app_uart example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and HRS</title><link>https://devzone.nordicsemi.com/thread/76798?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2017 04:59:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3626abcf-ca9c-4763-927a-67dd64bc3eac</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Yes. You can have more than one service&lt;/p&gt;
&lt;p&gt;So you could merge the code from the HRS and NUS examples&lt;/p&gt;
&lt;p&gt;One thing to note is that the HRS is a 16 bit service ID and the NUS is a 128 bit service Id, so you will need to add these separately, rather than being able to add an array of 16 bit service ID&amp;#39;s&lt;/p&gt;
&lt;p&gt;Also, the 128b service ID takes 18 bytes of the 31 bytes available in the advertising packet, the HRS service will take 4 bytes, and the flags byte (I think this is 3 bytes), and the appearance data is I think 3 bytes  which only leaves 28 bytes for the name (2 bytes + number of chars in the name)&lt;/p&gt;
&lt;p&gt;So if my calculations are correct, this only allows a name of 3 characters for the name&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>