lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] lwip-users Digest, Vol 129, Issue 3


From: address@hidden
Subject: Re: [lwip-users] lwip-users Digest, Vol 129, Issue 3
Date: Thu, 8 May 2014 08:46:36 +0800


Thank you for your answer.
 
I have found my fault.
 
in tcp callback , i had not call tcp_recved(tcp, p->tot_len);
 
so tcp slip window last reduce to zero.
 
Then client(Windows7) found server(target board)'s slip window is zero,
he send a ack, and transport stop.
 
 

With kind regards

-------------------------------

田智洲

TEL : 15501024303

Address : Haidian,Beijing,100091,China
 
Date: 2014-05-07 23:24
Subject: lwip-users Digest, Vol 129, Issue 3
Send lwip-users mailing list submissions to
address@hidden
 
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.nongnu.org/mailman/listinfo/lwip-users
or, via email, send a message with subject or body 'help' to
address@hidden
 
You can reach the person managing the list at
address@hidden
 
When replying, please edit your Subject line so it is more specific
than "Re: Contents of lwip-users digest..."
 
 
Today's Topics:
 
   1. Transport terminal Using Tcp - ask for help~ (address@hidden)
   2. Re: Transport terminal Using Tcp - ask for help~
      (Sergio R. Caprile)
   3. Re: How to add lwIP support for nios2 processor.
      (Andreas Bachmann)
   4. Re: Transport terminal Using Tcp - ask for help~ (Pomeroy, Marty)
 
 
----------------------------------------------------------------------
 
Message: 1
Date: Wed, 7 May 2014 14:08:03 +0800
From: "address@hidden" <address@hidden>
To: lwip-users <address@hidden>
Subject: [lwip-users] Transport terminal Using Tcp - ask for help~
Message-ID: <address@hidden>
Content-Type: text/plain; charset="gb2312"
 
Hello everyone:
i encounter a problem when i use tcp transport.
No.TimeSourceDestinationProtocolLengthInfo
(1)2562.210092192.168.1.20192.168.1.60TCP571[TCP segment of a reassembled PDU]
(2)2572.212896192.168.1.60192.168.1.20TCP64[TCP segment of a reassembled PDU]
(3)2582.414096192.168.1.20192.168.1.60TCP5456864 ? cisco-sccp [ACK] Seq=65157 Ack=1288 Win=16054 Len=0
(4)2597.214311192.168.1.20192.168.1.60TCP423[TCP segment of a reassembled PDU]
 
 
192.168.1.20 is host(Windows) and 192.168.1.60 is my target board(lwip).
 
in (1) and (2), transport is normal.
suddenly, a ack(3) come, then transport terminal
after about five seconds later, host retransmission.
 
why do not lwip answer the ack(3) ? thanks anyway
 
 
 
 
With kind regards
-------------------------------
???
TEL : 15501024303
E-mail : address@hidden
Address : Haidian,Beijing,100091,China
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nongnu.org/archive/html/lwip-users/attachments/20140507/45f5450c/attachment.html>
 
------------------------------
 
Message: 2
Date: Wed, 07 May 2014 10:38:19 -0300
From: "Sergio R. Caprile" <address@hidden>
To: address@hidden
Subject: Re: [lwip-users] Transport terminal Using Tcp - ask for help~
Message-ID: <address@hidden>
Content-Type: text/plain; charset=ISO-8859-1
 
I would like to try to help you, but honestly I don't understand
what are you doing
what is not working
 
I guess that by "answer the ACK" you mean your application is supposed
to send something in response to something and you think it should do it
when the ACK comes. Well, that would be true if your application is well
written.
When lwIP receives the TCP ACK, among other things, it will call the
function YOU provided to be called by setting up a callback via
tcp_sent(). Did you ?
Check the code in the contrib area, smtp.c and httpserver_raw/httpd.c
are good examples on how to use the TCP functions.
 
--
 
 
 
 
------------------------------
 
Message: 3
Date: Wed, 07 May 2014 15:20:40 +0200
From: Andreas Bachmann <address@hidden>
To: address@hidden, Mailing list for lwIP users
<address@hidden>
Subject: Re: [lwip-users] How to add lwIP support for nios2 processor.
Message-ID: <address@hidden>
Content-Type: text/plain; charset=UTF-8; format=flowed
 
