Pumpkin, Inc.

Pumpkin User Forums

TCP/IP Stack

Have an idea on how to make Salvo better? Post it here!

TCP/IP Stack

Postby aek » Thu Dec 08, 2005 1:00 am

What in particular don't you like / do you find missing in uIP?

There's always lwIP if you need more functionality.

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: TCP/IP Stack

Postby seulater » Thu Dec 08, 2005 6:32 am

i would like to see the addition of a TCP/IP stack added to the RTOS.
seulater
 
Posts: 24
Joined: Tue May 10, 2005 11:00 pm
Location: Buffalo Grove, IL, USA

Re: TCP/IP Stack

Postby aek » Thu Dec 08, 2005 8:05 am

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.

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: TCP/IP Stack

Postby seulater » Thu Dec 08, 2005 9:11 am

yes, ive seen the uIP. however its a very limited TCP/IP stack. not to mention a very striped down one at that.
seulater
 
Posts: 24
Joined: Tue May 10, 2005 11:00 pm
Location: Buffalo Grove, IL, USA

Re: TCP/IP Stack

Postby seulater » Fri Dec 09, 2005 6:01 am

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.
seulater
 
Posts: 24
Joined: Tue May 10, 2005 11:00 pm
Location: Buffalo Grove, IL, USA

Re: TCP/IP Stack

Postby aek » Fri Dec 09, 2005 11:29 am

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);
}
}


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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: TCP/IP Stack

Postby seulater » Fri Dec 09, 2005 11:34 am

thanks, right now im reading that link you send to see what the difference is between lwIP and uIP
seulater
 
Posts: 24
Joined: Tue May 10, 2005 11:00 pm
Location: Buffalo Grove, IL, USA

Re: TCP/IP Stack

Postby aek » Fri Dec 09, 2005 11:38 am

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.

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: TCP/IP Stack

Postby seulater » Fri Dec 09, 2005 11:45 am

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 ?

seulater
 
Posts: 24
Joined: Tue May 10, 2005 11:00 pm
Location: Buffalo Grove, IL, USA

Re: TCP/IP Stack

Postby aek » Fri Dec 09, 2005 11:49 am

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.

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Next

Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 0 guests

cron