<?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>how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23725/how-to-send-temperature-values-in-nrf5840</link><description>I&amp;#39;m using Nordic nRF5840 and I want to send the micro controller&amp;#39;s temperature every 1 second via Bluetooth. Can you tell me how to implement it? 
 I found an example named Health Thermometer Service Sample Application. Does it apply for nRF5840? I just</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Jul 2017 11:37:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23725/how-to-send-temperature-values-in-nrf5840" /><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93316?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2017 11:37:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a558c8d-fa8f-4c4b-83c7-8be0cdce9146</guid><dc:creator>Nivetha</dc:creator><description>&lt;p&gt;Thanks, everyone. I got it working:)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93323?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2017 08:49:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a210d4a8-d9e6-43f6-a22b-4fc348dc2e43</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You should call the ble_hts_measurement_send() function the same way as the  battery_level_update function which is called within the battery_level_meas_timeout_handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93312?ContentTypeID=1</link><pubDate>Sat, 29 Jul 2017 08:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2554377-b428-4303-935a-6fb9b7fa8272</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Btw. Ruuvi tag has one variant without external sensors and &lt;a href="https://github.com/ruuvi/ruuvitag_fw/blob/master/ruuvi_examples/weather_station/main.c"&gt;this is how they work with nRF52 temperature  only (see lines 194 and onwards)&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93311?ContentTypeID=1</link><pubDate>Sat, 29 Jul 2017 07:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdd248d7-ef8b-4994-813b-8f88782f23da</guid><dc:creator>Knut Auvor Grythe</dc:creator><description>&lt;p&gt;Note that sd_temp_get blocks until the measurement is complete, approximately 50 μs. I presume that is why it isn&amp;#39;t used in the HTS example, because people are more likely to implement an actual HTS using something interrupt driven similar to how the simulated sensor works.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v13.1.0%2Fble_serialization_s130_functions.html"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt; for the documentation of sd_temp_get.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93307?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 21:05:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de91512b-495a-470d-8acd-c2e22054c8ca</guid><dc:creator>Nivetha</dc:creator><description>&lt;p&gt;Thanks knut! Il try with that:)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93315?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 18:39:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:162514f8-3ec6-4f8e-88cb-b8169a916d92</guid><dc:creator>Knut Auvor Grythe</dc:creator><description>&lt;p&gt;However, the GitHub code I linked to in this answer does fetch the temperature from the chip, so you should be able to modify the HTS example to use that: &lt;a href="https://github.com/knuta/nrf5-ble-app-temp/blob/master/main.c#L131"&gt;github.com/.../main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93317?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 14:05:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9de4824e-60e0-40b2-b28a-b7df4af181ae</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;If you take a look at the source code in the example you&amp;#39;ll see that its a simulated measurement from the &lt;code&gt;hts_sim_measurement()&lt;/code&gt; function in main.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93304?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 13:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e97967c-494f-48b8-ad64-84697f812455</guid><dc:creator>Nivetha</dc:creator><description>&lt;p&gt;Also, what temperature is actually shown in the app while connecting to just nrf52840? Is it the chip&amp;#39;s temperature as given in the &lt;a href="http://infocenter.nordicsemi.com/pdf/nRF52840_OPS_v0.5.pdf"&gt;temperature sensor of nRF52840&lt;/a&gt;? Want to confirm and it shows 37-degree Celsius most of the time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93322?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 11:35:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80a08ba3-cd1c-4454-8786-70989fec5306</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;As far as I know there are no plans on adding the optional characteristics or descriptors to the Health Thermometer Service example in the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93321?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 11:29:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b0af224-78c6-4f8f-8577-278b467f763a</guid><dc:creator>Nivetha</dc:creator><description>&lt;p&gt;Very much needed. I think many are trying to use the optional characteristics and to be compliant with the Nordic standard. It would be great if they update the SDK examples with all characteristics.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93320?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 11:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d1e79d4-4691-455f-99fa-34bc5cb8259d</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi Bjørn, speaking about these changes: comparing to &lt;a href="https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.service.health_thermometer.xml"&gt;full BT SIG HTS specification&lt;/a&gt; there are more GATT Chars and methods. Even these are optional they seems to be useful. Any plans to update SDK examples to be fully compliant to BT SIG definitions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93319?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 11:17:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03405412-d925-4cf3-a2c1-c0874c04ef69</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;If you read the Health Thermometer example description, found &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/ble_sdk_app_hts.html?cp=4_0_0_4_2_2_8"&gt;here&lt;/a&gt;, you&amp;#39;ll see that you need to press button 1 to send the indication(which we have changed to notification). If you want to send the temperature periodically you will have to set up an application timer that calls ble_hts_measurement_send().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93318?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 11:09:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33dcd539-f034-4889-b0a9-aae13498f61e</guid><dc:creator>Nivetha</dc:creator><description>&lt;p&gt;Thanks! Although it displays the temperature. It does not notify every 1 second like the battery status.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93309?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 14:32:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c2a409e-3625-4eca-a572-e9315a35eb1f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You also need to change the following line in ble_hts_measurement_send() in ble_hts.c from&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;hvx_params.type   = BLE_GATT_HVX_INDICATION;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;hvx_params.type   = BLE_GATT_HVX_NOTIFICATION;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93305?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 12:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0253b7e-b16b-4c35-8261-267ca249db05</guid><dc:creator>Nivetha</dc:creator><description>&lt;p&gt;Thanks! I changed it. But no effect! do I have to disable the indication in the main file or change to notify else where?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93313?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 12:09:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b810efe-e11e-404b-b0c0-0f9a2e0655f5</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, you simply have to modify the following line in hts_measurement_char_add() in ble_hts.c&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;char_md.char_props.indicate = 1;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;char_md.char_props.notify = 1;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93310?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 10:40:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3be78b25-55a8-450b-a564-ebcc26677c98</guid><dc:creator>Nivetha</dc:creator><description>&lt;p&gt;Thanks. I got it working. Right now, the values are shown as an indication. Is it possible to change it as Notify?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93308?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 08:27:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b33222a1-eeb2-4c36-b912-b1b1caaadf4f</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;I believe so. Definitely you should dive into function call stack during sending of these values to see where the actual temperature value is coming from.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93306?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 08:01:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51356c52-996d-442d-aacd-1a32fb6d9dff</guid><dc:creator>Nivetha</dc:creator><description>&lt;p&gt;As of now, I used the health thermometer profile and able to check it via the nrF connect app. But in order to transmit the chip&amp;#39;s temperature, do I have to modify the health thermometer service or is the functionality inbuilt already?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93314?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 07:48:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40940193-ff1b-4833-a27c-cd42ad2c080f</guid><dc:creator>Nivetha</dc:creator><description>&lt;p&gt;Yes, indeed it will be in connection. I am trying to read the nrf5840 chips&amp;#39; temperature at the central device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93303?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2017 06:24:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bcb628e-ebee-428b-9cde-10f048307150</guid><dc:creator>Knut Auvor Grythe</dc:creator><description>&lt;p&gt;The Health Thermometer profile requires to be in a connection. If you&amp;#39;re just intending to broadcast the temperature without requiring a connection, there is an old example on Nordic&amp;#39;s GitHub page. I recently updated my fork of it to work with SDK 12.3.0: &lt;a href="https://github.com/knuta/nrf5-ble-app-temp"&gt;github.com/.../nrf5-ble-app-temp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Disclaimer: I&amp;#39;m not entirely sure if it reads temperatures correctly any more. I&amp;#39;m getting 40°C flat when I try with my pca10001, but I don&amp;#39;t think it even has a temperature sensor. I&amp;#39;ve been planning to modify mine to read from an external, more accurate sensor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93297?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 09:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:662154da-0440-4e3f-a178-534e71a8e6b7</guid><dc:creator>Nivetha</dc:creator><description>&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/service_health_thermometer.html?cp=4_0_0_3_2_4"&gt;HealthThermometer Service&lt;/a&gt; Do I have to modify this to send the chip&amp;#39;s temperature?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93302?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 09:51:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12a255c6-52fc-4d21-8940-dd4fe22c4e03</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;However if you want &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/service_health_thermometer.html?cp=4_0_0_3_2_4"&gt;example of BT SIG GATT Health Thermometer Service implementation on nRF52 then see this in nRF5 SDK&lt;/a&gt;. Still you need to embed it into some application (presumably with some GAP Profile),&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93301?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 09:48:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:416590e7-1729-4f55-af1c-40823a30bb9e</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;That&amp;#39;s the problem: BT SIG standartize GATT Service but that doesn&amp;#39;t mean you are done. You need to handle all other layrs on both sides. Some of them are easy to handle (= stacks are ready made for them) but some need at least minimal control over APIs (which are platform specific) and there it starts to be complex;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send temperature values in nrf5840</title><link>https://devzone.nordicsemi.com/thread/93300?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 09:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17b92d9e-a7da-460f-8500-aefbc06a0314</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;What example exactly are you referring to? There seems to be Heart Rate Monitor example which should contain Thermometer, but that might be too complex and cumbersome unless you have already app on the other side which will understand HRS protocol and data. Otherwise simply use any protocol (like Nordic BLE UART aka NUS examples) and transport temperature value over the link as you need. There is Thermometer in nRF5x MCUs, not super accurate but for first iteration it&amp;#39;s enough. See chip specification and SDK how to read it and you are more or less done.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>