Re: [lwip-users] webserver problem

2013-07-09 Thread Nikolas Karakotas
Hi, Try and increase your MEM_SIZE. Nick -Original Message- From: pcu Sent: Monday, July 08, 2013 6:11 PM To: lwip-users@nongnu.org Subject: [lwip-users] webserver problem Hello, I work with STM32F217 + LWIP 1.3.2 + FreeRTOS 6.1.0 I have several services in parallel: One webserver (

Re: [lwip-users] webserver problem

2013-07-09 Thread Noam weissman
Hi, As default the MSS size is defined to be 1500 bytes. This is too large for embedded. Try to reduce it to 536 and increase the total number of PCBS. These are my settings: /* MEM_SIZE: the size of the heap memory. If the application will send a lot of data that needs to be copied, this sho

Re: [lwip-users] webserver problem

2013-07-09 Thread Pomeroy, Marty
>>But If I connect other services, all the pages from webserver are not loaded. This does look like a resource problem somehow. Possibly a timeout firing before the jquery response completes (not enough CPU power), or insufficient memory to respond, that sort of thing. Comment to Noam: >> As

Re: [lwip-users] webserver problem

2013-07-09 Thread Noam weissman
Hi Marty, You are absolutely correct it is system dependent. As you can see from my reply, I used a 7K bytes pool for LwiP. 16M byte is a super computer compared with what I do. I worked with ARM9 with 96K RAM :-) With just 7K RAM dedicated to LwIP pool I was able to run a WEB server with JQU

Re: [lwip-users] webserver problem

2013-07-09 Thread Vincent Cui
Dear: 7K RAM for lwIP pool is enough, I use cortex m3 with 128K ram, I allocate 7KB for it. My web server is more heavy than yours. My largest size of file is upto 170KB. It works well too . you should check the RCV_BUFFER NUMBER AND SND_BUFFER NUMBER for it. In my system, I define them to 2, a

Re: [lwip-users] webserver problem

2013-07-09 Thread Nikolas Karakotas
It’s a hole different story if it’s a single file aka connection or serving many. I have seen this issue with my implementation. Not having enough heap and thus a file wasn’t sent. I use a 4K heap and serving the jquery 91k with multiple connections but have optimised the drivers a lot. -O

Re: [lwip-users] webserver problem

2013-07-09 Thread Pomeroy, Marty
>> Now let me ask you something. If you have 16M byte RAM why do you use LwIP. >> Use Linux with FULL BSD TCP stack. Much better. We have some real-time constraints, such as a touch screen that we want real responsive. There is also a more deeply embedded CPU with only 500K and it's easier to

Re: [lwip-users] UDP reception problem

2013-07-09 Thread Peter LM
Actually it was not a chained pbuf problem since it is perfectly working for UDP. I guess my TCP server code is wrong... I'm gonna improve that. Thank you for your advices !! Peter -- View this message in context: http://lwip.100.n7.nabble.com/UDP-reception-problem-tp21624p21708.html Sent fro

Re: [lwip-users] Problem receiving Multicast packet

2013-07-09 Thread seba . segura
Hi, I don't clear this problem, I have difficulties to understand why the recvfrom() function still blocking when it receive about 2700 packet of data... I have check all the buffer size, it seems it's a transmit message problem in the fonction netconn_recv_data() in this line : sys_arch_mbox

Re: [lwip-users] windows 7, IPv6, and WiFi

2013-07-09 Thread Zach Smith
Thank you for the response. Unfortunately we have tried these things and still can't get it to work. Interestingly, we can't get communication with our setup like this: [Win7 PC] --- (wired Ethernet) --- (Intranet) ---(wired Ethernet) --- [wireless router] --- (WiFi) --- [Embedded device] But

Re: [lwip-users] windows 7, IPv6, and WiFi

2013-07-09 Thread Pomeroy, Marty
>> Interestingly, we can't get communication with our setup like this: >> [Win7 PC] --- (wired Ethernet) --- (Intranet) ---(wired Ethernet) --- [wireless router] --- (WiFi) --- [Embedded device] >> But if we try a setup like this then it works: >> [Win7 PC] --- (WiFi) --- [Wireless Router] --- (E

Re: [lwip-users] windows 7, IPv6, and WiFi

2013-07-09 Thread Zach Smith
Redpine Signals Connect-io-n modules -Original Message- From: lwip-users-bounces+zsmith=campbellsci@nongnu.org [mailto:lwip-users-bounces+zsmith=campbellsci@nongnu.org] On Behalf Of Joe Dupre Sent: Monday, July 08, 2013 4:14 PM To: Mailing list for lwIP users Subject: Re: [lwip-u

Re: [lwip-users] webserver problem

2013-07-09 Thread pcu
I tried to change the parameters but without success. In same time I port to lwip 1.4.0, and I corrected some minors bugs in UDP services by changing "rcv" by "rcvfrom" but it didn't change anything. The problem appears only when the others services are activated. In webserver only it works corre

Re: [lwip-users] webserver problem

2013-07-09 Thread pcu
I did the test back with the small webserver example and html files from ST and this is the same problem. However the files size are smaller. Some files are not loaded. And after some refresh from Chrome, the webserver thread is crashed but the rest of the card is working. Pierre. -- View this

Re: [lwip-users] windows 7, IPv6, and WiFi

2013-07-09 Thread Zach Smith
We've tried a PC that fails in the 1st topology and it works in the 2nd topology. We'll double check the addresses and stuff. I think you are right about Wireshark is seeing the packet but the stack is not passing it on for some reason but I can't figure out why. -Zach -Original Message--

Re: [lwip-users] windows 7, IPv6, and WiFi

2013-07-09 Thread Ivan Delamer
Sounds like a routing problem to me. Try a PC<->PC IPv6 connection through your Intranet and see if that works. PS: I'm using redpine modules too. Cheers Ivan Date: Tue, 9 Jul 2013 15:02:17 + From: Zach Smith To: Mailing list for lwIP users Subject: Re: [lwip-users] windows 7, IPv6, and

Re: [lwip-users] Problem receiving Multicast packet

2013-07-09 Thread Claudius Zingerli
Hi Seba, Sounds like a lower layer problem. If you are sure, the packets arrive at your STM32, check its MII counters, Interrupts (Flags+Breakpoint), DMA flags (RBUS!) Claudius On 7/9/2013 3:30 PM, seba.seg...@free.fr wrote: Hi, I don't clear this problem, I have difficulties to understand