Re: [lwip-users] Acknowledge Problem

2016-04-23 Thread Dirk Ziegelmeier
Maybe a simple way to access lwIP functions in a safe way is to use core locking mode (LWIP_TCPIP_CORE_LOCKING). Acquire lwIP core lock (LOCK_TCPIP_CORE() / UNLOCK_TCPIP_CORE()) before you perform operations on any lwIP structure or call to lwIP functions. I just saw these functions are in tcpip_p

Re: [lwip-users] Acknowledge Problem

2016-04-22 Thread Sergio R. Caprile
RAW API functions must be called in the same thread as the lwIP core functions. In fact, afaik, except for netconn and socket API, all lwIP functions must be called from the same thread. You can run RAW API apps on the lwIP thread, and netconn/socket API apps on other threads. There is a runnin

Re: [lwip-users] Acknowledge Problem

2016-04-22 Thread martin5523
Hello Sergio, sorry for that confusion, I will try to answer your remaining questions. We're using FreeRTOS 8.2.3, regular lwIP 1.4.1, netconn API and the fsdata.c file system from raw API on our XMC4500. Did you check that with a known-good application ? No, we can't, we have no 'known-good appl

Re: [lwip-users] Acknowledge Problem

2016-04-18 Thread Sergio R. Caprile
>> Did you check that with a known-good application ? > *Not yet.* Well..., you should. Did I say 'should' ? You _must_ >> What version of lwIP are you using ? > *We used lwip 1.4.1 and also > source from git.savannah.gnu.org (commit #70f3e5e). In both versions > the problem exists.* I would sa

Re: [lwip-users] Acknowledge Problem

2016-04-12 Thread martin5523
12_04_16_webpage_with_picture.pcapng After I postet the WireShack file of a small webpage without picture, now the case with a webpage with picture. As we wrote in the first post, one of the two transmitted tcp segm

Re: [lwip-users] Acknowledge Problem

2016-04-08 Thread martin5523
08_04_16_small_webpage.pcapng We added a WireShark file where you can see our errors. It's still the problem receiving a small web page from the webserver on the XMC4500. When we program the device with our code, we receive

Re: [lwip-users] Acknowledge Problem

2016-04-07 Thread martin5523
Sorry, we didnĀ“t notice that you replied to our question here. So we wrote two weeks later a bug report. https://savannah.nongnu.org/bugs/index.php?47305 (this link is just for your information...) Unfortunately we were in march busy with other problems. But this week we start working again at t

Re: [lwip-users] Acknowledge Problem

2016-02-15 Thread Sergio R. Caprile
Martin, you have an ethernet network, an ethernet controller, a driver, a port of lwIP, and your application. Please post the actual wireshark capture file, not a snapshot. Your snapshot shows retransmissions and duplicated ACKs, that is usually a sign that frames are being lost somewhere. I would

[lwip-users] Acknowledge Problem

2016-02-15 Thread Martin Datzmann
Dear all, In my application I want to serve a webpage with 2 pictures --> 3 TCP-Ports necessary. Sometimes it works well, but sometimes there is a sending Problem (tcp_out.c ?) with the pictures. You can see the mistake in the screen-shot of the wireshark-recording. After opening the connection,