• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

CNI/H07-May-2022-11,7766,733

MACOSX_IDE/H07-May-2022-527488

WinCE/H07-May-2022-4,1252,096

contrib/H07-May-2022-2,1111,672

debian/H07-May-2022-7240

src/H07-May-2022-30,80618,047

tests/gnu/io/rxtx/tests/H07-May-2022-344108

AUTHORSH A D18-Nov-20074.1 KiB12179

BeOSH A D06-Oct-20001.2 KiB4838

COPYINGH A D26-Apr-200729.2 KiB564476

ChangeLogH A D05-Feb-200928.3 KiB665626

INSTALLH A D27-Nov-200830.1 KiB878636

Makefile.amH A D14-Sep-200810.1 KiB16880

Makefile.inH A D03-May-202224.6 KiB670515

Makefile.lccH A D05-Apr-20021.8 KiB6625

Makefile.macosxH A D26-Apr-200717.3 KiB477333

Makefile.mingw32H A D27-Nov-20089 KiB21982

Makefile.msvcH A D27-Nov-20084.2 KiB13869

PORTINGH A D27-Nov-20084.9 KiB157113

READMEH A D26-Apr-20075 KiB10290

README.IPAQH A D11-Jun-20023.2 KiB8760

README.OSXH A D20-Jun-20062.9 KiB9364

README.SCOH A D05-Apr-20027.4 KiB171131

TODOH A D05-Apr-20029.5 KiB278208

acinclude.m4H A D05-Jul-2005227.8 KiB6,6015,919

aclocal.m4H A D31-Dec-200832.5 KiB905807

autogen.shH A D06-Aug-20022.7 KiB9158

buildtestH A D26-Jul-20011.5 KiB5143

buildwin32H A D17-Oct-2004406 86

config.guessH A D10-Aug-200643.2 KiB1,5011,289

config.h.inH A D11-Oct-20042.1 KiB8355

config.subH A D10-Aug-200631.7 KiB1,6091,465

configureH A D31-Dec-2008747.5 KiB23,97019,292

configure.inH A D31-Dec-200827 KiB906837

install-shH A D18-Mar-19995.5 KiB251152

ltconfigH A D16-Aug-200195.4 KiB3,1152,405

ltmain.shH A D22-Mar-2006192.1 KiB6,8725,424

missingH A D18-Aug-200210 KiB337263

mkinstalldirsH A D18-Mar-1999734 4123

rxtx.specH A D23-Mar-20041.3 KiB4839

stamp-h.inH A D18-Mar-199910 21

README

