<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Wireless MCU中的主题 BLE communication error when declaring real data type</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/BLE-communication-error-when-declaring-real-data-type/m-p/1838106#M16985</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm studying the "Low Power Temperature Sensor and Collector" example from the KW36 SDK.&lt;/P&gt;&lt;P&gt;In this example, the Sensor (Server device) collects temperature and transmits it to the Collector (Client device).&lt;/P&gt;&lt;P&gt;In the process of outputting the temperature value received from the collector device, I would like to output the temperature value, which is previously output in integer form, in real number form.&lt;/P&gt;&lt;P&gt;-&amp;gt;(For example, I would like to output "24.xx degrees Celsius" rather than "24 degrees Celsius".)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when a real data type variable (for example, float) is declared to output 24.xx degrees Celsius, a connection error occurs in BLE communication.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeokJin_0-1711803193291.png" style="width: 951px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/271202i33CD355D74C2D02E/image-dimensions/951x509?v=v2" width="951" height="509" role="button" title="SeokJin_0-1711803193291.png" alt="SeokJin_0-1711803193291.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Currently, I have declared a float variable called "float_t r" in the BLE_temp_collector.c example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;However, even though I only declared a floating-point variable, after building and debugging, when I check the value output from Putty, it says that pairing was not successful as shown below.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeokJin_1-1711803880439.png" style="width: 858px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/271204iDD6E533F146A2771/image-dimensions/858x543?v=v2" width="858" height="543" role="button" title="SeokJin_1-1711803880439.png" alt="SeokJin_1-1711803880439.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Why does this result occur?&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Can't I use real variables in this example? Or is my declarative float data type (float_t) wrong? If not, do I need to add a specific header file?&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know what's the problem that prevents pairing. Please tell me how I can solve it.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SeokJin.&lt;/P&gt;</description>
    <pubDate>Sat, 30 Mar 2024 13:24:10 GMT</pubDate>
    <dc:creator>SeokJin</dc:creator>
    <dc:date>2024-03-30T13:24:10Z</dc:date>
    <item>
      <title>BLE communication error when declaring real data type</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/BLE-communication-error-when-declaring-real-data-type/m-p/1838106#M16985</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm studying the "Low Power Temperature Sensor and Collector" example from the KW36 SDK.&lt;/P&gt;&lt;P&gt;In this example, the Sensor (Server device) collects temperature and transmits it to the Collector (Client device).&lt;/P&gt;&lt;P&gt;In the process of outputting the temperature value received from the collector device, I would like to output the temperature value, which is previously output in integer form, in real number form.&lt;/P&gt;&lt;P&gt;-&amp;gt;(For example, I would like to output "24.xx degrees Celsius" rather than "24 degrees Celsius".)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when a real data type variable (for example, float) is declared to output 24.xx degrees Celsius, a connection error occurs in BLE communication.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeokJin_0-1711803193291.png" style="width: 951px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/271202i33CD355D74C2D02E/image-dimensions/951x509?v=v2" width="951" height="509" role="button" title="SeokJin_0-1711803193291.png" alt="SeokJin_0-1711803193291.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Currently, I have declared a float variable called "float_t r" in the BLE_temp_collector.c example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;However, even though I only declared a floating-point variable, after building and debugging, when I check the value output from Putty, it says that pairing was not successful as shown below.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeokJin_1-1711803880439.png" style="width: 858px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/271204iDD6E533F146A2771/image-dimensions/858x543?v=v2" width="858" height="543" role="button" title="SeokJin_1-1711803880439.png" alt="SeokJin_1-1711803880439.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Why does this result occur?&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Can't I use real variables in this example? Or is my declarative float data type (float_t) wrong? If not, do I need to add a specific header file?&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know what's the problem that prevents pairing. Please tell me how I can solve it.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SeokJin.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2024 13:24:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/BLE-communication-error-when-declaring-real-data-type/m-p/1838106#M16985</guid>
      <dc:creator>SeokJin</dc:creator>
      <dc:date>2024-03-30T13:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: BLE communication error when declaring real data type</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/BLE-communication-error-when-declaring-real-data-type/m-p/1840302#M17013</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing well. Could you please clarify if you made any ither modification to the example?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, what SDK version are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 18:34:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/BLE-communication-error-when-declaring-real-data-type/m-p/1840302#M17013</guid>
      <dc:creator>Ricardo_Zamora</dc:creator>
      <dc:date>2024-04-03T18:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: BLE communication error when declaring real data type</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/BLE-communication-error-when-declaring-real-data-type/m-p/1840416#M17014</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184557"&gt;@Ricardo_Zamora&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Although the example has been modified, the overall framework is the same.&lt;/P&gt;&lt;P&gt;I simply declared a float data type variable to output the temperature, which had been declared and output as uint16_t, in real number format.&lt;/P&gt;&lt;P&gt;If you look at the picture I attached before, it means float_t r.&lt;/P&gt;&lt;P&gt;I currently have it commented out, but after uncommenting it and debugging, an error occurs in the pairing part when I try to communicate with BLE.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;The SDK I am using is "SDK_2_2_12_FRDM-KW36", and MCUXpresso is using "MCUXpresso IDE v11.8.1_1197".&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to the questions I asked previously, I have an additional question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeokJin_0-1712200977659.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/271871i6DF1F37BDD76297F/image-size/large?v=v2&amp;amp;px=999" role="button" title="SeokJin_0-1712200977659.png" alt="SeokJin_0-1712200977659.png" /&gt;&lt;/span&gt;&lt;U&gt;&lt;STRONG&gt;When I change the Library to "NewlibrNano (nohost)" in the "Properties" of BLE temperature_collector, "Enable print float" is activated and it looks like I can check it and apply it. Is it okay to change the library?&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;The existing library was "Redlib (nohost-nf)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SeokJin.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 03:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/BLE-communication-error-when-declaring-real-data-type/m-p/1840416#M17014</guid>
      <dc:creator>SeokJin</dc:creator>
      <dc:date>2024-04-04T03:23:39Z</dc:date>
    </item>
  </channel>
</rss>

