ejip - Embedded Java TCP/IP





ejip is a minimal TCP/IP stack written from ground up in Java.

The main purpose of ejip is for the use in embedded applications. It currently runs on JOP, but can be used with a small JOP emulation layer under standard Java runtime (with javax.comm for Slip or Ppp).

Following protocols are implemented:

  • Slip, PPP
  • CS8900 driver
  • ARP
  • ICMP
  • IP
  • UDP
  • TFTP
  • TCP (just for one HTTP request)
  • HTTP

May 15, 2003:  changed Html.java to deliver an Applet to get actual data from an embedded Webserver.

You can watch this TCP/IP implementation in action on the JOP WebServer.

ejip.jar version 0.1.

Getting Started

The easiest way to get started is to use two PC's with Slip. Or you can use one PC with two serial ports. Connected them with a null modem cable and start Slip on one PC. Under Linux the commands are:
	slattach -l -p slip -s 115200 /dev/ttyS0 &
	sleep 3
	ifconfig sl0 mtu 1500 dstaddr
On the other PC extract the source:
	jar xf ejip.jar
Change the COM-port in pcsim/com/jopdesign/sys/Native.java and recompile.
Start with classpath as follows:
	java -cp pcsim;. ejip.Main
Now you should be able to ping and request a HTML page :-)

Copyright © 2000-2003, DI Martin Schoeberl