Hi David Lee

I would love to see your device driver code working for
cs8900a crystal LAN chip. I am now upgrading from uip 0.9 to 1.0. However, the
code that I am using right now does not make the uip communicate over the
network properly i.e. something must have gone wrong somewhere!! Attached is my
code for cs8900a device driver.

uip_connect 0.9 problem

I’ve ported uip 0.9 to LPC-E2124 board by olimex. I
found no problem with webserver demo provided in the package. However, when I try
to make a simple uip_connect program that connect to a listening server, which I
developed using Java eclipse, it turned out to be the listening server output
an error message of “connection reset”. I have confirmed that there
is no problem with the java server. I suspect the problem arose due to
uip_checksum or uip_connect(??). The code is as follows:

#include "report.h"

#include "uip.h"

void report_init(void)

{

u16_t ipaddr[2];

uip_ipaddr(ipaddr, 192,168,1,68);

uip_connect(ipaddr, HTONS(1234));

}

void report_app(void)

{

if (uip_connected() || uip_rexmit())

{

uip_send("hi/n",3);

return;

}

}

The problem arose as soon as I call the function report_init().
Don’t even have the chance to test the report_app(). Any body could help
with this?

uIP win porting, March2007

Hi all,
I am interested in porting uIP to windows for some tests.
Somebody posted on July 2006 the following link :
http://higepon.monaos.org/moin.py/uipForWindows
but it seems that the page has been remove.
Is it avaible elsewhere on the web ?
thanks a lot
Samuel

RE: uip_connect 0.9 problem

Hi,
I had this problem also. Just adjust your code like this:
#include "report.h"
#include "uip.h"
void report_init(void)
{
u16_t ipaddr[2];
uip_ipaddr(&ipaddr, 192,168,1,68);
uip_connect(&ipaddr, HTONS(1234));
}
void report_app(void)
{
if (uip_connected() || uip_rexmit())
{
uip_send("hi/n",3);
return;
}
}
________________________________
Van: owner-uip-users <at> sics.se namens Ghazali, Izrie
Verzonden: do 1-3-2007 14:40
Aan: uip-users <at> sics.se
Onderwerp: [uip-users] uip_connect 0.9 problem
HI there,
I've ported uip 0.9 to LPC-E2124 board by olimex. I found no problem with webserver demo provided in the
package. However, when I try to make a simple uip_connect program that connect to a listening server,
which I developed using Java eclipse, it turned out to be the listening server output an error message of
"connection reset". I have confirmed that there is no problem with the java server. I suspect the problem
arose due to uip_checksum or uip_connect(??). The code is as follows:
#include "report.h"
#include "uip.h"
void report_init(void)
{
u16_t ipaddr[2];
uip_ipaddr(ipaddr, 192,168,1,68);
uip_connect(ipaddr, HTONS(1234));
}
void report_app(void)
{
if (uip_connected() || uip_rexmit())
{
uip_send("hi/n",3);
return;
}
}
The problem arose as soon as I call the function report_init(). Don't even have the chance to test the
report_app(). Any body could help with this?
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.5/706 - Release Date: 28/02/2007 4:09 PM

Re: uIP win porting, March2007

Samuel Engelmajer schrieb:> I am interested in porting uIP to windows for some tests.> Somebody posted on July 2006 the following link :
> http://higepon.monaos.org/moin.py/uipForWindows> but it seems that the page has been remove.>> Is it avaible elsewhere on the web ?

as well. It contains a uIP driver based WinPcap (no need to download/install the WinPcap SDK) that configures itself based on the Windows IP addr of the interface you want to use with uIP. As it doesn't use promiscuous mode it works with WLAN and the Microsoft Loopback adapter (for local testing)

RE: uip_connect 0.9 problem

Have you tested the modified code? I think
it cannot be done that way since the compiler outputs an error message: “incompatible
types in assignment” at the line you modified. I use GNUARM GCC compiler.
Is there any other suggestion?

I’ve ported uip 0.9 to LPC-E2124 board by olimex. I
found no problem with webserver demo provided in the package. However, when I
try to make a simple uip_connect program that connect to a listening server,
which I developed using Java eclipse, it turned out to be the listening server
output an error message of “connection reset”. I have confirmed
that there is no problem with the java server. I suspect the problem arose due
to uip_checksum or uip_connect(??). The code is as follows:

#include "report.h"

#include "uip.h"

void report_init(void)

{

u16_t ipaddr[2];

uip_ipaddr(ipaddr, 192,168,1,68);

uip_connect(ipaddr, HTONS(1234));

}

void report_app(void)

{

if (uip_connected() || uip_rexmit())

{

uip_send("hi/n",3);

return;

}

}

The problem arose as soon as I call the function
report_init(). Don’t even have the chance to test the report_app(). Any
body could help with this?

RE: Connection Problem

I am currently using uIP 0.9 as well for
my final year project. The only difference is I ported uIP on the top of
FreeRTOS 4.0.

I have a problem with connecting to a simple
listening server which I developed by using java server socket. As I made an attempt
to establish a connection to the host server, the server returns an error
message on the console of “connection reset”. I am not sure what
the problem is. As far as I am concerned, the server works fine when I connect
to it using MS telnet. Could you please let me know how exactly I can make a
connection and hence transmit packets? And do you have a sample of source code
on how it is done? What sort of server are you using? Finally here is my code
for my simple client socket software:

#include "report.h"

#include "uip.h"

void report_init(void)

{

u16_t ipaddr[2];

uip_ipaddr(&ipaddr, 192,168,1,68);

uip_connect(&ipaddr, HTONS(1234));

}

void report_app(void)

{

if (uip_connected() || uip_rexmit())

{

uip_send("hi/n",3);

return;

}

}

Attached is the java code for my server. Could
you please help me with this problem?

I am using uIP 0.9 on a SPARC processor as part of my final year
project.

At present I have the httpd example and a simple TCP receiver running,
the connected port determines which process runs.

At present I can send TCP packets to the port the receiver is listening
on and it can receive and process them fine. However when I close the
connection remotely I can never reconnect.

When the app is called there is a list of if statements relating to the
uip_newdata(), uip_closed() etc. functions. When the TCP connection is
closed the uip_closed() function is true and the program prints
“Connection Closed” to the console. I have noticed however
that this is always written twice indicating that the closed event occurs
twice. I have tried doing nothing when uip_closed is true and I have
tried running uip_close() neither seem to work.

i´m trying to establish a connection between server and client with active
open, but it don´t works. If my controller runs as server and i use the
listen() function ist works. I want to my controller to be the the client and
connect to a server.