<?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>Question from Bluetooth low energy Characteristics, a beginner&amp;#39;s tutorial - challenge 2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63518/question-from-bluetooth-low-energy-characteristics-a-beginner-s-tutorial---challenge-2</link><description>Hello, 
 I followed this tutorial in order to familiarise with the code and understand better what is going on. Now, my question is the following, regarding challenge 2 : 
 I am using nRF connect phone app to read/write bytes into the characteristic.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jul 2020 13:27:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63518/question-from-bluetooth-low-energy-characteristics-a-beginner-s-tutorial---challenge-2" /><item><title>RE: Question from Bluetooth low energy Characteristics, a beginner's tutorial - challenge 2</title><link>https://devzone.nordicsemi.com/thread/259461?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 13:27:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04ecd6a1-9d11-4587-bbc1-3a4518405c82</guid><dc:creator>Marry</dc:creator><description>&lt;p&gt;Hi. After reading more about this, i found out my answer. I&amp;#39;ll leave it here, maybe others have the same issue:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/12997/questions-on-the-temperature-sensor-tutorial-temp-conversion-and-decimal-numbers#post-id-74367"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/12997/questions-on-the-temperature-sensor-tutorial-temp-conversion-and-decimal-numbers#post-id-74367&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You basically take that number i.e. 118 and divide it by 4. That&amp;#39;s all the trick. Thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question from Bluetooth low energy Characteristics, a beginner's tutorial - challenge 2</title><link>https://devzone.nordicsemi.com/thread/259434?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 12:17:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2b6cb60-f37a-4898-9b93-94b8ed9b78e6</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Marry,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should search on Devzon for the similar questions like this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30301/retrieve-characteristic-value"&gt;retrieve-characteristic-value&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The support staff is reduced during the summer holidays, and you may experience delayed answers.&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question from Bluetooth low energy Characteristics, a beginner's tutorial - challenge 2</title><link>https://devzone.nordicsemi.com/thread/259418?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 11:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37392b90-482f-4577-b261-1b2cf2234158</guid><dc:creator>Marry</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/amanda"&gt;Amanda Hsieh&lt;/a&gt;. After reading more about the temperature sensor, I found out that it actually measures the temperature &lt;em&gt;inside&lt;/em&gt; the chip. Therefore maybe 118 degrees could be possible. Could you please tell me if this is the right way to read that value? Thank you in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question from Bluetooth low energy Characteristics, a beginner's tutorial - challenge 2</title><link>https://devzone.nordicsemi.com/thread/259160?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 11:49:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e04ba2a-8789-4444-bfda-0fb8e92ee7f6</guid><dc:creator>Marry</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/63518/question-from-bluetooth-low-energy-characteristics-a-beginner-s-tutorial---challenge-2/259127"]See this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10960/how-to-interpret-value-from-custom-characteristic/40999#40999"&gt;post&lt;/a&gt;.[/quote]
&lt;p&gt;Unfortunately, this does not answer my question. I was confused of how to interpret that value, since 0&lt;span&gt;x76 means 118 dgr in decimal. And this post confirms what I thought, i.e. that I should convert the data &lt;strong&gt;from hexa to decimal&lt;/strong&gt;. But still, I do not understand my 118 (decimal) degrees value.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Additionally, one could say that the last bytes (AA) are the temperature, but that&amp;#39;s 170 dgr in decimal, therefore, it also does not make any sense.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question from Bluetooth low energy Characteristics, a beginner's tutorial - challenge 2</title><link>https://devzone.nordicsemi.com/thread/259127?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 09:30:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41689954-675c-44bf-9ebd-6d2623f21bb4</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Marry,&lt;/p&gt;
[quote user="Marry"]1. How should I interpret these values? Should I translate them &lt;strong&gt;from hexa to decimal?&lt;/strong&gt; Although 0x76 means 118 dgr in decimal, so I guess there should be another trick.[/quote]
&lt;p&gt;See this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10960/how-to-interpret-value-from-custom-characteristic/40999#40999"&gt;post&lt;/a&gt;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="Marry"]2. &lt;strong&gt;Why&lt;/strong&gt; are &lt;strong&gt;the first bits&lt;/strong&gt; of the characteristic changed? I understood that the &lt;em&gt;least significant bits should be changed&lt;/em&gt;, according to the different temperatures experienced by the sensor. [/quote]
&lt;p&gt;&amp;nbsp;You could use ble_gatts_hvx_params_t::&lt;a title="offset" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s112.api.v7.0.1/structble__gatts__hvx__params__t.html?cp=4_7_0_1_2_4_4_7_1#a07033f6e0e63974b67627ae84bc12fc9"&gt;offset&lt;/a&gt;&amp;nbsp;to modify the o&lt;span&gt;ffset within the attribute value&lt;/span&gt;. See this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/22912/what-is-the-purpose-of-the-hvx-offset-parameter-and-how-is-it-used/90127#90127"&gt;post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question from Bluetooth low energy Characteristics, a beginner's tutorial - challenge 2</title><link>https://devzone.nordicsemi.com/thread/259040?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2020 16:28:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:871f08be-a2a5-49c2-a4bc-b9fd1716f924</guid><dc:creator>Marry</dc:creator><description>&lt;p&gt;Hello Amanda,&lt;/p&gt;
&lt;p&gt;And thanks for explaining me this! In the mobile app, it seems that every time I connect,&amp;nbsp;I &lt;strong&gt;bond by-default&lt;/strong&gt;. But it&amp;#39;s good to know that this means an encrypted communication - thanks!&lt;/p&gt;
&lt;p&gt;I have&amp;nbsp;some new questions: going on with the same tutorial, I tried to send the values of the temperature to the application, as notification, but I am a bit confused:&lt;/p&gt;
&lt;p&gt;1. How should I interpret these values? Should I translate them &lt;strong&gt;from hexa to decimal?&lt;/strong&gt; Although 0x76 means 118 dgr in decimal, so I guess there should be another trick.&lt;/p&gt;
&lt;p&gt;2. &lt;strong&gt;Why&lt;/strong&gt; are &lt;strong&gt;the first bits&lt;/strong&gt; of the characteristic changed? I understood that the &lt;em&gt;least significant bits should be changed&lt;/em&gt;, according to the different temperatures experienced by the sensor. Please see the two attachments:&lt;/p&gt;
&lt;p&gt;&lt;img class="align-left" style="float:left;" alt=" " height="405" src="https://devzone.nordicsemi.com/resized-image/__size/1280x960/__key/communityserver-discussions-components-files/4/20200708_5F00_180912.jpg" width="197" /&gt;&lt;img alt=" " height="412" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/20200708_5F00_180958.jpg" width="200" /&gt;&lt;/p&gt;
&lt;p&gt;Thank you for noticing me regarding the summer-holidays delay.&lt;/p&gt;
&lt;p&gt;Best regards, Marry&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question from Bluetooth low energy Characteristics, a beginner's tutorial - challenge 2</title><link>https://devzone.nordicsemi.com/thread/259006?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2020 13:29:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41d346ff-9b67-44df-834f-24f3c8922bb5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Marry,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you click &amp;quot;Bond&amp;quot; in nRF Connect and bond with your kit you will automatically add encryption (ENC) to your BLE link.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-60010315ecff43ab95a8d0a7843902d5/nRF-Connect_5F00_mobile_5F00_bond.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;The support staff is reduced during the summer holidays, and you may experience delayed answers.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>