<?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>MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6814/mcp-doesnt-recieve-sensor-data</link><description>I have a project which measures temperature and humidity. After measurement the data should be send trough BLE. 
 I have one service for the sensor and two characteristics for humidity and temperature. On the MCP I see the service and the two characteristics</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 May 2015 14:26:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6814/mcp-doesnt-recieve-sensor-data" /><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/23999?ContentTypeID=1</link><pubDate>Thu, 07 May 2015 14:26:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a388eba-4bb8-4a15-a7cb-4600dba7f798</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;Now it works!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/23998?ContentTypeID=1</link><pubDate>Wed, 06 May 2015 14:19:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96602074-89c2-4589-a1d9-a32a16fe852a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I don&amp;#39;t know, you need to include the code where it is used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/24001?ContentTypeID=1</link><pubDate>Wed, 06 May 2015 12:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ba65bf6-270a-490a-a8cf-30b21521be41</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;This is not an answer. Please add it as a new question. It is also difficult to understand what you mean.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/23997?ContentTypeID=1</link><pubDate>Wed, 06 May 2015 11:01:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfd3bf3d-959c-42a5-be2a-c6c533b1b368</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;I will never get into temp_write_handler. Why not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/23996?ContentTypeID=1</link><pubDate>Wed, 06 May 2015 10:27:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff069fd4-2b83-4615-b9da-207fa79a3b8d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;So you get a value of 0x04, not 0x00? Are you getting into temp_write_handler? Please put a breakpoint in it to see if you hit it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/23995?ContentTypeID=1</link><pubDate>Wed, 06 May 2015 07:55:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a908ae0-ded3-406c-9291-b4b9372c27f8</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;I edited my post. You will see that I also tried to get it work with sd_ble_gatts_value_set();&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/23992?ContentTypeID=1</link><pubDate>Wed, 06 May 2015 07:20:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95fd51bd-a6bf-443c-bb25-9975f5c00ff8</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;I did like you suggested. But i still wont recieve the value for the temperature. The temperature is a float. Is it different to send an integer than a float?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/23993?ContentTypeID=1</link><pubDate>Tue, 05 May 2015 13:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74571d21-d2fb-436d-90e4-bf61cd72fd17</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Why don&amp;#39;t you change the function declaration to this: &lt;code&gt;uint32_t ble_fridge_send_temp(ble_fridge_t * p_fridge, uint8_t temp_value)&lt;/code&gt;note the lack of a pointer on the temp_value parameter. Then change the assignment of the temp_value in the function to this: &lt;code&gt;hvx_params.p_data = &amp;amp;temp_value;&lt;/code&gt;? If sd_ble_gatts_hvx depends on the pointer to the value being persistent you may have to assign it to a static variable and assign a pointer to that instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/23991?ContentTypeID=1</link><pubDate>Tue, 05 May 2015 06:25:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c657169-91c1-44e1-8ec7-2f9e0fcd6510</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;How I have to fix this? I changed ble_fridge_send_temp(&amp;amp;m_fridge,temperature); to ble_fridge_send_temp(&amp;amp;m_fridge,&lt;strong&gt;&amp;amp;temperature&lt;/strong&gt;); But I will get another error: type &amp;quot;float *&amp;quot; is incompatible with parameter of type &amp;quot;uint8_t&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/23994?ContentTypeID=1</link><pubDate>Mon, 04 May 2015 14:55:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46424558-fd42-4faa-9949-253a8c537043</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure why you are using sd_ble_gatts_hvx(), it is used for notifications. If you want to set an characteristic value you can use sd_ble_gatts_value_set(), and then you can read it. If the characteristic value doesn&amp;#39;t require authorization the application will not be notificed when it gets a read request, please see this &lt;a href="https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.0.0/s110/html/a00913.html"&gt;MSC&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If the characteristic value requires authorization the application will be notified, please see this &lt;a href="https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.0.0/s110/html/a00916.html"&gt;MSC&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/23990?ContentTypeID=1</link><pubDate>Mon, 04 May 2015 14:12:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09346fb8-41af-465e-9365-011c9d70f7b3</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I could be missing something, but ble_fridge_send_temp is declared as &lt;code&gt;uint32_t ble_fridge_send_temp(ble_fridge_t * p_fridge, uint8_t *temp_value)&lt;/code&gt; so temp_value is a pointer to a uint8_t. However you call it like this: &lt;code&gt;err_code = ble_fridge_send_temp(&amp;amp;m_fridge,temperature);&lt;/code&gt; temperature is a uint8_t without pointer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/23989?ContentTypeID=1</link><pubDate>Mon, 04 May 2015 09:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41c26648-c1b7-465e-9726-50276a718bfd</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;I edited now the question. The length of data isnt necessary, so I removed it. Bit I dont understand what you mean with 2).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/24000?ContentTypeID=1</link><pubDate>Mon, 04 May 2015 07:03:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca90205f-04c6-4359-8651-91a94b621398</guid><dc:creator>kevinlk.li</dc:creator><description>&lt;p&gt;When i get the sensor&amp;#39;s data, how can i  deliver the data throuht NRF51? Thanks.and how to get sensor&amp;#39;s data is very easy for me, if you need this code , pls send email to me : kevinlk.li@arrowasia.com . thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/23988?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2015 12:52:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e313b0cc-29b5-4cb0-bec8-6a35b1e5fcfb</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Well, there are at least two issues:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Your declaration of ble_fridge_send_temp accepts 3 parameters. However you only call it with 2. I don&amp;#39;t believe this even compiles.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Your declaration of ble_fridge_send_temp wants a pointer to the temperature, but you are not passing it the address of temperature you are passing the variable itself.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/23987?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2015 11:45:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d16c94d-d28c-40bd-a9b0-418fb2219275</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;I try to read the value by clicking on read in MCP. I will check the errors...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP doesnt recieve Sensor data</title><link>https://devzone.nordicsemi.com/thread/23986?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2015 11:31:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5affc024-7dca-4761-bb32-a86138009c25</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Are you trying to read(clicking read in MCP) the temperature value or are you trying to notify(sd_ble_gatts_hvx()) MCP with the temperature value? Have you tried to use the debugger to see if you get into the correct functions, and that you don&amp;#39;t get any errors? (To check the error code, remember to set Optimizations to Level 0) Please edit your question with the additional information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>