Subject:
|
Re: true tcp/ip on the RCX
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Fri, 1 Feb 2002 20:29:53 GMT
|
Viewed:
|
3913 times
|
| |
| |
Cool stuff, congrats on the Slashdot recognition. Hope the "Slashdot
Effect" didn't totally cripple your server.
Wondering if you or Olaf could make the LegOS code available for all
to see, just wondering how it was all done for educational purposes
and in case I ever need a 1/4 lb small muffin sized web server in the
future.
Great stuff,
Dave
Adam Dunkels wrote:
>
> Olaf wrote:
>
> > I ve got the very first and only tcp/ip enabled RCX in my room, cool, eh ? [...]
> > But writing e.g. a very small webserver shouldnt be that big a deal ;-)
>
> A few days ago, Olaf sent me his legOS TCP/IP code which I have been
> running a few days, so I probably have the world's second TCP/IP-enabled
> Lego brick in my office :-) ! I was also able to squeeze in a simple web
> server, a few web pages and a script for querying the sensors into it.
> Loadable program support had to be removed in order to fit the httpd code
> and the HTML. Because the IR only runs at 4800 bit/sec, the web pages load
> quite slowly...
>
> The total code size and RAM usage for the TCP/IP and web server modules is:
>
> text data bss dec hex filename
> 114 12 0 126 7e cgi.o
> 124 1254 0 1378 562 fs.o
> 428 0 0 428 1ac uip_arch.o
> 432 20 216 668 29c uip_main.o
> 860 6 0 866 362 httpd.o
> 2190 48 6 2244 8c4 uip.o
>
> A total of 4148 code, 308 bytes of RAM usage and 1254 bytes of HTML.
>
> Here is the background on this: a few months ago, Olaf and I were
> discussing the possibilities of adding TCP/IP support to legOS. Because of
> the small amounts of RAM avaliable in the RCX (around 5k for code and
> buffers), most would think that adding a TCP/IP stack would be an
> impossible task.
>
> But after some further disucssions, uIP (http://dunkels.com/adam/uip/) was
> born (I had some ideas on how to make a really, really small TCP
> implementation). uIP was small enough to fit inside the avaliable 5k and
> still provide IP, ICMP (ping) and TCP. Even though it was initially
> targeted for the legOS platform, it quickly got a life of its own due to
> it's small code size and RAM requirements. It has since been ported to
> numerous 8-bit platforms such as various Hitachi microcontrollers, the
> Commodore 64 (http://c64.cc65.org/), the 8-bit Atari
> (http://www.xs4all.nl/~txg01/) and others.
>
> /adam
> --
> Adam Dunkels <adam@dunkels.com>
> http://dunkels.com/adam/
|
|
Message has 1 Reply: | | Re: true tcp/ip on the RCX
|
| (...) The C64 server survived the "Slashdot attack" without problems, even though it served tenths of thousands of pages over a period of only a few hours. Since it is configured to allow only 10 simultaneous connections, it could more or less serve (...) (23 years ago, 4-Feb-02, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Re: true tcp/ip on the RCX
|
| (...) [...] (...) A few days ago, Olaf sent me his legOS TCP/IP code which I have been running a few days, so I probably have the world's second TCP/IP-enabled Lego brick in my office :-) ! I was also able to squeeze in a simple web server, a few (...) (23 years ago, 1-Feb-02, to lugnet.robotics.rcx.legos)
|
11 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|