Hi Ritesh,
 
First, there is a difference between Quartus resp. Nios II Embedded
Design Suite (EDS) [= Eclipse + GNU Tools] and the Nios II processor.
Altera Quartus resp. EDS is now at version 13.1. The release date of
version 9.1 was on November 2009 (long time ago) and version 9.0 even
longer. But the Nios II processor doesn't change in that time.
 
I found some lwIP-drivers for Nios II somewhere on the net but don't
find the source now. Attached are links to own examples:
http://bachi.te-clan.ch/lwip_nios2_example.tar.gz
 
The example uses no operations system (NO_SYS=1) and polls the Ethernet
driver in the mainloop. The difference between OS and NON-OS is
described here:
http://lwip.wikia.com/wiki/LwIP_with_or_without_an_operating_system
The example itself is not compileable (among other things, because I
can't release the VHDL part) but shows how to used lwip with Nios II.
 
Furthermore, you have to know what VHDL/Verilog part is used: a
self-implemented core, the Triple-Speed-Ethernet (TSE) MAC from Altera,
a different IP-core or an external MAC-PHY-chip (ex. LAN91C11). This is
important for the Ethernet driver.
 
In principle you have two directories:
- the common lwip-source that doesn't have to be changed
- the lwip-port (only header-files) with the Ethernet-driver, that has
to be implemented
 
The lwip-port (app/include/lwip-enet/lwipopts.h,
app/include/lwip-enet/arch/*) is already ported to Nios II (but with
NO_SYS=1).
In app/include/lwip-enet/lwipopts.h there is a define NO_SYS (= no
operating system) that can be set to NO_SYS=1 (= no OS) or NO_SYS=0 (=
there is an OS). If you want to use MicroC/OS-II, set NO_SYS=0 and
follow the notes here: http://lwip.wikia.com/wiki/Porting_for_an_OS
There is also an Altera document from 2004: Using Lightweight IP with
the Nios II Processor Tutorial
(http://www.altera.co.jp/literature/tt/tt_nios2_lwip_tutorial.pdf), but
that is really outdated.
If you're using the TSE MAC from Altera, you could extract some code
from the lwip-1.3.2 archive here:
http://lwip.wikia.com/wiki/Available_device_drivers
 
There is no "extract and run" example.
 
Regards,
 
Andreas
 
Am 03.05.2014 12:33, schrieb Ritesh Prajapati:
> Hi All,
>
>     I want to add support of lwIP Protocol for Altera Nios 9.0 or
> later version. I have read some documents regarding lwIP support and
> found that lwIP support has been replaced by inter-niche stack from
> Altera Nios 6.1 or later version.
>
>     Does any one have idea or any information about how to port lwip
> protocol for Nios 9.0 or later version?
>
>     Please let me know your valuable feedback on this ASAP.
 
 
 
 
------------------------------
 
Message: 4
Date: Wed, 7 May 2014 11:23:44 -0400
From: "Pomeroy, Marty" <address@hidden>
To: "Mailing list for lwIP users" <address@hidden>
Subject: Re: [lwip-users] Transport terminal Using Tcp - ask for help~
Message-ID:
<address@hidden>
Content-Type: text/plain; charset="iso-2022-jp"
 
Hmmmm...
>> (3) 258 2.414096 192.168.1.20 192.168.1.60 TCP 54 56864 ? cisco-sccp [ACK] Seq=65157 Ack=1288 Win=16054 Len=0
A 54 byte packet is too small (http://en.wikipedia.org/wiki/Ethernet_frame#Runt_frames).  Can you check the ethernet flags generated by your hardware, to see if it has dropped anything?  You can sometimes configure the hardware to accept "Runt Frames".  Alternatively, make sure your host pads to 64.
Marty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nongnu.org/archive/html/lwip-users/attachments/20140507/e61eccb5/attachment.html>
 
------------------------------
 
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
 
End of lwip-users Digest, Vol 129, Issue 3
******************************************
.
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]