This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: lwip on an AT91 EB55
- From: Sebastian Block <sebastianblock at gmx dot net>
- To: Jani Monoses <jani at iv dot ro>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 18 Jan 2005 15:34:09 +0100
- Subject: Re: [ECOS] lwip on an AT91 EB55
- References: <41ED0EBB.5080807@byteblock.de> <41ED192A.6060900@iv.ro>
Jani Monoses wrote:
There is need for 2 connections .. on control and one data connection.
The control connection works fine ... but when I want to send data
through the data connection then only is made the connection but
can't receive or send data throw it.
Is the data connection made from the same side as the control
connection? Active or passive FTP. I know lwip is mostly tested in
server apps but it should work as a connection initiator too.
You might want to try the app using the linux synthetic target first,
or something non-PPP
anyway to narrow the problem.
Jani
In synthetic target the ftp-code works nice.
But I finally found something after switching all debugging messages on.
Here the output
ip_output_if: pp1
IP header:
+-------------------------------+
| 4 | 5 | 0x00 | 131 | (v, hl, tos, len)
+-------------------------------+
| 17 |010| 0 | (id, flags, offset)
+-------------------------------+
| 255 | 6 | 0xf60f | (ttl, proto, chksum)
+-------------------------------+
| 192 | 168 | 2 | 2 | (src)
+-------------------------------+
| 192 | 168 | 2 | 1 | (dest)
+-------------------------------+
netif->output()pbuf_alloc(length=0)
pbuf_alloc: allocated pbuf 0x02038c4c
pbuf_alloc(length=0) == 0x02038c4c
pppifOutput[0]: proto=0x0021
PPP nPut: incomplete sio_write(33908052,, 136) = 128
incomplete sio_write ... it wrote 128 of 136 bytes
Doesn't know why don't send the other 8 bytes.
The output comes from function nPut in ppp.c
Hope somebody can give my a hint for solving this problem.
Sebastian
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss