<?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のトピックSerial Read with TimeOut - Interrupt, blocked with explicit # char's - UART</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Serial-Read-with-TimeOut-Interrupt-blocked-with-explicit-char-s/m-p/234270#M6486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to read a specific number of char's from the serial uart channel. If I use blocked and the char's are not received the task hangs... I understand that. But if I use unblocked, I get the number of char's in the stream at that point which may not have been in the window of opportunity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't just put a time delay in and return with whatever is in the buffer; that is non deterministic. We are checking the response from a BT module and the responses are async based on the users response time/or not. I need to call the fread/read function requesting an exact number of char's, but return after a timeout period if we don't get all the char's or any. Other drivers I have worked with have a QIO_TIMEOUT value regardless of blocking/non blocking. Is there anyway to implement this functionality without hacking the mqx driver?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought of scheduling a task to do the read using a global buffer and flag, then terminate the task if we timed out. But that seems a bit...lame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a suggestion please? Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Jun 2013 19:08:52 GMT</pubDate>
    <dc:creator>Cdn_aye</dc:creator>
    <dc:date>2013-06-22T19:08:52Z</dc:date>
    <item>
      <title>Serial Read with TimeOut - Interrupt, blocked with explicit # char's - UART</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Serial-Read-with-TimeOut-Interrupt-blocked-with-explicit-char-s/m-p/234270#M6486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to read a specific number of char's from the serial uart channel. If I use blocked and the char's are not received the task hangs... I understand that. But if I use unblocked, I get the number of char's in the stream at that point which may not have been in the window of opportunity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't just put a time delay in and return with whatever is in the buffer; that is non deterministic. We are checking the response from a BT module and the responses are async based on the users response time/or not. I need to call the fread/read function requesting an exact number of char's, but return after a timeout period if we don't get all the char's or any. Other drivers I have worked with have a QIO_TIMEOUT value regardless of blocking/non blocking. Is there anyway to implement this functionality without hacking the mqx driver?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought of scheduling a task to do the read using a global buffer and flag, then terminate the task if we timed out. But that seems a bit...lame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a suggestion please? Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jun 2013 19:08:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Serial-Read-with-TimeOut-Interrupt-blocked-with-explicit-char-s/m-p/234270#M6486</guid>
      <dc:creator>Cdn_aye</dc:creator>
      <dc:date>2013-06-22T19:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Read with TimeOut - Interrupt, blocked with explicit # char's - UART</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Serial-Read-with-TimeOut-Interrupt-blocked-with-explicit-char-s/m-p/234271#M6487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would a better way to handle this issue be to not use the MQX driver at all and build a simple UART driver then nstall this with MQX? Does anyone know of a simple code base to start from apart from MQX or would it be best to go to the non-MQX examples that handle the UART and work from that point?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am looking for is advice on is the best recommended path forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 18:16:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Serial-Read-with-TimeOut-Interrupt-blocked-with-explicit-char-s/m-p/234271#M6487</guid>
      <dc:creator>Cdn_aye</dc:creator>
      <dc:date>2013-06-24T18:16:37Z</dc:date>
    </item>
  </channel>
</rss>

