Re: [lwip-users] Stability of master branch code

2015-05-04 Thread Robert Deschambault
Sorry I am new to enabling stats. I get linker errors when I set LWIP_STATS to 1, it is complaining about missing symbols. Is there a guide somewhere on how to set up the lwipopts.h file? On Mon, May 4, 2015 at 3:58 PM, goldsi...@gmx.de wrote: > Robert Deschambault wrote: > >> [..] We have not

Re: [lwip-users] Unix port does not work on Ubuntu 14.04

2015-05-04 Thread Sylvain Rochet
Hello Edgar, On Mon, May 04, 2015 at 11:16:40PM +0200, Sylvain Rochet wrote: > Hello Edgar, > > On Mon, May 04, 2015 at 10:01:51AM +0200, Edgar Bonet wrote: > > > > # First, try the minimal project > > cd lwip-contrib/ports/unix/proj/minimal > > make # -> fail > > # fix the comp

Re: [lwip-users] Unix port does not work on Ubuntu 14.04

2015-05-04 Thread Sylvain Rochet
Hello Edgar, On Mon, May 04, 2015 at 10:01:51AM +0200, Edgar Bonet wrote: > > # First, try the minimal project > cd lwip-contrib/ports/unix/proj/minimal > make # -> fail > # fix the compile errors > make # -> success > sudo ./echop # test -> fail Indeed, just checked,

Re: [lwip-users] lwip APIs in a multithreaded enviroment

2015-05-04 Thread mike
On 15-05-04 04:31 PM, goldsi...@gmx.de wrote: > From reading the code, I also think they are. I wonder if anyone should > tell them. It's sad that there are so many bad examples of using lwIP > wrong out there... Or perhaps, to put the problem in a different light, I would say that I find it s

Re: [lwip-users] Stability of master branch code

2015-05-04 Thread Robert Deschambault
First chance I get I will do the experiment you suggested. I will use the same sources I have from the master branch. They covered commits [338feef,ee833ea,6c3f6cf], I pulled them in February. If I get the same result, I will pull the latest sources to see if I have the same problem. On Mon, Ma

Re: [lwip-users] lwip APIs in a multithreaded enviroment

2015-05-04 Thread goldsi...@gmx.de
Sylvain Rochet wrote: Strangely enough, the example project our modbus client is based on ("freemodbus-v1.5.0\demo\STR71XTCP" from http://sourceforge.net/projects/freemodbus.berlios/files/freemodbus-v1.5.0.zip) also uses raw API and seems to run its own thread. They are doing it wrong. period.

Re: [lwip-users] Unix port does not work on Ubuntu 14.04

2015-05-04 Thread goldsi...@gmx.de
Edgar Bonet wrote: PS: This is the second time I am sending this message. First time was last Thursday, and it did not get through. At this point I assume it has been dropped, not just delayed. This time I am omitting the patches that where originally attached, on the assumption that the list ser

Re: [lwip-users] Unix port does not work on Ubuntu 14.04

2015-05-04 Thread Edgar Bonet
Hi! Sylvain wrote: > Just a quick thought, what's your eth0 or wlan0 or any other interface > subnet ? IIRC, eth0: 147.173.64.0/22. Not completely sure about the /22. Actually, I also have eth1 configured on 192.168.0.0/24 via the Network Manager, but it doesn't seem to interfere: the Network Ma

Re: [lwip-users] Stability of master branch code

2015-05-04 Thread goldsi...@gmx.de
Robert Deschambault wrote: [..] We have noticed that when we use the v1.4.1 milestone release it runs as long as we care to test. When we use the sources from the lwip master branch, it runs for about 18 hours. What is odd is that it isn't apparent that anything bad has happened, the threads

Re: [lwip-users] PPP server problem

2015-05-04 Thread Sylvain Rochet
Hi, On Mon, May 04, 2015 at 07:31:52PM +, l...@moog.com wrote: > Hi Sylvain, > > NO_SYS = 0. I am using freeRTOS. You didn't answer fully, which PPPoS input path are you using ? There are 3 of them and only one of them is right for NO_SYS = 0. > I increased both main lwIP thread and my

Re: [lwip-users] Unix port does not work on Ubuntu 14.04

2015-05-04 Thread Sylvain Rochet
Hello Edgar, On Mon, May 04, 2015 at 10:01:51AM +0200, Edgar Bonet wrote: > > ip_route: No route to 192.168.0.1 > > This makes little sense to me: 192.168.0.1 is on the same local net > (192.168.0.0/24) than simhost itself, how come it cannot find the > route? Just a quick t

Re: [lwip-users] PPP server problem

2015-05-04 Thread LMao
Hi Sylvain, NO_SYS = 0. I am using freeRTOS. I increased both main lwIP thread and my PPP application thread stack size from 200 to 500 and problem not solved. The message after enabling PRINTPKT_SUPPORT is as following: ppp phase changed[1]: phase=0.. ppp_listen[1].. ppp phase changed[1]: pha

Re: [lwip-users] lwip APIs in a multithreaded enviroment

2015-05-04 Thread Sylvain Rochet
Hello Daniel, On Mon, May 04, 2015 at 03:16:13PM +, Lunkewitz, Daniel wrote: > Dear Community, > > we operate a webserver, a modbus client and an UDP broadcaster in our > FreeRTOS application. Each service uses its own thread. The webserver > uses the netconn API. Both, the modbus client a

Re: [lwip-users] PPP server problem

2015-05-04 Thread Sylvain Rochet
Hi Charles, On Mon, May 04, 2015 at 06:16:54PM +, l...@moog.com wrote: > Hi Sylvain, > > I try to use PPP server on AT91SAM7x chip and it failed authentication > (both sides using PAP). Here's the debug message from a Linux (PPP > client) followed by lwIP PPP debug message. Interesting thi

[lwip-users] PPP server problem

2015-05-04 Thread LMao
Hi Sylvain, I try to use PPP server on AT91SAM7x chip and it failed authentication (both sides using PAP). Here's the debug message from a Linux (PPP client) followed by lwIP PPP debug message. Interesting thing is the PPP authentication failure also causes the whole lwIP stack stop working. I

[lwip-users] lwip APIs in a multithreaded enviroment

2015-05-04 Thread Lunkewitz, Daniel
Dear Community, we operate a webserver, a modbus client and an UDP broadcaster in our FreeRTOS application. Each service uses its own thread. The webserver uses the netconn API. Both, the modbus client and the UDP broadcaster use raw API. We stumbled upon this information: "The lwIP core isn't

[lwip-users] Stability of master branch code

2015-05-04 Thread Robert Deschambault
We have been doing some work with stress testing an application developed for lwip on our target board. It is basically a TCP echo server, UDP echo server, and a custom server that works much like a TCP echo service. We connect a couple clients to our custom server and and run echo tests occasion

[lwip-users] Unix port does not work on Ubuntu 14.04

2015-05-04 Thread Edgar Bonet
Hello every one! I am new to lwIP and to this list. Right now I am just trying to get the Unix port work on my box (Ubuntu 14.04 on x86_64) in order to get started with lwIP. My understanding is that echop (minimal project) and unixsim (the development platform, according to the README) are good