Home
Introduction
Getting Started
Hardware
Firmware
Applications
Real TINI
Photos
Links
JavaKit on Linux
FAQ
Sendmail
Suggestions and contributions always welcome.
Maintained by Tony Allan,
APMS
|
|
In order to use the DalSemi JavaKit to communicate with your TINI, you need to install Java, the Java Communications API, the RXTX drivers and the DalSemi TINI software.
Software used:
- RedHat 6.0
- JDK 1.2
- Java Communications API (commapi) 2
- RXTX 1.3.4
- TINI beta 1
I am assuming that you have a reasonably vanilla RedHat 6.0 system with none of the software installed as yet and that you are comfortable installing software onto your system. Some of the following steps require root access.
JDK 1.2
- Fetch JDK1.2 from
http://www.blackdown.org/java-linux/mirrors.html. I used the file /pub/java-linux/JDK-1.2/i386/pre-v2/glibc2.1/jdk1.2pre-v2.tar.bz2
- Untar and unbzip2 it into
/usr/local. I had to install the bzip2 (bzip2-0.9.0c-1.i386.rpm) RPM from my install cd as it was not part of my default RedHat2 install.
- Create a symbolic link:
ln -s jdk1.2 java
- Add java to the default path. I added it to
/etc/profile to make it available to all users.
The rest of these instructions will assume that java (JDK 1.2) is available at /usr/local/java.
Java Communications API (commapi)
- Fetch commapi from
http://java.sun.com/products/javacomm/ (select the 'Solaris Sparc' platform)
- Unzip and untar it.
- Copy comm.jar to /usr/local/java/jre/lib/ext/comm.jar
- Create a file called /usr/local/java/jre/lib/javax.comm.properties containing a single line:
Driver=gnu.io.RXTXCommDriver
RXTX
The following come mostly from the instructions in the RXTX INSTALL file (for JDK 1.2).
- Fetch RXTX from http://www.frii.com/~jarvi/rxtx/download.html (I used the stable release 1.3.4)
- Unzip and untar it.
tar xvf rxtx-1.3-4.tar
- Create a build subdirectory. Change to it.
- Make sure java is in your path (test using the command 'java -version'). If not:
export PATH=$PATH:/usr/local/java/bin
- Create the build files
export JDK_HOME=/usr/local/java
export COMM_JAR_PATH=/usr/local/java/jre/lib/ext/comm.jar
./configure --enable-JDK_HOME --prefix=/usr
- Make and install the files
make
make jcl
make install
- Ensure you have the correct permissions on your serial port (COM1 on my laptop):
chmod 666 ttyS0
Serial Cable
You will need a serial cable with a straight-through connection.
See the FAQ for more information.
TINI - JavaKit
- Fetch the latest version of the TINI software from:
ftp://ftp.dalsemi.com/pub/tini/
- Unzip and untar it.
- To test, in your tinibeta1 directory, type:
java -cp tini.jar JavaKit
(you will see serial ports that you have access to listed)
The TINI system skipped over the login prompt for slush when using the serial port. Putting JavaKit in dumb terminal mode allowed me to enter the user name (- the option for doing this is located in the top righthand corner of the JavaKit window).
|