1/*-------------------------------------------------------------------------
2|   RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface.
3|   RXTX is a native interface to serial ports in java.
4|   Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who
5|   actually wrote it.  See individual source files for more information.
6|
7|   A copy of the LGPL v 2.1 may be found at
8|   http://www.gnu.org/licenses/lgpl.txt on March 4th 2007.  A copy is
9|   here for your convenience.
10|
11|   This library is free software; you can redistribute it and/or
12|   modify it under the terms of the GNU Lesser General Public
13|   License as published by the Free Software Foundation; either
14|   version 2.1 of the License, or (at your option) any later version.
15|
16|   This library is distributed in the hope that it will be useful,
17|   but WITHOUT ANY WARRANTY; without even the implied warranty of
18|   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19|   Lesser General Public License for more details.
20|
21|   An executable that contains no derivative of any portion of RXTX, but
22|   is designed to work with RXTX by being dynamically linked with it,
23|   is considered a "work that uses the Library" subject to the terms and
24|   conditions of the GNU Lesser General Public License.
25|
26|   The following has been added to the RXTX License to remove
27|   any confusion about linking to RXTX.   We want to allow in part what
28|   section 5, paragraph 2 of the LGPL does not permit in the special
29|   case of linking over a controlled interface.  The intent is to add a
30|   Java Specification Request or standards body defined interface in the
31|   future as another exception but one is not currently available.
32|
33|   http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface
34|
35|   As a special exception, the copyright holders of RXTX give you
36|   permission to link RXTX with independent modules that communicate with
37|   RXTX solely through the Sun Microsytems CommAPI interface version 2,
38|   regardless of the license terms of these independent modules, and to copy
39|   and distribute the resulting combined work under terms of your choice,
40|   provided that every copy of the combined work is accompanied by a complete
41|   copy of the source code of RXTX (the version of RXTX used to produce the
42|   combined work), being distributed under the terms of the GNU Lesser General
43|   Public License plus this exception.  An independent module is a
44|   module which is not derived from or based on RXTX.
45|
46|   Note that people who make modified versions of RXTX are not obligated
47|   to grant this special exception for their modified versions; it is
48|   their choice whether to do so.  The GNU Lesser General Public License
49|   gives permission to release a modified version without this exception; this
50|   exception also makes it possible to release a modified version which
51|   carries forward this exception.
52|
53|   You should have received a copy of the GNU Lesser General Public
54|   License along with this library; if not, write to the Free
55|   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
56|   All trademarks belong to their respective owners.
57--------------------------------------------------------------------------*/
58This is README Wed Apr 25 22:37:26 MDT 2007
59
60See Also:
61
62INSTALL:   install instructions and solutions to common problems
63TODO:      Comments for developers
64COPYING:   The LGPL license
65PORTING:   hints for people trying to port rxtx
66Authors:   who wrote what.
67ChangeLog: when they wrote it.
68RMISecurityManager.html:  Comments for people using RMISecurityManager
69SerialPortInstructions.txt:  HOWTO on read/writing to your com ports on linux for beginners
70
71There are numerous possibilities for projects that involve serial communication.
72Java is an excellent language for putting GUI apps together.  Well have fun.
73Send back stories.
74
75Copies of the latest RXTX will be on http://www.rxtx.org/download
76The primary source for information/support is http://www.rxtx.org.
77The rxtx mail-list is at Majordomo@hex.linuxgrrls.org.
78Send email with "subscribe rxtx" in the subject without the quotes to join.
79
80This is a native lib for jdk 1.1.* and newer.  If you find changes required
81for different platforms or OS's please pass them back this way so we may share
82it with others.  Credit will be given unless one specifically requests no
83credit.
84
85We chopped rxtx out of my program and tried to put a small example together.
86There is plenty of room for configurability, safe guarding and error reporting.
87If you have some time please contribute some improvements.
88
89We are interested in sharing this code in hopes that a more versatile lib may
90be developed and released with minimal restrictions.  Please send any patches
91back my way if you like.
92
93If you are interested in using rxtx for things like RS485, I2C or raw IO Please
94get the latest CVS version.  Some work has been done for each of them.  The
95latest development version is a stand alone implementation of CommAPI.
96
97For bug reports please follow the directions in INSTALL
98
99Trent Jarvi
100taj@www.linux.org.uk
101
102

README.IPAQ

