From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue Mar 14 23:21:52 2006 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue Mar 14 23:21:52 2006 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue Mar 14 23:21:52 2006 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue Mar 14 23:21:52 2006 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Tue Mar 14 23:21:52 2006 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx@linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: Tue Mar 14 23:21:52 2006 Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Tue Mar 14 23:21:52 2006 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root@0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root@0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root@0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue Mar 14 23:21:52 2006 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root@0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root@0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root@0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Tue Mar 14 23:21:52 2006 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen@lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue Mar 28 18:25:14 2006 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0001.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue Mar 28 18:25:14 2006 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0001.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue Mar 28 18:25:14 2006 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue Mar 28 18:25:14 2006 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Tue Mar 28 18:25:14 2006 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx@linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: Tue Mar 28 18:25:14 2006 Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0001.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Tue Mar 28 18:25:14 2006 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root@0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root@0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root@0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue Mar 28 18:25:14 2006 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root@0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root@0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root@0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Tue Mar 28 18:25:14 2006 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen@lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue Mar 28 20:17:12 2006 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0002.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue Mar 28 20:17:12 2006 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0002.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue Mar 28 20:17:12 2006 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue Mar 28 20:17:12 2006 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Tue Mar 28 20:17:12 2006 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx@linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: Tue Mar 28 20:17:12 2006 Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0002.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Tue Mar 28 20:17:12 2006 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root@0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root@0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root@0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue Mar 28 20:17:12 2006 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root@0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root@0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root@0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Tue Mar 28 20:17:12 2006 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen@lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0003.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0003.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0003.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0004.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0004.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0004.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0005.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0005.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0005.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0006.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0006.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0006.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0007.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0007.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0007.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0008.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0008.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0008.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0009.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0009.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0009.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0010.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0010.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0010.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0011.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0011.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0011.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0012.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0012.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0012.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0013.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0013.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0013.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0014.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0014.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0014.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0015.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0015.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0015.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0016.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0016.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0016.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0017.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0017.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0017.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0018.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0018.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0018.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0019.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0019.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0019.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0020.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0020.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0020.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0021.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0021.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0021.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0022.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0022.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0022.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0023.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0023.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0023.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0024.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0024.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0024.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0025.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0025.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0025.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0026.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0026.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0026.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0027.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0027.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0027.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0028.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0028.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0028.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0029.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0029.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0029.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0030.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0030.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0030.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0031.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0031.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0031.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0032.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0032.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0032.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0033.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0033.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0033.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0034.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0034.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0034.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0035.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0035.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0035.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0036.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0036.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0036.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0037.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0037.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0037.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0038.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0038.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0038.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0039.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0039.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0039.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0040.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0040.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0040.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0041.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0041.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0041.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0042.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0042.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0042.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0043.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0043.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0043.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0044.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0044.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0044.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0045.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0045.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0045.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0046.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0046.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0046.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0047.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0047.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0047.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0048.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0048.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0048.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0049.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0049.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0049.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0050.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0050.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0050.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0051.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0051.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0051.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0052.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0052.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0052.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0053.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0053.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0053.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0054.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0054.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0054.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0055.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0055.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0055.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0056.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0056.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0056.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0057.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0057.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0057.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0058.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0058.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0058.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0059.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0059.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0059.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0060.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0060.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0060.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0061.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0061.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0061.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0062.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0062.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0062.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0063.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0063.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0063.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0064.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0064.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0064.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0065.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0065.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0065.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0066.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0066.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0066.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0067.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0067.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0067.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0068.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0068.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0068.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0069.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0069.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0069.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0070.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0070.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0070.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0071.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0071.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0071.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0072.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0072.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0072.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0073.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0073.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0073.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0074.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0074.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0074.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0075.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0075.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0075.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0076.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0076.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0076.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0077.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0077.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0077.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0078.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0078.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0078.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0079.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0079.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0079.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0080.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0080.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0080.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0081.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0081.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0081.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0082.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0082.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0082.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0083.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0083.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0083.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0084.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0084.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0084.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0085.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0085.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0085.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0086.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0086.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0086.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0087.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0087.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0087.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0088.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0088.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0088.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0089.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0089.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0089.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0090.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0090.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0090.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0091.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0091.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0091.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0092.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0092.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0092.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0093.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0093.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0093.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0094.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0094.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0094.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0095.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0095.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0095.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0096.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0096.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0096.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0097.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0097.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0097.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0098.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0098.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0098.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0099.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0099.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0099.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0100.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0100.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0100.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0101.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0101.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0101.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0102.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0102.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0102.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0103.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0103.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0103.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0104.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0104.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0104.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0105.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0105.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0105.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0106.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0106.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0106.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0107.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0107.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0107.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0108.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0108.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0108.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0109.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0109.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0109.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0110.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0110.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0110.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0111.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0111.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0111.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0112.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0112.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0112.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0113.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0113.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0113.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0114.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0114.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0114.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0115.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0115.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0115.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0116.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0116.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0116.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0117.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0117.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0117.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0118.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0118.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0118.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0119.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0119.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0119.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0120.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0120.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0120.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0121.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0121.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0121.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0122.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0122.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0122.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0123.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0123.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0123.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0124.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0124.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0124.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0125.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0125.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0125.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0126.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0126.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0126.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0127.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0127.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0127.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0128.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0128.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0128.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0129.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0129.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0129.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0130.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0130.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0130.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0131.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0131.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0131.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0132.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0132.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0132.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0133.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0133.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0133.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0134.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0134.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0134.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0135.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0135.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0135.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0136.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0136.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0136.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0137.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0137.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0137.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0138.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0138.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0138.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0139.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0139.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0139.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0140.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0140.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0140.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0141.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0141.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0141.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0142.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0142.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0142.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0143.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0143.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0143.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0144.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0144.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0144.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0145.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0145.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0145.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0146.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0146.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0146.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0147.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0147.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0147.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0148.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0148.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0148.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0149.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0149.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0149.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0150.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0150.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0150.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0151.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0151.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0151.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0152.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0152.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0152.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0153.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0153.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0153.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0154.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0154.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0154.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0155.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0155.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0155.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0156.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0156.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0156.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0157.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0157.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0157.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0158.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0158.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0158.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0159.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0159.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0159.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0160.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0160.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0160.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0161.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0161.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0161.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0162.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0162.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0162.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0163.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0163.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0163.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0164.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0164.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0164.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0165.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0165.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0165.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0166.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0166.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0166.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0167.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0167.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0167.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0168.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0168.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0168.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0169.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0169.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0169.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0170.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0170.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0170.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0171.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0171.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0171.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0172.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0172.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0172.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0173.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0173.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0173.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0174.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0174.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0174.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0175.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0175.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0175.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0176.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0176.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0176.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0177.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0177.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0177.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0178.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0178.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0178.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0179.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0179.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0179.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0180.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0180.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0180.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0181.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0181.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0181.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0182.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0182.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0182.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0183.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0183.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0183.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0184.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0184.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0184.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0185.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0185.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0185.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0186.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0186.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0186.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0187.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0187.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0187.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0188.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0188.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0188.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0189.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0189.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0189.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0190.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0190.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0190.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0191.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0191.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0191.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0192.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0192.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0192.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0193.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0193.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0193.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0194.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0194.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0194.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0195.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0195.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0195.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0196.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0196.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0196.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0197.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0197.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0197.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0198.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0198.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0198.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0199.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0199.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0199.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0200.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0200.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0200.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0201.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0201.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0201.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0202.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0202.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0202.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0203.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0203.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0203.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0204.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0204.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0204.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0205.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0205.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0205.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0206.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0206.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0206.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0207.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0207.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0207.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0208.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0208.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0208.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0209.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0209.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0209.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0210.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0210.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0210.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0211.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0211.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0211.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0212.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0212.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0212.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0213.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0213.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0213.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0214.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0214.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0214.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0215.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0215.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0215.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0216.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0216.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0216.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0217.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0217.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0217.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0218.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0218.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0218.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0219.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0219.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0219.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0220.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0220.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0220.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0221.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0221.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0221.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0222.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0222.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0222.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0223.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0223.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0223.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0224.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0224.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0224.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0225.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0225.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0225.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0226.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0226.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0226.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0227.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0227.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0227.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0228.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0228.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0228.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0229.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0229.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0229.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0230.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0230.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0230.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0231.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0231.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0231.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0232.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0232.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0232.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0233.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0233.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0233.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0234.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0234.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0234.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0235.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0235.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0235.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0236.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0236.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0236.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0237.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0237.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0237.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0238.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0238.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0238.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0239.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0239.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0239.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0240.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0240.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0240.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0241.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0241.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0241.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0242.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0242.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0242.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0243.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0243.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0243.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0244.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0244.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0244.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0245.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0245.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0245.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0246.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0246.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0246.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0247.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0247.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0247.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0248.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0248.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0248.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0249.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0249.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0249.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0250.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0250.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0250.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0251.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0251.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0251.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0252.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0252.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0252.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0253.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0253.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0253.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0254.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0254.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0254.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0255.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0255.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0255.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0256.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0256.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0256.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0257.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0257.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0257.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0258.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0258.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0258.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0259.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0259.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0259.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0260.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0260.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0260.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0261.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0261.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0261.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0262.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0262.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0262.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0263.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0263.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0263.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0264.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0264.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0264.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0265.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0265.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0265.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0266.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0266.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0266.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0267.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0267.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0267.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0268.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0268.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0268.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0269.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0269.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0269.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0270.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0270.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0270.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0271.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0271.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0271.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0272.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0272.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0272.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0273.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0273.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0273.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0274.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0274.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0274.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0275.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0275.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0275.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0276.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0276.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0276.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0277.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0277.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0277.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0278.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0278.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0278.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0279.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0279.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0279.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0280.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0280.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0280.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0281.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0281.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0281.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0282.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0282.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0282.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0283.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0283.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0283.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0284.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0284.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0284.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0285.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0285.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0285.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0286.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0286.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0286.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0287.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0287.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0287.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0288.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0288.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0288.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0289.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0289.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0289.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0290.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0290.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0290.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0291.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0291.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0291.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0292.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0292.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0292.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0293.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0293.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0293.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0294.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0294.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0294.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0295.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0295.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0295.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0296.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0296.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0296.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0297.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0297.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0297.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0298.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0298.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0298.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0299.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0299.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0299.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0300.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0300.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0300.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0301.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0301.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0301.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0302.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0302.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0302.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0303.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0303.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0303.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0304.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0304.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0304.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0305.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0305.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0305.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0306.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0306.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0306.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0307.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0307.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0307.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0308.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0308.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0308.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0309.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0309.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0309.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0310.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0310.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0310.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0311.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0311.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0311.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0312.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0312.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0312.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0313.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0313.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0313.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0314.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0314.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0314.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0315.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0315.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0315.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0316.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0316.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0316.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0317.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0317.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0317.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0318.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0318.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0318.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0319.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0319.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0319.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0320.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0320.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0320.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0321.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0321.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0321.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0322.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0322.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0322.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0323.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0323.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0323.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0324.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0324.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0324.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0325.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0325.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0325.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0326.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0326.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0326.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0327.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0327.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0327.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0328.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0328.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0328.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0329.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0329.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0329.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0330.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0330.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0330.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0331.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0331.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0331.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0332.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0332.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0332.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0333.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0333.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0333.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0334.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0334.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0334.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0335.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0335.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0335.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0336.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0336.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0336.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0337.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0337.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0337.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0338.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0338.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0338.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0339.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0339.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0339.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0340.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0340.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0340.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0341.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0341.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0341.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0342.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0342.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0342.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0343.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0343.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0343.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0344.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0344.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0344.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0345.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0345.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0345.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0346.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0346.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0346.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0347.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0347.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0347.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0348.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0348.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0348.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0349.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0349.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0349.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0350.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0350.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0350.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0351.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0351.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0351.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0352.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0352.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0352.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0353.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0353.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0353.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0354.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0354.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0354.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0355.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0355.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0355.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0356.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0356.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0356.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0357.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0357.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0357.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0358.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0358.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0358.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0359.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0359.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0359.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0360.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0360.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0360.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0361.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0361.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0361.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0362.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0362.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0362.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0363.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0363.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0363.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0364.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0364.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0364.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0365.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0365.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0365.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0366.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0366.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0366.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0367.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0367.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0367.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0368.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0368.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0368.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0369.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0369.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0369.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0370.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0370.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0370.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0371.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0371.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0371.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0372.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0372.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0372.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0373.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0373.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0373.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0374.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0374.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0374.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0375.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0375.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0375.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0376.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0376.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0376.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0377.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0377.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0377.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0378.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0378.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0378.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0379.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0379.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0379.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0380.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0380.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0380.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0381.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0381.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0381.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0382.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0382.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0382.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0383.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0383.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0383.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0384.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0384.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0384.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0385.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0385.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0385.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0386.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0386.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0386.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0387.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0387.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0387.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0388.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0388.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0388.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0389.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0389.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0389.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0390.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0390.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0390.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0391.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0391.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0391.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0392.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0392.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0392.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG From valirion at gmx.net Tue Jun 15 04:07:56 2004 From: valirion at gmx.net (Bernd Pachur) Date: Tue, 15 Jun 2004 12:07:56 +0200 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 (solutiuon?) In-Reply-To: 20040430061841.23AF17327D@mail.linuxgrrls.org References: 20040430061841.23AF17327D@mail.linuxgrrls.org Message-ID: <1087294076.7548.55.camel@academia.thybaria.local> Hi! I had similar Problems with the CVS-Version from yesterday and with the latest release version. I am running gentoo too (for insiders: ~x86)! uname -a: Linux academia 2.6.5-gentoo-r1 #6 Mon May 31 18:04:44 CEST 2004 i686 Celeron (Mendocino) GenuineIntel GNU/Linux java -version: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I do not add the error output, because it is similar to the one of Rico. The error also occurs, when you call getReceiveTimeout(). It seems that I managed to solve the problem. I compiled my rxtx version with debugging on and tried to find the error. To pin down the lines in the native code that caused the problem, I tried to add "report(message)" lines to "NativeisReceiveTimeoutEnabled" and "NativegetReceiveTimeout" in "SerialImpl.c" . When I added the lines at the following location in both methods: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; char message[80]; sprintf(message,"ReceiveTimeout: trace"); report(message); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; The problem suddenly disappeared. This combined with the fact that all problems occured on systems that use nptl threads suggested to me, that the problem is some kind of timing problem, when doing "tcgetattr". I then changed my addition to the code from adding "report(messsage)" lines to adding a "usleep" line: { int fd = get_java_var (env, jobj, "fd", "I"); struct termios ttyset; usleep(1000); ENTER ("RXTXPort:NativeisRecieveTimeoutEnabled()"); if (tcgetattr (fd, &ttyset) < 0) goto fail; And guess what, the error is gone! I don't know if this is a feasible solution on all systems, because I normally do not code in C but in JAVA and only remeber some basics from my C course, but at least for me it works. It should probably be tested on other systems too before permanently adding it to the code. Cheers, Bernd Pachur > Hello folks, > > I think I have the same problem Willem Riede reported on March 21, 2004. I get > the following: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > RXTX Warning: Removing stale lock file. /var/lock/LCK..0 > Port: /dev/usb/tts/0 - Serial > Unexpected Signal : 11 occurred at PC=0x8062b35 > Function name=(N/A) > Library=(N/A) > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for possible > reason and solutions. > > Current Java thread: > at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) > at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) > at Ctest.main(Ctest.java:14) > > > whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods > seem to work fine. I was initially running this on: > > Gentoo Linux 2004.0 > Linux kernel 2.6.5 (gentoo-dev-sources) > Sun JDK 1.4.2.04 > > After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, > I tried with > > Sun JDK 1.3.1.09 > > Same behavior. Does anyone have any other suggestions? > > Rico Juinio -- Text mails preferred! No HTML-mail please! Encrypted mails preferred! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/7181668d/attachment-0393.bin From moritz.gmelin at gmx.de Tue Jun 15 08:40:06 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 15 Jun 2004 16:40:06 +0200 Subject: [Rxtx] Error-Logs Message-ID: Hi, can anybody tell me why RXTX is crashing at that point ? I'm not calling setEndOfInputChar anywhere ! M. -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3892.log Type: application/octet-stream Size: 4501 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040615/f1e370f4/hs_err_pid3892-0393.obj From jdevora at saadian.com Tue Jun 15 09:46:24 2004 From: jdevora at saadian.com (JD Evora) Date: Tue, 15 Jun 2004 16:46:24 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found Message-ID: <40CF19D0.3090900@saadian.com> Hi, I download rxtx-2.0-7pre1 and did a make install it seams to install OK I am trying to use them with a program that relays on Sun's comm API and when I run it I get java.lang.NoClassDefFoundError: gnu/io/CommPort From the INSTALL document I saw that it happens when RXTXcomm.jar is not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar as well) I opened the jar file and I didn't see the CommPort class there are LPRPort*.class and RXTXPort*.class files but not just a CommPort.class one Did I miss a configuration step somewhere? Thank you very much JD Evora From renaud at nentec.de Tue Jun 15 09:56:23 2004 From: renaud at nentec.de (Fabien Renaud) Date: Tue, 15 Jun 2004 17:56:23 +0200 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF19D0.3090900@saadian.com> References: <40CF19D0.3090900@saadian.com> Message-ID: <40CF1C27.7030400@nentec.de> Hi, If you type jar -tf RXTXcomm.jar you should have a line like this : gnu/io/CommPort.class Oh I didn?t see it. You use 2.0.x version. You should use 2.1.x version. With this one you don?t need CommAPI from SUN and you put your classes in gnu/io/ whereas it?s different with 2.0.x. Humm I hope you?ll understand what I wanted to say ^^ So use 2.1-7pre17 and everything will be ok. Fabien JD Evora wrote: > Hi, > > I download rxtx-2.0-7pre1 and did a make install it seams to install OK > > I am trying to use them with a program that relays on Sun's comm API > and when I run it I get > > java.lang.NoClassDefFoundError: gnu/io/CommPort > > From the INSTALL document I saw that it happens when RXTXcomm.jar is > not in the class path, but it is. (and in the jre/lib/ext/RXTXcomm.jar > as well) > > I opened the jar file and I didn't see the CommPort class there are > LPRPort*.class and RXTXPort*.class files but not just a > CommPort.class one > > Did I miss a configuration step somewhere? > > Thank you very much > JD Evora > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From jdevora at saadian.com Wed Jun 16 04:36:04 2004 From: jdevora at saadian.com (JD Evora) Date: Wed, 16 Jun 2004 11:36:04 +0100 Subject: [Rxtx] gnu/io/CommPort : Class not found In-Reply-To: <40CF1C27.7030400@nentec.de> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> Message-ID: <40D02294.5000200@saadian.com> Hi, Thank you for your reply. I used the version 2.0.x because the library uses the Sun CommAPI on windows, but looks like it detects when it is running on Linux and uses gnu.io.* instead. I installed 2.1.x and it worked perfectly. Cheers JD Fabien Renaud wrote: > Hi, > > If you type jar -tf RXTXcomm.jar you should have a line like this : > gnu/io/CommPort.class > Oh I didn?t see it. You use 2.0.x version. > You should use 2.1.x version. With this one you don?t need CommAPI > from SUN and you put your classes in gnu/io/ whereas it?s different > with 2.0.x. > > Humm I hope you?ll understand what I wanted to say ^^ > So use 2.1-7pre17 and everything will be ok. > > Fabien > > > > JD Evora wrote: > >> Hi, >> >> I download rxtx-2.0-7pre1 and did a make install it seams to >> install OK >> >> I am trying to use them with a program that relays on Sun's comm API >> and when I run it I get >> >> java.lang.NoClassDefFoundError: gnu/io/CommPort >> >> From the INSTALL document I saw that it happens when RXTXcomm.jar is >> not in the class path, but it is. (and in the >> jre/lib/ext/RXTXcomm.jar as well) >> >> I opened the jar file and I didn't see the CommPort class there are >> LPRPort*.class and RXTXPort*.class files but not just a >> CommPort.class one >> >> Did I miss a configuration step somewhere? >> >> Thank you very much >> JD Evora >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From t.neumann at stream-line.de Wed Jun 16 06:02:43 2004 From: t.neumann at stream-line.de (t.neumann@stream-line.de) Date: 16 Jun 2004 12:02:43 UT Subject: [Rxtx] Problems with pseudo terminals on Linux Message-ID: <00014483.40D052EA@62.153.101.193> Hello, I'm a newbie to programming serial ports and to RXTX in special. I currently try to open the slave side of a pseudo terminal (/dev/ttys0) on debian linux using RXTX 2.1.6 and the BlackBox application. I've tracked my error down to the function testRead() in SerialImp.h. The OPEN call fails with errno 5 (input/output error). As far as I know it should be possible to open the slave side of a pseudo terminal as a regular serial port. The permissions of the slave device look also correct to me. Everybody is allowed to read or write to the device file and it belongs to root and the tty groupe. Can anybody help me? Thanks in advance Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040616/d35ea6e9/attachment-0393.html From alexandre.ricciardi at free.fr Wed Jun 16 09:30:40 2004 From: alexandre.ricciardi at free.fr (alexandre ricciardi) Date: Wed, 16 Jun 2004 17:30:40 +0200 Subject: [Rxtx] RXTX does not work Message-ID: <40D067A0.8020503@free.fr> Hi, I'm new to this mailing list and to rxtx I have folowed the HOWTO install RXTX and sun's COMMAPI but it does not work ! I have messages as : root at 0[BlackBox]# java -cp BlackBox.jar BlackBox Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar JavaKit Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort I tried to put comm.jar in the classpath and i get this root at 0[BlackBox]# java -cp BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver No serial ports found! I don't get what's wrong in my installation Thanks for reply Alexandre From renaud at nentec.de Wed Jun 16 09:38:38 2004 From: renaud at nentec.de (Fabien Renaud) Date: Wed, 16 Jun 2004 17:38:38 +0200 Subject: [Rxtx] RXTX does not work In-Reply-To: <40D067A0.8020503@free.fr> References: <40D067A0.8020503@free.fr> Message-ID: <40D0697E.4030208@nentec.de> alexandre ricciardi wrote: > Hi, > > I'm new to this mailing list and to rxtx > > I have folowed the HOWTO install RXTX and sun's COMMAPI but it does > not work ! > I have messages as : > > root at 0[BlackBox]# java -cp BlackBox.jar BlackBox > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/PortInUseException > root at 0[BlackBox]# java -cp /home/alex/Desktop/tini1.12/bin/tini.jar > JavaKit Exception in thread "main" > java.lang.NoClassDefFoundError: javax/comm/CommPort > > I tried to put comm.jar in the classpath and i get this > > root at 0[BlackBox]# java -cp > BlackBox.jar:/home/alex/Desktop/commapi/comm.jar BlackBox > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver com.sun.comm.SolarisDriver > No serial ports found! > > I don't get what's wrong in my installation > > Thanks for reply > > Alexandre > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Use version 1.1.x and replace javax/comm by gnu/io in your java programs From Bob_Jacobsen at lbl.gov Wed Jun 16 10:14:50 2004 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 16 Jun 2004 09:14:50 -0700 Subject: [Rxtx] Events on MacOS X? In-Reply-To: <40D02294.5000200@saadian.com> References: <40CF19D0.3090900@saadian.com> <40CF1C27.7030400@nentec.de> <40D02294.5000200@saadian.com> Message-ID: Can somebody please confirm whether RXTX on MacOS X should be notifying about SerialPortEvents from the serial port? I'm particularly interested in whether the program gets told about "OUTPUT_BUFFER_EMPTY" and "CTS". The longer story is that the JMRI project (http://jmri.sf.net) uses RXTX to attach to various model railroad electronics. There's one system, called the Lenz LI101, that requires spacing between messages. We do this using the CTS and OUTPUT_BUFFER_EMPTY events, which works elsewhere but _not_ on MacOS X. The current indication is that events just aren't being triggered. But we don't know where they're being lost: In MacOS X itself? In the USB adapters or their drivers? In RXTX? Any pointers would be greatly appreciated. Bob -- -------------- Bob_Jacobsen at lbl.gov, +1-510-486-7355, fax +1-510-643-8497, AIM JacobsenRG