<?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>topic Re: How use fprintf or fputs to send a zero hexadecimal. in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-use-fprintf-or-fputs-to-send-a-zero-hexadecimal/m-p/355235#M11581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jesus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact if you are using "string" to send the information in the fprintf, you are going to loose the data of your array since the end of string is the NULL character which it is 0x00.&lt;/P&gt;&lt;P&gt;You need to send the byte to byte in a single loop to send all the data from the array&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2014 19:57:21 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2014-11-20T19:57:21Z</dc:date>
    <item>
      <title>How use fprintf or fputs to send a zero hexadecimal.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-use-fprintf-or-fputs-to-send-a-zero-hexadecimal/m-p/355232#M11578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm trying to send to serial port the next&amp;nbsp; &lt;/P&gt;&lt;P&gt;char data[] = {0x02, 0xa3, 0x08, 0x00, 0xab};&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fprintf(serial_fd,&amp;nbsp; string);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But only the three first bytes was send. If change the 0x00 for other value all data is sent.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I think that the fprintf takes the 0x00 as a end of line.&amp;nbsp; How i can send the 0x00 value using fprint or fputs function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 00:13:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-use-fprintf-or-fputs-to-send-a-zero-hexadecimal/m-p/355232#M11578</guid>
      <dc:creator>jesusayala</dc:creator>
      <dc:date>2014-11-20T00:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: How use fprintf or fputs to send a zero hexadecimal.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-use-fprintf-or-fputs-to-send-a-zero-hexadecimal/m-p/355233#M11579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about using write() function instead?&lt;/P&gt;&lt;P&gt;See section 2.3 and 2.9.4 of I/O Drivers User's Manual for more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 02:25:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-use-fprintf-or-fputs-to-send-a-zero-hexadecimal/m-p/355233#M11579</guid>
      <dc:creator>issekiamp</dc:creator>
      <dc:date>2014-11-20T02:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: How use fprintf or fputs to send a zero hexadecimal.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-use-fprintf-or-fputs-to-send-a-zero-hexadecimal/m-p/355234#M11580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works!&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 17:18:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-use-fprintf-or-fputs-to-send-a-zero-hexadecimal/m-p/355234#M11580</guid>
      <dc:creator>jesusayala</dc:creator>
      <dc:date>2014-11-20T17:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: How use fprintf or fputs to send a zero hexadecimal.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-use-fprintf-or-fputs-to-send-a-zero-hexadecimal/m-p/355235#M11581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jesus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact if you are using "string" to send the information in the fprintf, you are going to loose the data of your array since the end of string is the NULL character which it is 0x00.&lt;/P&gt;&lt;P&gt;You need to send the byte to byte in a single loop to send all the data from the array&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 19:57:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-use-fprintf-or-fputs-to-send-a-zero-hexadecimal/m-p/355235#M11581</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2014-11-20T19:57:21Z</dc:date>
    </item>
  </channel>
</rss>

