<?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>Why do we need to encode data in Heart Rate Measurement profile?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26925/why-do-we-need-to-encode-data-in-heart-rate-measurement-profile</link><description>Hello, 
 Looking into the characateristic of Heart Rate BLE profile, I&amp;#39;ve come accross to the function hrm_encode(ble_hrs_t * p_hrs, uint16_t heart_rate, uint8_t * p_encoded_buffer) , and I start to wonder, why do we need to encode the data with this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Nov 2017 07:45:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26925/why-do-we-need-to-encode-data-in-heart-rate-measurement-profile" /><item><title>RE: Why do we need to encode data in Heart Rate Measurement profile?</title><link>https://devzone.nordicsemi.com/thread/105794?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 07:45:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d03d67ee-ecc5-4fce-9fbe-0e57f984b6c9</guid><dc:creator>ndarkness</dc:creator><description>&lt;p&gt;@max Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why do we need to encode data in Heart Rate Measurement profile?</title><link>https://devzone.nordicsemi.com/thread/105792?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 07:44:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c10a0ac5-6d3a-4f86-a61d-5744afa228b6</guid><dc:creator>ndarkness</dc:creator><description>&lt;p&gt;@endnode thanks, I thought it&amp;#39;s was related to all profiles. &lt;code&gt;If you ask why is it so then I&amp;#39;m afraid you need to call to BT SIG and challenge them;)&lt;/code&gt; hahah it sounds challenging ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why do we need to encode data in Heart Rate Measurement profile?</title><link>https://devzone.nordicsemi.com/thread/105793?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 15:51:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a0c1593-2c97-4d56-946d-679d7229b13d</guid><dc:creator>max</dc:creator><description>&lt;p&gt;If you use a standart HRS you need to encode your data acording to &lt;a href="https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.heart_rate_measurement.xml"&gt;spec&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;for your own characteristic  you can use  &lt;a href="https://www.bluetooth.com/develop-with-bluetooth/developer-resources-tools/developer-kits/bluetooth-developer-plugins"&gt;Developer Studio &amp;amp; plugins&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why do we need to encode data in Heart Rate Measurement profile?</title><link>https://devzone.nordicsemi.com/thread/105791?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 15:49:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ca15e81-3a4f-4577-93b1-ac6c9b1d3416</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Heart Rate Monitor has standard &lt;a href="https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=239865"&gt;HTP Profile&lt;/a&gt; and &lt;a href="https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=239866"&gt;HTS Service&lt;/a&gt; defined by BT SIG, you can download the spec free of charge. As such they define not only GAP and GATT roles and GATT Service/Characteristic count/UUIDs/privileges etc. but also protocol on top of Characteristics&amp;#39; Values. So if you want to use it and be interoperable you need to encode information according to the specification. If you ask why is it so then I&amp;#39;m afraid you need to call to BT SIG and challenge them;)&lt;/p&gt;
&lt;p&gt;If you do your proprietary GAP Profile and GATT Service specification/app then you azre free to define your protocol on top of GATT. If you then use some SDK example as &amp;quot;template&amp;quot; then indeed you need to change such encoding functions unless you keep the protocol exactly as defined for HRS by BT SIG.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>