<?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>LPC Microcontrollers中的主题 LPC1768 with LWIP drops packages makes sockets not response</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-with-LWIP-drops-packages-makes-sockets-not-response/m-p/523987#M6623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mcs-guy on Wed Jan 15 07:44:27 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Supporty request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently implementing a Telnet server on a LPC1768. with LPCopen V1.03 and FreeRTOS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The telnet server is working fine until the EMAC drops some packets due to heavy traffic on the ethernet link.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can accept that some packages are dropped and data is lost but the socket locks up and never return from &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bytes_recv = lwip_recv(sockfd, &amp;amp;in_char, sizeof(in_char), 0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the EMAC-debug option enabled I can see that the pbuf are recovered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the recv function never return.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The lwip stacked seesm to hang up in the time out timers : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stmf calling h=tcpip_tcp_timer arg=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stmf calling h=ip_reass_timer arg=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The tcp_echo fucntion recovers fine from data loss.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like the lwip_recv called to return with the data send after the moment packages are lost. The missing data should not be a problem for my application. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does somebidy know how to solve this problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:06:43 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:06:43Z</dc:date>
    <item>
      <title>LPC1768 with LWIP drops packages makes sockets not response</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-with-LWIP-drops-packages-makes-sockets-not-response/m-p/523987#M6623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mcs-guy on Wed Jan 15 07:44:27 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Supporty request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently implementing a Telnet server on a LPC1768. with LPCopen V1.03 and FreeRTOS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The telnet server is working fine until the EMAC drops some packets due to heavy traffic on the ethernet link.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can accept that some packages are dropped and data is lost but the socket locks up and never return from &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bytes_recv = lwip_recv(sockfd, &amp;amp;in_char, sizeof(in_char), 0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the EMAC-debug option enabled I can see that the pbuf are recovered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the recv function never return.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The lwip stacked seesm to hang up in the time out timers : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stmf calling h=tcpip_tcp_timer arg=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stmf calling h=ip_reass_timer arg=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The tcp_echo fucntion recovers fine from data loss.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like the lwip_recv called to return with the data send after the moment packages are lost. The missing data should not be a problem for my application. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does somebidy know how to solve this problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:06:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-with-LWIP-drops-packages-makes-sockets-not-response/m-p/523987#M6623</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:06:43Z</dc:date>
    </item>
  </channel>
</rss>

