<?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 to make unblocking receive. in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-make-unblocking-receive/m-p/373933#M12396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;To disable the blocking in a recv() function it has to do with the sockets and not with the recv(). When the function returns depends on the values of the Receive Timeout socket options: OPT_RECEIVE_TIMEOUT. The application can change the values by calling setsockopt(). If the value is zero then RTCS waits indefinitely for incoming data during a call to recv(). If it is different than zero then RTCS waits for this number of milliseconds for incoming data during a call to recv(). The default is zero.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Try changing this value to 1 millisecond.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Garabo&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>Tue, 07 Apr 2015 20:16:43 GMT</pubDate>
    <dc:creator>Luis_Garabo</dc:creator>
    <dc:date>2015-04-07T20:16:43Z</dc:date>
    <item>
      <title>how to make unblocking receive.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-make-unblocking-receive/m-p/373930#M12393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i am working on FRDMk64f120 controller. i modified Ethernet to serial project.&lt;/P&gt;&lt;P&gt;here,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;" count = recv(task_p-&amp;gt;sock_1, buff, RX_BUFFER_SIZE, 0);" &lt;/STRONG&gt;so this function was waiting up to data receiving from server side. i don't &lt;/P&gt;&lt;P&gt;want this one. how to check server side data is there or not. if not i don't want to wait.i need &lt;STRONG&gt;NON-BLOCKING &lt;/STRONG&gt;function. can you give some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sudhakar.p&lt;/P&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 12:49:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-make-unblocking-receive/m-p/373930#M12393</guid>
      <dc:creator>sudhakarp</dc:creator>
      <dc:date>2015-04-02T12:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to make unblocking receive.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-make-unblocking-receive/m-p/373931#M12394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know what MQX version you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Garabo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 14:53:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-make-unblocking-receive/m-p/373931#M12394</guid>
      <dc:creator>Luis_Garabo</dc:creator>
      <dc:date>2015-04-06T14:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to make unblocking receive.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-make-unblocking-receive/m-p/373932#M12395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am using KSDK 1.1.0 version. and also KDS 2.0.0 IDE am using&lt;/P&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 04:01:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-make-unblocking-receive/m-p/373932#M12395</guid>
      <dc:creator>sudhakarp</dc:creator>
      <dc:date>2015-04-07T04:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to make unblocking receive.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-make-unblocking-receive/m-p/373933#M12396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;To disable the blocking in a recv() function it has to do with the sockets and not with the recv(). When the function returns depends on the values of the Receive Timeout socket options: OPT_RECEIVE_TIMEOUT. The application can change the values by calling setsockopt(). If the value is zero then RTCS waits indefinitely for incoming data during a call to recv(). If it is different than zero then RTCS waits for this number of milliseconds for incoming data during a call to recv(). The default is zero.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Try changing this value to 1 millisecond.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Garabo&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>Tue, 07 Apr 2015 20:16:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-make-unblocking-receive/m-p/373933#M12396</guid>
      <dc:creator>Luis_Garabo</dc:creator>
      <dc:date>2015-04-07T20:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to make unblocking receive.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-make-unblocking-receive/m-p/373934#M12397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Garabo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks a lot. i have one more problem in serial side also. in Ethernet to serial example project " tx_task" also waiting for data from serial. here also i need non blocking method , how to do that one.? if any function there to check data available on serial buffer or not. if available condition only i want to receive data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; count = fread(buff, 1, 1, ser_device); &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;so this one waiting for 1 data from serial side.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sudhakar.p&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 04:41:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-make-unblocking-receive/m-p/373934#M12397</guid>
      <dc:creator>sudhakarp</dc:creator>
      <dc:date>2015-04-08T04:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to make unblocking receive.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-make-unblocking-receive/m-p/373935#M12398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am afraid that the IO Subsystems configured to work with interrupt mode. You will need to use the the UART Peripheral driver rather than the IO Subsystem. The non-blocking function are UART_DRV_SendData() and UART_DRV_ReceiveData(). For more information about these functions can be found in the document ..\KSDK_1.1.0\doc\Kinetis SDK v.1.1 API Reference Manual.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your question.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Garabo&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, 13 Apr 2015 15:50:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-make-unblocking-receive/m-p/373935#M12398</guid>
      <dc:creator>Luis_Garabo</dc:creator>
      <dc:date>2015-04-13T15:50:12Z</dc:date>
    </item>
  </channel>
</rss>

