Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Re: [AVR-Chat] uIP "applications"

Re: [AVR-Chat] uIP "applications"

2005-04-20 by Jim Wagner

Chuck -

The following is a wild guess as I have not done this on a
micro. My guess is that the term "application", in this
context, may not be a good fit in the micro world. You will
need to do the required user interface and such, but it
probably is not useful to attach the name "application" to
it. That is because the name, itself, has certain
connotations, often representing an independently loadable
software module.

In this case, I think you will need to create a single code
block with the "applications" written as an integral part
of the project. With this tighter coupling, you may also be
able to reduce the buffer requirments which will be very
tight in an M16. Not needing additional buffers going in
and out of each app would really help, and you ought to be
able to do that with a more monolythic project.

Dunno if this helps. Hope it does.

Jim Wagner


On Wed, 20 Apr 2005 16:37:09 -0500
 "Chuck Hackett" <egroupscdh@WhiteTrout.net> wrote:
> 
> Is anyone familiar with uIP?  I have downloaded the
> AVR port from:
> 
> http://www.laskater.com/projects/uipAVRgettingstarted.htm
> 
> and the small test application compiled and ran first
> time (trial version of
> ImageCraft compiler but it also has #ifdef to support
> gcc).  The only change I
> had to make was to reduce a buffer declaration to get it
> to fit in the SRAM on
> an ATMega16.  So far I'm impressed.  One of the
> main reasons I tried it was that
> it supported the ASIX Ethernet controller chip that's on
> the board I have.
> 
> Question: I'd like to compile in two
> "applications" as uIP refers to them but
> I'm a bit confused about how to structure the main module
> so that each has the
> correct contexts.  The two I want to compile in are
> the SMTP and Web Server
> modules.  I don't want you to write the code for me,
> I just need some guidance
> in how one compiles in two "applications" as
> opposed to one:
> 
> - setting them up so they each have the appropriate
> context globals)
> 
> - routing uIP events to the appropriate application
> 
> Any pointers would be appreciated ... single indirection
> only, let's keep it
> simple :-)
> 
> Cheers,
> 
> Chuck Hackett
> "Good judgment comes from experience, experience
> comes from bad judgment"
> 7.5" gauge Union Pacific Northern (4-8-4) 844
> http://www.whitetrout.net/Chuck
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> To visit your group on the web, go
> to:http://groups.yahoo.com/group/AVR-Chat/ 
> To unsubscribe from this group, send an email
> to:AVR-Chat-unsubscribe@yahoogroups.com 
> Your use of Yahoo! Groups is subject to the Yahoo! Terms
> of Service.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

---------------------------------------------------------------
The Think Different Store
http://www.thinkdifferentstore.com/
For All Your Mac Gear
---------------------------------------------------------------

RE: [AVR-Chat] uIP "applications"

2005-04-21 by Chuck Hackett

> From: Jim Wagner
> 
> Chuck -
> 
> The following is a wild guess as I have not done this on a
> micro. My guess is that the term "application", in this
> context, may not be a good fit in the micro world. You will
> need to do the required user interface and such, but it
> probably is not useful to attach the name "application" to
> it. That is because the name, itself, has certain
> connotations, often representing an independently loadable
> software module.

Sorry Jim, I should have made it clearer - in this context "application" is a
term that the uIP code attributes to functionality such as SMTP, Telnet, ARP,
etc. and the code that invokes that functionality.

I think I understand most of it.  The major thing that has me puzzled is how to
declare the "state" (context) area size.  As far as I can tell you can only
declare one size for all applications.  The data area is set aside in the block
uIP uses to store its context for each connection.  So I assume I have to tell
uIP that the context size is the max of the applications I'm using (SMTP & Web
Server).  I'm unclear on it because I can't find an example that uses multiple
uIP "applications" in a single processor image, only examples using a single
application or multiple applications each having no saved context.

My search continues ...

Cheers,

Chuck Hackett
"Good judgment comes from experience, experience comes from bad judgment"
7.5" gauge Union Pacific Northern (4-8-4) 844
http://www.whitetrout.net/Chuck

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.