<?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 - LWIP Limit</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-LWIP-Limit/m-p/584021#M20958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rosfudum on Tue Mar 29 07:24:37 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to develop my Web Server using LPC1768 microcontroller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've started my project with webserver demo without RTOS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything is working fine. LWIP is a great open source project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I've got some limits I'm not able to workaround.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created my html web page (very light) and I use &lt;/SPAN&gt;&lt;A href="http://http://www.w3schools.com/html/html_forms.asp"&gt;FORM&lt;/A&gt;&lt;SPAN&gt; to post parameters from browser to server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes it doesn's work and I used wireshark to figured out why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to&lt;/SPAN&gt;&lt;A href="http://http://lwip.wikia.com/wiki/Raw/TCP"&gt; LWIP wiki &lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; I got it's not possible to enqueue more than 2 frames.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean, when client send some data, in payload field, LWIP server enqueues up to two frames and invokes onReceive() callback function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my function onReceive() I parse html POST data and store values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sniffing with Wireshark I figured out when I doen's work it's because html POST is divided in 3 parts and it's consistent with my debugging.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When browser (chrome or firefox) send POST frame in three parts, my application lose last packet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's really annnoyng just because POST parameters are located at the end of TCP frame, so, I can get all s**t header, but I lose data I need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I enqueue more than two frame? Or, alternatively, is it possibile to say to browser to enqueue POST data before headers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your support!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:23:16 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:23:16Z</dc:date>
    <item>
      <title>LPC1768 - LWIP Limit</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-LWIP-Limit/m-p/584021#M20958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rosfudum on Tue Mar 29 07:24:37 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to develop my Web Server using LPC1768 microcontroller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've started my project with webserver demo without RTOS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything is working fine. LWIP is a great open source project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I've got some limits I'm not able to workaround.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created my html web page (very light) and I use &lt;/SPAN&gt;&lt;A href="http://http://www.w3schools.com/html/html_forms.asp"&gt;FORM&lt;/A&gt;&lt;SPAN&gt; to post parameters from browser to server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes it doesn's work and I used wireshark to figured out why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to&lt;/SPAN&gt;&lt;A href="http://http://lwip.wikia.com/wiki/Raw/TCP"&gt; LWIP wiki &lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; I got it's not possible to enqueue more than 2 frames.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean, when client send some data, in payload field, LWIP server enqueues up to two frames and invokes onReceive() callback function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my function onReceive() I parse html POST data and store values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sniffing with Wireshark I figured out when I doen's work it's because html POST is divided in 3 parts and it's consistent with my debugging.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When browser (chrome or firefox) send POST frame in three parts, my application lose last packet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's really annnoyng just because POST parameters are located at the end of TCP frame, so, I can get all s**t header, but I lose data I need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I enqueue more than two frame? Or, alternatively, is it possibile to say to browser to enqueue POST data before headers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your support!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:23:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-LWIP-Limit/m-p/584021#M20958</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 - LWIP Limit</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-LWIP-Limit/m-p/584022#M20959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rosfudum on Thu Mar 31 04:03:38 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found a solution by myself and I hope it can help someone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I enabled LWIP_HTTPD_SUPPORT_POST define in file httpd.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It enables few POST function that are not implemented in C code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to &lt;/SPAN&gt;&lt;A href="http://http://control-1wire.googlecode.com/svn/trunk/Demo/WIN32-MSVC-lwIP/lwIP_Apps/lua_cgi.c"&gt;this source code&lt;/A&gt;&lt;SPAN&gt; I was able to write my routines of previously unimplemented code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now all of POST parameters coming from client arrive in callback httpd_post_receive_data&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:23:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-LWIP-Limit/m-p/584022#M20959</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 - LWIP Limit</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-LWIP-Limit/m-p/584023#M20960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:06:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-LWIP-Limit/m-p/584023#M20960</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:06:34Z</dc:date>
    </item>
  </channel>
</rss>