1
2
3
4  Here's what I came up with as far as documentation.  First, I'm mainly a
5  windows person... ewww.. but, as such.. some things are probably not
6  solved optimally.
7
8  ---
9  Getting the Comm API working on an Ipaq
10  Thomas O'Connell (thomas@cc.gatech.edu)
11
12  For the most part, things go pretty much according to the documents
13  provided by: http://www.interstice.com/~kevinh/linuxcomm.html
14
15  I'll just cover the gotchas:
16
17  1) Getting Java itself to run:  This was actually the most complicated
18  part (for me).  You can download a JRE 1.3 from Blackdown for the ARM
19  processor, but no JDK.  But you can tease a javac, jar, javah, etc.. out
20  of a tools.jar file from some other distro(i went with an i386 linux
21  sdk, same version as the JRE), and writing scripts to emulate the
22  behaviors (and adding tools.jar to your classpath).
23
24  Example:
25  javac is:
26  #! /bin/sh
27  java com.sun.tools.javac.Main $@
28
29  The rest can be created similarily.  I kept pulling as many as those out
30  until the .configure of rxtx stopped complaining.
31
32  - include files: in addition to pulling tools.jar from another linux
33  jdk, I brought over the <jdk>\include files too.  Dumped it in the
34  <j2re1.3.1> directory.
35
36  - sim link: in the j2re1.3.1 directory, I created a jre sub directory,
37  and beneath that I sym linked a j2re1.3.1\jre\lib to j2re1.3.1\lib.
38  Also, both my JDK_HOME and JAVA_HOME were set to the j2re1.3.1 location.
39
40
41  After all this, the rxtx package built correctly.  I added jcl.jar to my
42  classpath as well.
43
44  Your mileage may vary here, since I'm doing this all from recollection.
45  I imagine I'll have to reformat at some point and pay more attention the
46  next time I have to set it up.  Lots of trial and error here, and I'm no
47  script kiddie.. I imagine some of this could be fixed up internally.
48
49
50  2) Killing getty -  So there's the console terminal running on the comm
51  port.  You need to be able to kill this in order for the comm port to be
52  released.  Since you don't want to entirely kill getty (since,
53  networking is often flaky on these things), I just changed the
54  /etc/inittab with regards to getty.
55
56  Changed: T0:2:respawn:/sbin/getty -L tts/0 115200 vt100
57  To: T0:2:boot:/sbin/getty -L ttySA0 115200 vt100
58
59  This keeps the ipaq from respawning getty everytime you kill it, but
60  does activate it upon boot.
61
62
63  3) Fixing RXTXCommDriver.java.   Based on OS, the code tried to find the
64  serial ports.  This will fail because of a naming convention that
65  Intimate/?Debian? uses for the com ports.  Need to add a prefix that
66  includes ttySA.  By default the code looks like:
67
68
69          if(osName.equals("Linux"))
70          {
71                  String[] Temp = {
72                  "ttyS" // linux Serial Ports
73                  };
74                  CandidatePortPrefixes=Temp;
75          }
76
77  4) Cable:  The hotsync cable that the ipaq comes with is a null modem
78  cable.  compaq does sell a RS-232 cable for the hotsync port, if you're
79  trying to control a serial device like me.  $26 though..
80
81  --
82  Thomas O'Connell               Georgia Institute of Technology
83  Aware Home Lab ManagerCollege of Computing
84  www.cc.gatech.edu/fce/ahri           www.cc.gatech.edu/~thomas
85
86
87

README.OSX

1$Id: README.OSX,v 1.1.2.2 2006-06-20 09:46:47 jarvi Exp $
2
3For uptodate information about RXTX goto http://www.rxtx.org
4
5
6------------------------ Installation on MacOSX -----------------------
7
8WARNING: Please read this section until the end.
9
10----
11The unsafe way of using RXTX on OS X:
12----
13
14RXTX can be installed by putting the files
15  libSerial.jnilib
16  RXTXcomm.jar
17into the folder
18  /Library/Java/Extensions
19
20This is NOT RECOMMENDED as it creates versioning conflicts among applications.
21However you may be forced to install it this way if an application was written
22for Windows or Linux, requires RXTX and you are not able to change its starter.
23
24
25----
26The safe way of using RXTX on OS X:
27----
28
29Make sure that you have no (older) version of RXTX installed in
30  /Library/Java/Extensions
31  /System/Library/Java/Extensions
32  /usr/lib/java
33
34Put
35  libSerial.jnilib
36in the directory of the application (the JavaVM will find it there). Add
37  RXTXComm.jar
38to the application classpath or include the classes in the application jar.
39(Some applications already include the RXTX classes in their application jar,
40in which case only the file libSerial.jnilib is required).
41
42
43
44----
45History
46----
47
48Up to version 2.0.7/2.1.7 RXTX used lockfiles on MacOSX. The creation of lockfiles
49required special permissions for the user executing an application based on RXTX.
50To simplify the setup RXTX came with an installer modifying group permissions
51and installing RXTX in the global location /Library/Java/Extensions. However
52this was prune to versioning conflicts and is no longer recommended.
53
54--------------------- Build instructions for OSX XCode -------------------
55
56contributed by Joachim Buechse <joachim@buechse.de>
57original version by Dmitry Markman <dmarkman@mac.com>
58
59System requirements for building:
60MacOSX 10.4
61XCode 2.3
62
63  open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj
64  choose libSerial.jnilib target
65  build
66
67After the build you will find RXTXcomm.jar and libSerial.jnilib files in the
68directory build/Development.
69
70In case you can't find RXTXcomm.jar build the RXTXcomm target manually.
71In case of (serious) problems feel free to contact joachim@buechse.de .
72
73--------------------- Gnu Tool Builds -----------------------
74
75If you are going to try building rxtx on Mac OS X, we recommend you use
76rxtx 1.5.   1.4 would require substantial modification to the Makefile to
77get the build to work.
78
79Mac OS X has some issues with libtool at this time.  This makes building
80rxtx much more difficult.
81
82The current solution is to take an automatically generated Makefile and then
83manually edit it.
84
85One such Makefile is provided to help build rxtx.  The file will probably
86need to be edited to match your system configuration.  If you would like to
87add more information for other Mac OS X users please email
88
89	taj@www.linux.org.uk.
90
91We are sorry the build process is not easier.  A great deal of effort was
92put into trying to automate the builds without luck.
93

