Re: [lwip-users] lwIP performance with FreeRTOS

2012-02-28 Thread Chris Ponder
Thanks Simon, Our application is really one of throughput, taking data in and spitting it out as UDP packets on the Ethernet as fast as we can. Unfortunately we do have other tasks that need to run while this is happening. Packets coming the other way number less than 100 for the 20,000 to 30,0

Re: [lwip-users] lwIP performance with FreeRTOS

2012-02-28 Thread Simon Goldschmidt
Chris Ponder wrote: > I have been wondering if > there is a way of using the pbuf interface and encapsulating the whole lwIP > plus send code in a single thread, but so far this has proved an elusive > target. You can let the code that creates pbufs (and sends them) run in tcpip_thread by callin

Re: [lwip-users] lwIP performance with FreeRTOS

2012-02-28 Thread Simon Goldschmidt
"Simon Goldschmidt" wrote: > Oh, and while looking at the lwIP sources, I saw you'd better call > netconn_sendto() instead of netconn_connect() and netconn_send(), as it is > implemented with only 1 call into the core instead of 2. Plus I jstu noticed that netconn_connect() doesn't use the core-l

Re: [lwip-users] lwIP performance with FreeRTOS

2012-02-28 Thread Simon Goldschmidt
"Simon Goldschmidt" wrote: > "Simon Goldschmidt" wrote: > > Oh, and while looking at the lwIP sources, I saw you'd better call > > netconn_sendto() instead of netconn_connect() and netconn_send(), as it > is > > implemented with only 1 call into the core instead of 2. > > Plus I jstu noticed tha

Re: [lwip-users] lwIP performance with FreeRTOS

2012-02-28 Thread Chris Ponder
That is awesome, thank you Simon. With sendto, empty packet sending rose to 81.99Mbps which is much better. It occurred to me that we actually only have one destination and once set it rarely changes so I switched back to netconn_send/connect but moved the connect outside the main send loop, pe

Re: [lwip-users] lwIP performance with FreeRTOS

2012-02-28 Thread Mason
Chris Ponder wrote: [snip] Chris, Could you please make you e-mail client thread correctly? -- Regards. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] lwIP performance with FreeRTOS

2012-02-28 Thread Chris Ponder
What is it that you want the email client to do that it is not doing, or what is it doing that it shouldn't? Chris Chris Ponder Tritech International Limited Morecambe Road, Ulverston Cumbria LA12 0BH ++ 44 (0)1229 586672 (tel) ++ 44 (0)1229 586696 (fax) DDI:++ 44 (0)(0)1229 484261 www.tr

Re: [lwip-users] lwIP performance with FreeRTOS

2012-02-28 Thread Simon Goldschmidt
Chris Ponder wrote: > Any chance you could send those files to me directly, my company's web > policy is stopping me downloading the tar.gz file from the git repo and > TortoiseGIT, so I can't actually get them :( I assume that they are ok to use > with 1.4.0? Sending the files is not a problem,

Re: [lwip-users] lwIP performance with FreeRTOS

2012-02-28 Thread Mason
Chris Ponder wrote: > What is it that you want the email client to do that it is not doing, > or what is it doing that it shouldn't? Your latest message (this one I am replying to) threads correctly, as it provides a valid "References:" header field. Your previous messages, on the other hand, di

Re: [lwip-users] lwIP performance with FreeRTOS

2012-02-28 Thread Chris Ponder
So is this one correct or not? -Original Message- From: Mason Sent: 28 February 2012 12:54 To: Mailing list for lwIP users Subject: Re: [lwip-users] lwIP performance with FreeRTOS Chris Ponder wrote: > What is it that you want the email client to do that it is not doing, > or what is it

Re: [lwip-users] lwIP performance with FreeRTOS

2012-02-28 Thread Mason
Chris Ponder wrote: > So is this one correct or not? Nope, no References header. It seems Microsoft could not care less about standards... (I wish people didn't use their tools. Sigh.) > -Original Message- > From: Mason > Sent: 28 February 2012 12:54 > To: Mailing list for lwIP users

Re: [lwip-users] lwIP performance with FreeRTOS

2012-02-28 Thread Chris Ponder
Lol! I agree. It would appear to be the signature removal I asked IT to set up for me, I will have a word with them. My apologies for any inconvenience. Chris -Original Message- From: lwip-users-bounces+chris-ponder=tritech.co...@nongnu.org [mailto:lwip-users-bounces+chris-ponder=tritec

Re: [lwip-users] lwIP performance with FreeRTOS

2012-02-28 Thread Chris Ponder
Using tcpip_callback only gave 65.4 Mbps :( ... /* Infinite loop */ while (1) { // Store then increment the packet count *puiPacketNumber = uiPacketCount++; szPacket[4] = (unsigned char)NULL; tcpip_callback(

Re: [lwip-users] lwIP performance with FreeRTOS

2012-02-28 Thread Simon Goldschmidt
Chris Ponder wrote: > Using tcpip_callback only gave 65.4 Mbps :( > ... > /* Infinite loop */ I'm not sure using an infinite loop is the best example: don't you call tcpip_callback too often? Also, you don't check the return value... I'd rather let your ISR check if a call to 'udpSendDa

Re: [lwip-users] Need info !!

2012-02-28 Thread David Empson
"Simon Goldschmidt" wrote: David Empson wrote: LWIP doesn't have a makefile because it is not a standalone application and cannot be used directly in the form it is distributed. [..] Excellent answer. May I copy it to the (yet empty) FAQ section on the wiki? Certainly. I think I've alrea

Re: [lwip-users] Need info !!

2012-02-28 Thread Simon Goldschmidt
David Empson wrote: > I think I've already mentioned this, but there should be a prominent link > to > the Wiki from the Savannah LWIP page, Yup. I'm not really happy with the current starting page, I don't think we need the license in full text there. I'm not sure how to change that page, thou