Enabling Serial Support in TL1

To run the TL1 applications over serial port (RS232), you require the following files. Please read below for details about platform-specific files.

 

Windows Platform

 

  1. Download the Windows version of Java Communication API.

  2. Copy win32com.dll from commapi/ to the <JDK>/bin or <JRE>/bin directory.

  3. Copy comm.jar from commapi/ to the <JDK>/lib or <JRE>/lib directory. This file is also available in the <TL1_Home>/jars directory. Also add the comm.jar in the application classpath.

  4. Copy javax.comm.properties from commapi/ to the <JDK>/lib or <JRE>/lib directory. This file must be installed. If it is not installed, no ports will be found by the system.

  5. This completes the windows installation. Now you can start testing your serial communication example.

 

For more details, please refer to http://java.sun.com/products/javacomm/

 

Linux Platform

 

  1. Download the Solaris version of Java Communication API.

  2. Copy comm.jar from commapi/ to the <JDK>/lib or <JRE>/lib directory. This file is also available in the <TL1_Home>/jars directory. Also add the comm.jar in the application classpath.

  3. Download and Build RxTx. Add the RxTx directory to your path as instructed in the RxTx docs.

  4. Create a file javax.comm.properties in the <JDK>/lib or <JRE>/lib directory. The file content must be "Driver=gnu.io.RxTxCommDriver". If this file is not present, no ports will be found by the system.
  5. This completes the linux installation. Now you can start testing your serial communication example.

 

For more details, please refer to http://geeksville.com/~kevinh/linuxcomm.html

 

Solaris Platform

 

  1. Download the Solaris version of Java Communication API.

  2. Copy the libSolarisSerialParallel.so file from commapi/ to the /usr/lib/ directory. You can also set it in the LD_LIBRARY_PATH.

  3. Copy comm.jar from commapi/ to the <JDK>/lib or <JRE>/lib directory. This file is also available in the <TL1_Home>/jars directory. Also add the comm.jar in the application classpath.

  4. Copy javax.comm.properties file from commapi/ to the <JDK>/lib or <JRE>/lib directory. This file must be installed. If it is not, no ports will be found by the system.
  5. This completes the solaris installation. Now you can start testing your serial communication example.

 

 

 



Copyright © 1999-2003, AdventNet Inc. All Rights Reserved.