Page 1 of 2

TCP/IP Stack

PostPosted: Thu Dec 08, 2005 1:00 am
by aek
What in particular don't you like / do you find missing in uIP?

There's always lwIP if you need more functionality.

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


Re: TCP/IP Stack

PostPosted: Thu Dec 08, 2005 6:32 am
by seulater
i would like to see the addition of a TCP/IP stack added to the RTOS.

Re: TCP/IP Stack

PostPosted: Thu Dec 08, 2005 8:05 am
by aek
We use Adam Dunkel's uIP stack -- it works very nicely with Salvo. See http://www.pumpkininc.com/content/doc/press/Pumpkin_MSP430ATC2005.pdf for some real RAM and ROM numbers of a Salvo application with TCP/IP, a web server and SLIP all running together.

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


Re: TCP/IP Stack

PostPosted: Thu Dec 08, 2005 9:11 am
by seulater
yes, ive seen the uIP. however its a very limited TCP/IP stack. not to mention a very striped down one at that.

Re: TCP/IP Stack

PostPosted: Fri Dec 09, 2005 6:01 am
by seulater
i am not to crazy about the no buffer issue and the no automatic retry. Although I should not talk because I haven't used it. I am reading the manual on it now and will hopefully be able to try it out this weekend. I may have a different opinion then. Thanks for letting me know about lwIP, I didn't know about that one. I will check it out.

Re: TCP/IP Stack

PostPosted: Fri Dec 09, 2005 11:29 am
by aek
Here's an example of two Salvo tasks to run uIP with a SLIP connection. They could / ought to be combined into a single task to save some tcb RAM ...
code:
void TaskDoUIP(void)
{

slipdev_init(); // start SLIP
httpd_init(); // start HTTP on port 80

for (;;)
{
uip_len = slipdev_poll();

if(uip_len > 0)
{
uip_input();
if(uip_len > 0)
{
slipdev_send();
}
}

OS_Delay(1, label);
}
}


void TaskDoUIPPeriodic(void)
{
unsigned char i;


for (;;)
{
for(i = 0; i < UIP_CONNS; ++i)
{
uip_periodic(i);
if(uip_len > 0)
{
slipdev_send();
}
}

OS_Delay(50, label);
}
}


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


Re: TCP/IP Stack

PostPosted: Fri Dec 09, 2005 11:34 am
by seulater
thanks, right now im reading that link you send to see what the difference is between lwIP and uIP

Re: TCP/IP Stack

PostPosted: Fri Dec 09, 2005 11:38 am
by aek
The only problem I've had is that (using SLIP, with small (80-byte) buffers) sometimes Mozilla times out when accessing some of the pages. I haven't figured that one out yet.

BTW, if you're not using it already, I highly recommend you download and install the Ethereal protocol analyzer, as it's free and awesome and a real help when looking at your IP traffic.

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


Re: TCP/IP Stack

PostPosted: Fri Dec 09, 2005 11:45 am
by seulater
thanks for the Ethereal tip, yes i already have that one.
i am trying to decide if i should use uIP or Microchips free TCP/IP stack.

Have you messed with MicroChips stack ?


Re: TCP/IP Stack

PostPosted: Fri Dec 09, 2005 11:49 am
by aek
quote:
Have you messed with MicroChips stack ?
I have not. I started with uIP and have been quite happy.
This Salvo user: http://www.geocities.com/engink_projects/uip/uip.htm has ported uIP to the PIC18 + Salvo, though he did use PICC-18 and not MPLAB-C18.

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