README.SCO

1This is README.SCO Last Modified Thu Oct 18 13:58:28 MDT 2001
2UnixWare and OpenUNIX related Documentation
3
4This document is the release notes From Caldera before the merge see notes.
5
6Java Communications API Implementation for Caldera UNIX Operating Systems
7Version 2.0 Beta-3
8October 2, 2001
9
10-------------------------------------------------------------------------------
11
12notes:
13
14This was Version 2.0 Beta-3 notes.  The work is being merged into the rxtx CVS.
15Some minor changes will happen and will be noted here.
16
17Thanks to Jonathan Schilling <jls@caldera.com> and Caldera for the SCO port!
18
191)  RXTX does not ship with Sun's comm.jar.  It can be obtained from Sun.
202)  The Lockfile could use some work.  It possible to fix it at compile time
21    but a run time solution would allow.  The current behavior is to use FHS
22    locks.  This should be the same behavior as rxtx-1.4-8 as used in the
23    original SCO port.
243)  in configure.in you will want to comment out 2 lines and run autoconf in
25    the top rxtx directory before building.  The lines are:
26
27	# Comment these two lines out when compiling on SCO
28	AC_DISABLE_STATIC
29	AM_PROG_LIBTOOL
30	# end of SCO fixes
31
32-------------------------------------------------------------------------------
33
34These are the Release Notes for the beta release of an implementation of
35the Java Communications API (also known as javax.comm) for Caldera UNIX
36operating systems.
37
38The Java Communications API is described at
39http://java.sun.com/products/javacomm/index.html.
40
41This implementation is available for the following Caldera UNIX operating
42systems:
43
44	Open UNIX 8.00
45	UnixWare 7.1.1
46	OpenServer 5.0.6 with rs506a supplement
47
48A prerequisite is that Java 2 Standard Edition v. 1.3.0 for Caldera UNIX
49Operating Systems must already have been installed (including any
50packages or ptfs required by J2SE 1.3.0).  This requirement may be met
51by either the J2SE SDK (package java2sdk3) or the J2SE Runtime Environment
52(package java2jre3).
53
54While J2SE 1.3.0 for OpenServer does not require the rs506a release
55supplement be installed, this javax.comm implementation does.
56
57This implementation is a port of the open source RXTX implementation of
58the Java Communications API.  Information about RXTX may be found at
59http://www.rxtx.org.  This port has been done off of RXTX version 1.4-8.
60
61RXTX includes part of the Sun Java Communications API implementation
62for Solaris/x86, version 2.0.  This part (the comm.jar file) is included
63in this distribution; you do not need to download it from the Sun web page.
64
65To install this beta implementation, place the javaxcomm.ds file somewhere.
66Go there, become root, and then do:
67
68	# pkgadd -d 'pwd`/javaxcomm.ds
69
70This will install package javaxcomm, which places the following files into
71the J2SE 1.3.0 directory structure:
72
73	/usr/java2/jre/lib/ext/comm.jar
74	/usr/java2/jre/lib/ext/jcl.jar
75	/usr/java2/jre/lib/x86at/libSerial.so
76	/usr/java2/jre/lib/x86at/libParallel.so
77	/usr/java2/jre/lib/javax.comm.properties
78	/usr/java2/javax.comm-ReleaseNotes.txt [this file]
79
80Alternatively, if you are installing the Java Communications API in
81conjunction with the J2SE Runtime Environment rather than the J2SE SDK,
82then use the jrexcomm.ds file instead:
83
84	# pkgadd -d 'pwd`/jrexcomm.ds
85
86which will install the following files as part of package jrexcomm:
87
88	/usr/jre2/lib/ext/comm.jar
89	/usr/jre2/lib/ext/jcl.jar
90	/usr/jre2/lib/x86at/libSerial.so
91	/usr/jre2/lib/x86at/libParallel.so
92	/usr/jre2/lib/javax.comm.properties
93	/usr/jre2/javax.comm-ReleaseNotes.txt [this file]
94
95You can install both the javaxcomm and jrexcomm packages if you desire,
96as long as you have both java2sdk3 and java2jre3 installed.
97
98The installed binaries of either Java Communications API package are used
99for all three Caldera UNIX platforms.  (On OpenServer, the native code
100libraries are executed via the OSRcompat binary compatibility module,
101just as the native code layers of J2SE 1.3.0 are.)
102
103To use this implementation of Java Communications API, just compile and
104run Java as you normally would.  Because the above files are installed
105into the standard J2SE 1.3.0 extension space, there is no need to set
106CLASSPATH or LD_LIBRARY_PATH to access the Java Communications API.
107
108A simple test of the serial I/O part of this implementation can be
109done as follows.  Set up a null modem RS-232 cable between two machines.
110Become root.  Run the open source "minicom" tool
111(see http://www.pp.clinet.fi/~walker/minicom.html) on each machine
112and verify that the connection is working, by typing characters back
113and forth between the two machines.  Caldera can make available
114minicom-ou8-uw7 and minicom-osr5, ported versions of minicom for
115the Caldera UNIX platforms.  (Note that you need to first do
116"minicom -s" to tell it about the names and speeds of your serial ports.
117When you then run "minicom", use the ctrl-A E and ctrl-A A commands to
118turn on local echo and linefeed add.)
119
120Once working serial communication has been verified, shut down minicom
121on the machine that Java Communications API is installed on.  Untar the
122Sun SerialDemo demo program, which is SerialDemo.tar and can be made
123available by Caldera.  Change into the SerialDemo directory, and run
124
125	# /usr/java2/bin/java SerialDemo
126or
127	# /usr/jre2/bin/java SerialDemo
128
129This should bring up a GUI.  Change the serial device port name and speed
130in the GUI if necessary, then click "Open Port".  (Contact Caldera if the
131port name you are interested in does not appear in the GUI.)  Type into the
132top pane and text should appear in the minicom window on the other machine.
133Type into the minicom window on the other machine and text should appear
134in the middle pane of the SerialDemo GUI.  Click "Close Port" to finish.
135
136This implementation uses the normal UNIX "lock file" protocol to protect
137serial ports from concurrent access.  This means that javax.comm will
138not be able to access the port if it is already locked by another
139serial application (whether javax.comm, non-Java, or a system command),
140and vice versa.  In the case where javax.comm is locked out, you may get
141a message containing the phrase "Port currently owned by unknown Solaris
142Application"; for "Solaris" read the Caldera UNIX operating system you
143are on.
144
145Additional sample programs using the Java Communications API are available
146as part of the Sun Solaris/x86 implementation and can be downloaded from
147http://java.sun.com/products/javacomm/index.html.  (Do not use the
148SimpleRead and SimpleWrite programs without modification, since they fail
149to properly close the serial port at program completion.)
150
151Known problems:
152
153The lock files in Open UNIX 8 and UnixWare 7 will protect against
154concurrent port access by multiple javax.comm applications, but will not
155protect against concurrent access by other applications or system commands
156that use the SVR4 serial lock file protocol (/var/spool/locks/LK.m.m.m).
157This will be corrected in the final release.  On OpenServer, the lock files
158protect against all concurrent access, assuming other applications are
159using the standard protocol there (/usr/spool/uucp/LCK..tty?A).
160
161The parallel I/O part of this implementation has not been tested at all
162on any Caldera UNIX platforms.
163
164RXTX is available under the GNU Library General Public License (LGPL).
165Because this is still just an beta level implementation, the ported
166source code for RXTX is not included with this distribution.  Once this
167implementation is final, source code will be included.  If you would
168like the source code for this beta implementation, please contact
169Caldera and it will be sent to you.
170
171