<?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>MQX Software SolutionsのトピックRe: Example of using scanf() in an MQX task?</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Example-of-using-scanf-in-an-MQX-task/m-p/408788#M13685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link you pointed to is interesting and may be useful sometime in the future. What I did to take care of the problem is just what I suggested in the original post. Since the getchar() blocks for the next character, I just let the task accumulate an appropriate string and than pass that through sscanf(). Since I am not concerned about timeouts (yet), it works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem was in looking at fscanf() as compared to the combo of getcchar()/sscanf().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2015 22:28:13 GMT</pubDate>
    <dc:creator>davepfaltzgraff</dc:creator>
    <dc:date>2015-08-10T22:28:13Z</dc:date>
    <item>
      <title>Example of using scanf() in an MQX task?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Example-of-using-scanf-in-an-MQX-task/m-p/408786#M13683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to set up a task running under MQX that would "listen" for user input via the virtual COM port. Until the user inputs something, this task is to remain in the idle state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since scanf() likes to work on a string, I may need to use a variation of getc() and do my own character handling. But, I'd be OK with that as long as the task remains idle until input is available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a good example of this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 15:16:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Example-of-using-scanf-in-an-MQX-task/m-p/408786#M13683</guid>
      <dc:creator>davepfaltzgraff</dc:creator>
      <dc:date>2015-08-04T15:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Example of using scanf() in an MQX task?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Example-of-using-scanf-in-an-MQX-task/m-p/408787#M13684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please check the below thread?&lt;/P&gt;&lt;P&gt;Please let me know if this helps!!!&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/357607"&gt;Has anyone modified the MQX serial driver to include a timeout?&lt;/A&gt; &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>Mon, 10 Aug 2015 21:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Example-of-using-scanf-in-an-MQX-task/m-p/408787#M13684</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-08-10T21:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Example of using scanf() in an MQX task?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Example-of-using-scanf-in-an-MQX-task/m-p/408788#M13685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link you pointed to is interesting and may be useful sometime in the future. What I did to take care of the problem is just what I suggested in the original post. Since the getchar() blocks for the next character, I just let the task accumulate an appropriate string and than pass that through sscanf(). Since I am not concerned about timeouts (yet), it works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem was in looking at fscanf() as compared to the combo of getcchar()/sscanf().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 22:28:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Example-of-using-scanf-in-an-MQX-task/m-p/408788#M13685</guid>
      <dc:creator>davepfaltzgraff</dc:creator>
      <dc:date>2015-08-10T22:28:13Z</dc:date>
    </item>
  </channel>
</rss>

