Nico Coesel (Dealogic | 1 Mar 10:08 2007
Picon

RE: udp in uip

Samuel,
The changes I posted are not really bugs, just some minor improvements to be
able to receive broadcasts. UDP itself seems to work fine with uIP 1.0.

Nico Coesel

-----Oorspronkelijk bericht-----
Van: owner-uip-users <at> sics.se [mailto:owner-uip-users <at> sics.se] Namens Samuel
Engelmajer
Verzonden: woensdag 28 februari 2007 15:47
Aan: uip-users <at> sics.se
Onderwerp: [uip-users] udp in uip

Hi all,

here is a simple question.
I'm a newcomer to uip/lwip stacks. I'm designing an Ethernet architecture
for an embedded 16-bit processor.
I need both TCP and UDP connection.

Is UDP well implemented in uip - I mean, reliable? Previous mails indicate
some bugs. Does lwip really offer better udp service?

Thanks,

Samuel Engelmajer

Ghazali, Izrie | 1 Mar 15:15 2007
Picon

Hi David Lee

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.

 

Cheers

 

Regards,

Izrie


--
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

Attachment (cs8900a.h): application/octet-stream, 248 bytes
Attachment (cs8900a.c): application/octet-stream, 25 KiB
Ghazali, Izrie | 1 Mar 14:40 2007
Picon

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

Samuel Engelmajer | 1 Mar 15:04 2007

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

Martin Gysel | 1 Mar 15:42 2007
Picon
Picon

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 ?

yes

http://higepon.monaos.org/moin.cgi/uipForWindows

martin

Berg, RR van den | 1 Mar 15:47 2007
Picon

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

Attachment (winmail.dat): application/ms-tnef, 11 KiB
Oliver Schmidt | 1 Mar 17:25 2007
Picon

Re: uIP win porting, March2007

Hi Samuel,

On 3/1/07, Martin Gysel <m.gysel <at> gmx.ch> wrote:
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 ?

yes

http://higepon.monaos.org/moin.cgi/uipForWindows

martin
 
You might be interested in
 
 
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) :-)
 
Best, Oliver

 
Ghazali, Izrie | 1 Mar 20:03 2007
Picon

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?

 

Regards,

izrie

 

From: owner-uip-users <at> sics.se [mailto:owner-uip-users <at> sics.se] On Behalf Of Berg, RR van den
Sent: 01 March 2007 2:48 PM
To: uip-users <at> sics.se
Subject: RE: [uip-users] 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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.5/706 - Release Date: 28/02/2007 4:09 PM


--
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

Ghazali, Izrie | 2 Mar 02:04 2007
Picon

RE: Connection Problem

Hi Neil,

 

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?

 

Thank you,

 

Regards,

Izrie

 

From: owner-uip-users <at> sics.se [mailto:owner-uip-users <at> sics.se] On Behalf Of Neil Jeffery
Sent: 28 February 2007 5:30 PM
To: uip-users <at> sics.se
Subject: [uip-users] Disconnection Problem

 

Hi,

 

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.

 

The httpd server allows disconnection and reconnection however.

 

Any ideas?

 

Many thanks

 

Neil Jeffery


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 27/02/2007 3:24 PM


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.5/707 - Release Date: 01/03/2007 2:43 PM

Attachment (DatabaseServer.java): application/octet-stream, 2035 bytes
Ghazali, Izrie | 2 Mar 14:22 2007
Picon

example for active connect

Hi there,

 

I am having the same problem that u have had earlier. I guess u no longer having the problem to make your board as the client. Could you please help me on how to do so? Thank you.

 

Regards,

Izrie

 

----- Original Message -----

From: b_greeni

To: uip-users <at> xxxxxxx

Sent: Tuesday, October 24, 2006 4:03 AM

Subject: [uip-users] example for active connect

 

Hello,

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.


Thanks for answers.


greeni

 


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.5/707 - Release Date: 01/03/2007 2:43 PM


Gmane