Re: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17

2010-12-15 Thread Simon Goldschmidt
Kieran Mansley wrote: > On 15 Dec 2010, at 17:37, goldsi...@gmx.de wrote: > >>> I increased MEMP_NUM_NETBUF to 30 and no help >> >> That's true: the socket- and netconn-API both don't use netbufs for sending >> TCP data. > > My apologies; I was going from memory and turns out I was wrong. W

Re: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17

2010-12-15 Thread Kieran Mansley
On 15 Dec 2010, at 17:37, goldsi...@gmx.de wrote: > > I increased MEMP_NUM_NETBUF to 30 and no help > > That's true: the socket- and netconn-API both don't use netbufs for sending > TCP data. My apologies; I was going from memory and turns out I was wrong. Thanks for the correction! Kieran _

Re: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17

2010-12-15 Thread goldsi...@gmx.de
Chen wrote: > lwipopts.h already includes "debug.h", and there is no def for DBG_ON, unless you meant DBG_ON is the same as LWIP_DBG_ON, etc: The debug macros have been renamed to include the LWIP_ prefix back in 1.3.0, so the lwipopts.h you are using has been designed for 1.2.0, and that's a

RE: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17

2010-12-15 Thread Andrew Foster
: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17 Chen wrote: > lwipopts.h already includes "debug.h", and there is no def for DBG_ON, unless you meant DBG_ON is the same as LWIP_DBG_ON, etc: The debug macros have been renamed to include the LWIP_ prefix back in 1.3.0, so the lwipo

RE: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17

2010-12-15 Thread Bill Auerbach
auerbach=arrayonline@nongnu.org] On Behalf Of Chen Sent: Wednesday, December 15, 2010 11:28 AM To: lwip-users@nongnu.org Subject: RE: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17 lwipopts.h already includes "debug.h", and there is no def for DBG_ON, unless you meant DBG_ON i

RE: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17

2010-12-15 Thread Chen
5 Dec 2010 10:37:20 -0500 From: "Bill Auerbach" Subject: RE: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17 To: "'Mailing list for lwIP users'" Message-ID: <003f01cb9c6d$f689deb0$e39d9c...@com> Content-Type: text/plain; charset="us-ascii" DBG_

RE: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17

2010-12-15 Thread Andrew Foster
, December 15, 2010 10:25 To: lwip-users@nongnu.org Subject: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17 The reason stat_display is not working is because DBG_OFF (maybe more) @lwipopts.h is not defined anywhere in lwip's files. Which is not a problem until I added #define LWIP_DEBUG to de

RE: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17

2010-12-15 Thread Bill Auerbach
anything. From: lwip-users-bounces+bauerbach=arrayonline@nongnu.org [mailto:lwip-users-bounces+bauerbach=arrayonline@nongnu.org] On Behalf Of Chen Sent: Wednesday, December 15, 2010 10:25 AM To: lwip-users@nongnu.org Subject: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17 The

[lwip-users] Re: lwip-users Digest, Vol 88, Issue 17

2010-12-15 Thread Chen
The reason stat_display is not working is because DBG_OFF (maybe more) @lwipopts.h is not defined anywhere in lwip's files. Which is not a problem until I added #define LWIP_DEBUG to debug.h Unfortunately, AVR32 Studio's compiler didn't realize I changed debug.h so it didn't bother to recompil

[lwip-users] Re: lwip-users Digest, Vol 88, Issue 17

2010-12-15 Thread Chen
I increased MEMP_NUM_NETBUF to 30 and no help #define MEMP_NUM_NETBUF 30 #define MEMP_NUM_NETCONN4 #define PBUF_POOL_SIZE 30 #define TCP_SND_BUF 3 On 15 Dec 2010, at 13:29, Chen wrote: > I am using lwip_send to send out the data. In that case MEMP_NUM_

Re: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17

2010-12-15 Thread Kieran Mansley
On 15 Dec 2010, at 13:29, Chen wrote: > I am using lwip_send to send out the data. In that case MEMP_NUM_NETBUF is (I think) relevant, and you should increase it. Kieran ___ lwip-users mailing list lwip-users@nongnu.org http://lists.nongnu.org/mailman

[lwip-users] Re: lwip-users Digest, Vol 88, Issue 17

2010-12-15 Thread Chen
I am using lwip_send to send out the data. I will try to find out more about stat_display > 1) I am using TCP API. That isn't quite what I meant. To send data do you call tcp_write() or netconn_write() or send() for example? If you use tcp_write() directly then MEMP_NUM_NETBUF will have no ef

Re: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17

2010-12-14 Thread Kieran Mansley
On 14 Dec 2010, at 17:56, Chen wrote: > 1) I am using TCP API. That isn't quite what I meant. To send data do you call tcp_write() or netconn_write() or send() for example? If you use tcp_write() directly then MEMP_NUM_NETBUF will have no effect and is not your problem. If you call the fun

[lwip-users] Re: lwip-users Digest, Vol 88, Issue 17

2010-12-14 Thread Chen
Hi Kieran, Thanks for your reply! Here is the answer to your questions: 1) I am using TCP API. 2) I didn't change MEMP_NUM_TCP_SEG since you didn't think it was the problem anyway. 3) Changing #define MEMP_NUM_NETBUF 3 to #define MEMP_NUM_NETBUF 30 did not help. 4) Sorry, but I don't kn