<?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>GATT Characteristic Presentation Format: UNITS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41378/gatt-characteristic-presentation-format-units</link><description>Good day, 
 I again have an interesting question). There is a useful descriptor to better understand the purpose of the characteristic. This is a 0x2904 handle (GATT Characteristic Presentation Format). This question is related to the &amp;quot;unit&amp;quot; field. As</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Dec 2018 13:29:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41378/gatt-characteristic-presentation-format-units" /><item><title>RE: GATT Characteristic Presentation Format: UNITS</title><link>https://devzone.nordicsemi.com/thread/162513?ContentTypeID=1</link><pubDate>Wed, 19 Dec 2018 13:29:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df298865-6b4b-49c8-8cdf-dcaa3d38a142</guid><dc:creator>CheMax</dc:creator><description>&lt;p&gt;Ok, thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I already thought about that. and management tends to convert to standard units.&lt;/p&gt;
&lt;p&gt;Thank you for your patience in answering questions (sometimes stupid questions).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT Characteristic Presentation Format: UNITS</title><link>https://devzone.nordicsemi.com/thread/162472?ContentTypeID=1</link><pubDate>Wed, 19 Dec 2018 10:39:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adbf379e-7ca7-4e62-a721-750df9890ec6</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hmm, I understand now what you mean. I do not think you can set custom units through the standard descriptor. So like you said&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Either convert them to units in standard descriptor and both, peer and your device understands to convert them back to your units or&lt;/li&gt;
&lt;li&gt;create your own custom descriptors.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT Characteristic Presentation Format: UNITS</title><link>https://devzone.nordicsemi.com/thread/162425?ContentTypeID=1</link><pubDate>Wed, 19 Dec 2018 08:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9eff3035-4bcf-4603-9fdf-9adda4edf5bf</guid><dc:creator>CheMax</dc:creator><description>&lt;p&gt;Not certainly in that way.&lt;/p&gt;
&lt;p&gt;I want to show that the transmitted values are units of acceleration of free fall - g (9,8 м\с2) (or milig = 0.001g). i.e value 1000 =&amp;nbsp;1000mg&amp;nbsp;&amp;ne; 1000 mm/c2.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;but using the standard descriptor, I cannot do it (or I don&amp;rsquo;t know how), since for this field &amp;mdash; units &amp;mdash; there is no provision for setting user values.&lt;/p&gt;
&lt;p&gt;The essence of my question is: can I install custom units through a standard descriptor?&lt;/p&gt;
&lt;p&gt;so far as an exit from this situation, I see two options:&lt;br /&gt;1. convert data to m \ s2 and transfer it with a standard descriptor&lt;br /&gt;2. to get own set of descriptors.&lt;/p&gt;
&lt;p&gt;I apologize for perhaps the incorrect wording of the question. it&amp;#39;s all a language barrier (&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT Characteristic Presentation Format: UNITS</title><link>https://devzone.nordicsemi.com/thread/162220?ContentTypeID=1</link><pubDate>Tue, 18 Dec 2018 08:45:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45191409-07c8-47be-8bc0-e7d9298cc5d5</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Pardon me if, I am not understanding this right.&lt;/p&gt;
&lt;p&gt;1000mm/s^2 is same as 1 m/s^2 which is same as 1g, which is what you want to convey right?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT Characteristic Presentation Format: UNITS</title><link>https://devzone.nordicsemi.com/thread/161167?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 10:51:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a52f8af-ccc0-4026-b4f6-5f4d5fd4ac36</guid><dc:creator>CheMax</dc:creator><description>&lt;p&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/aryan"&gt;Susheel&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I khow about exponent, we use this.&lt;/p&gt;
&lt;p&gt;Here the question is a little different. I give the device to the user, He reads the descriptors of the characteristics and sees:&lt;br /&gt;- data type: signed, 16 bits (SINT16)&lt;br /&gt;- unit of measurement: acceleration, m/s^2&lt;br /&gt;- exponent: -3&lt;/p&gt;
&lt;p&gt;Now, the user receives the data (notification) and sees the number 1000.&lt;/p&gt;
&lt;p&gt;He should perceive it as 1000mg = 1g, But this does not correspond to the description in the descriptor. And the user thinks it is 1000 mm/s^2. I had to give an explanation in the letter.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Your application on android (NrfConnect) behaves the same way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GATT Characteristic Presentation Format: UNITS</title><link>https://devzone.nordicsemi.com/thread/161017?ContentTypeID=1</link><pubDate>Mon, 10 Dec 2018 14:09:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0389eb12-f322-4906-a375-ae35e2255ca4</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The below will not be perceived as weight, it will be perceived as acceleration. Seems like a good fit for your accelaration data.&lt;/p&gt;
&lt;p&gt;&lt;img height="33" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-0190247fbb654dc285536db7fc8bf9ad/pastedimage1544450820337v1.png" width="422" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For weight (mg) you have different unit value that goes into &lt;a href="https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml"&gt;this &lt;/a&gt;one.&lt;/p&gt;
&lt;p&gt;&lt;img height="26" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-0190247fbb654dc285536db7fc8bf9ad/pastedimage1544450937891v2.png" width="378" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;to get to milligram from this, you need to use the exponent of -3 in this table.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>