Subject:
|
Re: true tcp/ip on the RCX
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Fri, 1 Feb 2002 18:51:41 GMT
|
Viewed:
|
3907 times
|
| |
| |
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
|
| 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 (...) (23 years ago, 1-Feb-02, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | true tcp/ip on the RCX
|
| I ve got the very first and only tcp/ip enabled RCX in my room, cool, eh ? I will make a webpage at the end of the week to make the very first (rudimentary, but working) version available to the public. Right now, the tcp/ip stack is compiled into (...) (23 years ago, 28-Jan-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
|
|
|
|