[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rxtx
Subject:    Re: [Rxtx] apps don't appear when trying to open /dev/ttyS0
From:       Trent Jarvi <taj () www ! linux ! org ! uk>
Date:       2005-01-21 16:23:23
Message-ID: Pine.LNX.4.58.0501211600190.17893 () parcelfarce ! linux ! theplanet ! co ! uk
[Download RAW message or body]

On Fri, 21 Jan 2005, William I. Zumwalt wrote:

> I'm using a gentoo 2.6.5 kernel w/ 2.0.7pre2. I'm
> working with RXTX (just installed) and am having a
> problem w/ my app that I also see when using the
> sample BlackBox app in the sun commapi. I get the same
> results for any apps that use or open /dev/ttyS0. If I
> put in another port it pops up a dialog saying port
> does not exist, I click ok, and then the app comes up
> as normal.
> 
> Here are the locations of the files I installed ...
> 
> /opt/sun-jdk-1.4.2.04/jre/lib/ext/RXTXcomm.jar
> /opt/sun-jdk-1.4.2.04/jre/lib/ext/comm.jar
> /opt/sun-jdk-1.4.2.04/jre/lib/ext/jcl.jar
> /opt/sun-jdk-1.4.2.04/jre/lib/javax.comm.properties
> /opt/sun-jdk-1.4.2.04/jre/lib/i386/libSerial.so ->
> librxtxSerial-2.0.7pre2.so
> /opt/sun-jdk-1.4.2.04/jre/lib/i386/libParrallel.so ->
> librxtxParrallel-2.0.7pre2.so
> /opt/sun-jdk-1.4.2.04/jre/lib/i386/librxtxParrallel-2.0.7pre2.so
> /opt/sun-jdk-1.4.2.04/jre/lib/i386/librxtxSerial-2.0.7pre2.so
> 
> ---
> $ java -classpath ./BlackBox.jar -noverify BlackBox
> Experimental:  JNI_OnLoad called.
> 
> (just hangs here at this point, no gui or anything)
> ---
> 
> I'm using the -noverify option to get around the ...
> Exception in thread "main" java.lang.VerifyError:
> 
> Also, I'm using the 2.0.7pre2 release (source that I
> built w/ the -disable-lock param) and I'm confused why
> it was released after the 2.1-x releases which were
> released earlier ... isn't that a bit backwards. I'm
> sure I'm not understanding something here.
> 
> Any help much appreciated.
> 
> 
> 		

I did notice a problem with BlackBox and jre 1.4.  I did not notice a 
problem with jre 1.5.  RXTX did not print out the version numbers of the 
Java and Native libriaries?  That should be done before anything too 
tricky happens.  There are debug flags in RXTXPort.java and 
RXTXCommDriver.java that can be set to see what rxtx is doing.  There is 
also a Zystem class instantiated in each that should pass the type of 
debug message you would like:

        protected final static boolean debug = false;
        protected final static boolean debug_read = false;
        protected final static boolean debug_read_results = false;
        protected final static boolean debug_write = false;
        protected final static boolean debug_events = false;
        protected final static boolean debug_verbose = false;

...


                try {
                        z = new Zystem(Zystem.PRINT_MODE);
                                       ^^^^^^^^^^^^^^^^^

It may well be a bug in BlackBox.

rxtx 2.1 and 2.0 are different trees performing more or less the same 
thing.  RXTX 2.1 just replaces the Sun comm jar and is in package gnu.io 
to avoid having people confuse that with Sun's work.  The goal is to try 
to release rxtx 2.1 and 2.0 at the same time.  The last 2.0 release was to 
catch up with some of the changes that got into rxtx 2.1.  I'll be 
releasing both at the same time now as we did with the CVS snapshots on 
the rxtx download page yesterday.

http://www.rxtx.org/download.html


-- 
Trent Jarvi
taj@www.linux.org.uk
_______________________________________________
Rxtx mailing list
Rxtx@linuxgrrls.org
http://mailman.linuxgrrls.org/mailman/listinfo/rxtx
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic